summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-01-27 19:27:17 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-01-27 19:27:17 +0000
commitdc8f6be46fade9c10146a20f18fbc5afc450c941 (patch)
treef113d2115549dba0dbd482f92cd4844c49a90a06 /update.php
parentf9a508d5dd70e85c674d326efdd60ba46672b526 (diff)
downloadbrdo-dc8f6be46fade9c10146a20f18fbc5afc450c941.tar.gz
brdo-dc8f6be46fade9c10146a20f18fbc5afc450c941.tar.bz2
- added default value to enable user block to update.php
- did a new dump of the database from a clean upgrade as my local devel is a little infected with additional tables.
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