[geeklog-cvs] geeklog: Need to handle "upgrade" from Spam-X 1.1.2
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Feb 6 08:32:24 EST 2010
changeset 7694:fa964747623c
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/fa964747623c
user: Dirk Haun <dirk at haun-online.de>
date: Sat Feb 06 14:19:04 2010 +0100
description:
Need to handle "upgrade" from Spam-X 1.1.2
diffstat:
plugins/spamx/functions.inc | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 826845c38f8d -r fa964747623c plugins/spamx/functions.inc
--- a/plugins/spamx/functions.inc Sat Feb 06 13:55:15 2010 +0100
+++ b/plugins/spamx/functions.inc Sat Feb 06 14:19:04 2010 +0100
@@ -4,7 +4,7 @@
* File: functions.inc
* This is the functions.inc for the Geeklog Spam-X plugin
*
- * Copyright (C) 2004-2009 by the following authors:
+ * Copyright (C) 2004-2010 by the following authors:
* Authors Tom Willett tomw AT pigstye DOT net
* Dirk Haun dirk AT haun-online DOT de
*
@@ -193,6 +193,11 @@
$done = false;
while (! $done) {
switch ($current_version) {
+ case '1.1.2':
+ // no db changes
+ $current_version = '1.2.0';
+ break;
+
case '1.2.0':
if (isset($_UPDATES[$current_version])) {
$_SQL = $_UPDATES[$current_version];
@@ -200,13 +205,11 @@
DB_query($sql);
}
}
-
+
// Remove admin override since not needed anymore
$c = config::get_instance();
$c->del('admin_override', 'spamx');
-
-
$current_version = '1.2.1';
break;
More information about the geeklog-cvs
mailing list