From d026d15d2aba820c3211a32f5bc51699735381b9 Mon Sep 17 00:00:00 2001
From: Dries Buytaert Drupal database update
";
print "» home
\n";
- print "» administer
\n";
+ print "» ". l("administer", "admin"). "
\n";
if ($edit["start"] == -1) {
print "No updates to perform.";
}
else {
update_data($edit["start"]);
}
+ print "
Updates were attempted. If you see no failures above, you may proceed happily to the ". l("admin pages", "admin"). ".";
+ print " Otherwise, you may need to update your database manually.";
print "";
break;
case "upgrade3":
// make sure we have updates to run.
print "Drupal upgrade
";
print "» home
\n";
- print "» administer
\n";
+ print "» ". l("admin pages", "admin"). "
\n";
if ($edit["start"] == -1) {
print "No updates to perform.";
}
@@ -813,14 +815,14 @@ function update_info() {
print "Drupal database update
";
print "\n";
print "
» Upgrade 3.0.x to 4.0.0 (Warning: clicking this link will update your database without confirmation.)
\n"; - print "If you are upgrading from Drupal 3.0.x, you'll want to run these queries manually before doing anything else:
\n"; + print "If you are upgrading from Drupal 3.0.x, you'll want to run these queries manually before proceeding to step 5:
\n"; print "\n"; print " ALTER TABLE watchdog CHANGE user uid int(10) DEFAULT '0' NOT NULL;\n"; print " ALTER TABLE watchdog CHANGE id wid int(5) DEFAULT '0' NOT NULL auto_increment;\n"; @@ -841,8 +843,10 @@ function update_info() { if ($op) { include_once "includes/common.inc"; + // Access check: if ($user->uid == 1) { + update_page(); } else { -- cgit v1.2.3