summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-08-07 12:39:05 -0400
committerDries Buytaert <dries@buytaert.net>2011-08-07 12:39:05 -0400
commit1e7a7361c412ed14ffe3285e0588cd6d823a1934 (patch)
tree11b0e38f2cf212ca48bfb8946c3f446abe354061 /scripts
parent132aed379c72f0702dd2e9c27cf9421f1435aba2 (diff)
downloadbrdo-1e7a7361c412ed14ffe3285e0588cd6d823a1934.tar.gz
brdo-1e7a7361c412ed14ffe3285e0588cd6d823a1934.tar.bz2
Revert "- Patch #1240320 by Chi: use __DIR__ instead of dirname(__FILE__)."
This reverts commit 132aed379c72f0702dd2e9c27cf9421f1435aba2.
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 d39bb4306..41146b075 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 __DIR__ . '/../includes/utility.inc';
+include_once dirname(__FILE__) . '/../includes/utility.inc';
// Output the PHP header.
$output = <<<ENDOFHEADER
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index dc4f2600f..02e897e41 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -297,7 +297,7 @@ function simpletest_script_init($server_software) {
}
}
- chdir(realpath(__DIR__ . '/..'));
+ chdir(realpath(dirname(__FILE__) . '/..'));
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
}