summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-08-07 12:37:24 -0400
committerDries Buytaert <dries@buytaert.net>2011-08-07 12:37:24 -0400
commit132aed379c72f0702dd2e9c27cf9421f1435aba2 (patch)
tree5bd7ae2d6658822f7354963aab3243b58c0885ff /scripts
parent1e48014398e19d334bb0b6e5ac517265b575a6f4 (diff)
downloadbrdo-132aed379c72f0702dd2e9c27cf9421f1435aba2.tar.gz
brdo-132aed379c72f0702dd2e9c27cf9421f1435aba2.tar.bz2
- Patch #1240320 by Chi: use __DIR__ instead of dirname(__FILE__).
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dump-database-d6.sh2
-rwxr-xr-xscripts/run-tests.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dump-database-d6.sh b/scripts/dump-database-d6.sh
index 41146b075..d39bb4306 100644
--- a/scripts/dump-database-d6.sh
+++ b/scripts/dump-database-d6.sh
@@ -28,7 +28,7 @@ include_once './includes/bootstrap.inc';
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
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 02e897e41..dc4f2600f 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -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';
}