diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-18 18:11:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-18 18:11:13 +0000 |
commit | d4200e260003dc1e75cd27db8f1b286fa6a30931 (patch) | |
tree | 26fc792a37f4f98f43167c5fed40f079f012bdab /update.php | |
parent | 245454bece3e3a460ed1504117a4dd7eb635fd8d (diff) | |
download | drupal-d4200e260003dc1e75cd27db8f1b286fa6a30931.tar.gz drupal-d4200e260003dc1e75cd27db8f1b286fa6a30931.zip |
- Patch #763850 by c960657: require_once() and drupal_get_path() inconsistencies.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update.php b/update.php index bd31d1eab4e..a9bc48b8d80 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) { |