- Patch by Bart: fixed update.php after bootstrap patch.

4.7.x
Dries Buytaert 2005-07-03 10:09:08 +00:00
parent db3a2cc175
commit fac840fe86
2 changed files with 3 additions and 3 deletions

View File

@ -820,8 +820,8 @@ function _drupal_bootstrap($phase) {
switch ($phase) {
case 'database':
global $db_url, $base_url;
unset($conf);
global $db_url, $db_prefix, $base_url;
$conf = array();
require_once conf_init() .'/settings.php';
require_once './includes/database.inc';
// Initialize the default database.

View File

@ -207,7 +207,7 @@ function update_info() {
if (isset($_GET["op"])) {
include_once "includes/bootstrap.inc";
include_once "includes/common.inc";
drupal_bootstrap('full');
// Access check:
if (($access_check == 0) || ($user->uid == 1)) {