summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 01:31:05 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 01:31:05 +0000
commit63ac367e4f2a7e5ca0c46a740033841806543cc9 (patch)
tree5efa64c603c711efcd5e6b5f75f9aa4c1907ad2a /update.php
parentcc88a199937bcd3001c95b4ce2772ec5cf236355 (diff)
downloadbrdo-63ac367e4f2a7e5ca0c46a740033841806543cc9.tar.gz
brdo-63ac367e4f2a7e5ca0c46a740033841806543cc9.tar.bz2
#585628 by catch: Fixed accessing update.php as anonymous user.
Diffstat (limited to 'update.php')
-rw-r--r--update.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/update.php b/update.php
index 89dc829f0..2d4f1e50e 100644
--- a/update.php
+++ b/update.php
@@ -395,6 +395,8 @@ else {
$output = update_access_denied_page();
}
if (isset($output) && $output) {
+ // Explictly start a session so that the update.php token will be accepted.
+ drupal_session_start();
// We defer the display of messages until all updates are done.
$progress_page = ($batch = batch_get()) && isset($batch['running']);
print theme('update_page', array('content' => $output, 'show_messages' => !$progress_page));