Commit 132aed37 authored by Dries's avatar Dries

- Patch #1240320 by Chi: use __DIR__ instead of dirname(__FILE__).

parent 1e480143
......@@ -5,7 +5,7 @@
* Generic Database schema code.
*/
require_once dirname(__FILE__) . '/query.inc';
require_once __DIR__ . '/query.inc';
/**
* @defgroup schemaapi Schema API
......
......@@ -5,7 +5,7 @@
* @{
*/
require_once dirname(__FILE__) . '/query.inc';
require_once __DIR__ . '/query.inc';
/**
* Interface for extendable query objects.
......
......@@ -296,7 +296,7 @@ function findChroot() {
return FALSE;
}
$path = dirname(__FILE__);
$path = __DIR__;
$path = $this->fixRemotePath($path, FALSE);
$parts = explode('/', $path);
$chroot = '';
......
......@@ -28,7 +28,7 @@
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// Include the utility drupal_var_export() function.
include_once dirname(__FILE__) . '/../includes/utility.inc';
include_once __DIR__ . '/../includes/utility.inc';
// Output the PHP header.
$output = <<<ENDOFHEADER
......
......@@ -297,7 +297,7 @@ function simpletest_script_init($server_software) {
}
}
chdir(realpath(dirname(__FILE__) . '/..'));
chdir(realpath(__DIR__ . '/..'));
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment