summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-07-13 13:14:25 +0000
committerDries Buytaert <dries@buytaert.net>2006-07-13 13:14:25 +0000
commit1c75a210bdf85afeee33952fd50c1951999fecb4 (patch)
tree340e364ba1ea0e4f41c2cd7c80e66543caff8304 /update.php
parente4e416d1f7037dbee8e06096a6c41368d011599c (diff)
downloadbrdo-1c75a210bdf85afeee33952fd50c1951999fecb4.tar.gz
brdo-1c75a210bdf85afeee33952fd50c1951999fecb4.tar.bz2
- Patch #68926 by chx, jeremy, steven, eaton, webchick, amazon, neil, nedjo et al: an initial install system for Drupal core.
Diffstat (limited to 'update.php')
-rw-r--r--update.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/update.php b/update.php
index 7390b273a..32d81be85 100644
--- a/update.php
+++ b/update.php
@@ -363,13 +363,14 @@ function update_selection_page() {
function update_update_page() {
// Set the installed version so updates start at the correct place.
- $_SESSION['update_remaining'] = array();
+ // Ensure system.module's updates are run first by making it the first element.
+ $_SESSION['update_remaining'] = array('system' => '');
foreach ($_POST['edit']['start'] as $module => $version) {
drupal_set_installed_schema_version($module, $version - 1);
$max_version = max(drupal_get_schema_versions($module));
if ($version <= $max_version) {
foreach (range($version, $max_version) as $update) {
- $_SESSION['update_remaining'][] = array('module' => $module, 'version' => $update);
+ $_SESSION['update_remaining'][$module] = array('module' => $module, 'version' => $update);
}
}
}
@@ -676,6 +677,7 @@ ini_set('display_errors', TRUE);
// Access check:
if (($access_check == FALSE) || ($user->uid == 1)) {
+ $install = FALSE;
include_once './includes/install.inc';
update_fix_schema_version();