summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-18 18:11:13 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-18 18:11:13 +0000
commitd4200e260003dc1e75cd27db8f1b286fa6a30931 (patch)
tree26fc792a37f4f98f43167c5fed40f079f012bdab /update.php
parent245454bece3e3a460ed1504117a4dd7eb635fd8d (diff)
downloadbrdo-d4200e260003dc1e75cd27db8f1b286fa6a30931.tar.gz
brdo-d4200e260003dc1e75cd27db8f1b286fa6a30931.tar.bz2
- Patch #763850 by c960657: require_once() and drupal_get_path() inconsistencies.
Diffstat (limited to 'update.php')
-rw-r--r--update.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.php b/update.php
index bd31d1eab..a9bc48b8d 100644
--- a/update.php
+++ b/update.php
@@ -268,7 +268,7 @@ function update_access_allowed() {
// Calls to user_access() might fail during the Drupal 6 to 7 update process,
// so we fall back on requiring that the user be logged in as user #1.
try {
- require_once drupal_get_path('module', 'user') . '/user.module';
+ require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'user') . '/user.module';
return user_access('administer software updates');
}
catch (Exception $e) {