Skip to content

Commit 132aed3

Browse files
committed
- Patch #1240320 by Chi: use __DIR__ instead of dirname(__FILE__).
1 parent 1e48014 commit 132aed3

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎includes/database/schema.inc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Generic Database schema code.
66
*/
77

8-
require_once dirname(__FILE__) . '/query.inc';
8+
require_once __DIR__ . '/query.inc';
99

1010
/**
1111
* @defgroup schemaapi Schema API

‎includes/database/select.inc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @{
66
*/
77

8-
require_once dirname(__FILE__) . '/query.inc';
8+
require_once __DIR__ . '/query.inc';
99

1010
/**
1111
* Interface for extendable query objects.

‎includes/filetransfer/filetransfer.inc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ abstract class FileTransfer {
296296
return FALSE;
297297
}
298298

299-
$path = dirname(__FILE__);
299+
$path = __DIR__;
300300
$path = $this->fixRemotePath($path, FALSE);
301301
$parts = explode('/', $path);
302302
$chroot = '';

‎scripts/dump-database-d6.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ include_once './includes/bootstrap.inc';
2828
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
2929

3030
// Include the utility drupal_var_export() function.
31-
include_once dirname(__FILE__) . '/../includes/utility.inc';
31+
include_once __DIR__ . '/../includes/utility.inc';
3232

3333
// Output the PHP header.
3434
$output = <<<ENDOFHEADER

‎scripts/run-tests.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function simpletest_script_init($server_software) {
297297
}
298298
}
299299

300-
chdir(realpath(dirname(__FILE__) . '/..'));
300+
chdir(realpath(__DIR__ . '/..'));
301301
define('DRUPAL_ROOT', getcwd());
302302
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
303303
}

0 commit comments

Comments
 (0)