summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rw-r--r--update.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/update.php b/update.php
index 90564ea21..b053b0578 100644
--- a/update.php
+++ b/update.php
@@ -44,6 +44,7 @@ $mysql_updates = array(
"2001-12-31" => "update_17",
"2002-01-05" => "update_18",
"2002-01-17" => "update_19",
+ "2002-01-27" => "update_20"
);
// Update functions
@@ -317,6 +318,10 @@ function update_19() {
update_sql("ALTER TABLE users ADD data TEXT;");
}
+function update_20() {
+ update_sql("INSERT INTO blocks SET name='User information', module='user', delta='0', status='2', weight='0', region='1', remove='0', path='';");
+}
+
/*
** System functions
*/
@@ -385,13 +390,12 @@ function update_page() {
}
print "<html><h1>Drupal update</h1>";
+// Security check:
if (user_access(NULL)) {
update_page();
}
else {
print message_access();
}
-
print "</html>";
-
?> \ No newline at end of file