[geeklog-cvs] geeklog: Re-introduced function get_SPX_Ver in the install scrip...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Apr 12 03:28:42 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/19b279c51458
changeset: 6924:19b279c51458
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun Apr 12 09:21:52 2009 +0200
description:
Re-introduced function get_SPX_Ver in the install script, which is still needed when upgrading from old Geeklog releases (reported by Sheila)

diffstat:

2 files changed, 22 insertions(+)
public_html/admin/install/lib-upgrade.php |   20 ++++++++++++++++++++
public_html/docs/history                  |    2 ++

diffs (42 lines):

diff -r 8c489120d27e -r 19b279c51458 public_html/admin/install/lib-upgrade.php
--- a/public_html/admin/install/lib-upgrade.php	Sat Apr 11 19:44:23 2009 +0200
+++ b/public_html/admin/install/lib-upgrade.php	Sun Apr 12 09:21:52 2009 +0200
@@ -710,6 +710,26 @@
     return $retval;
 }
 
+/**
+* Check if the Spam-X plugin is already installed
+*
+* Note: Needed for upgrades from old versions - don't remove.
+*
+* @return   int     1 = is installed, 0 = not installed
+*
+*/
+function get_SPX_Ver()
+{
+    global $_TABLES;
+
+    $retval = 0;
+
+    if (DB_count($_TABLES['plugins'], 'pi_name', 'spamx') == 1) {
+        $retval = 1;
+    }
+
+    return $retval;
+}
 
 /**
  * Run all the database queries from the update file.
diff -r 8c489120d27e -r 19b279c51458 public_html/docs/history
--- a/public_html/docs/history	Sat Apr 11 19:44:23 2009 +0200
+++ b/public_html/docs/history	Sun Apr 12 09:21:52 2009 +0200
@@ -11,6 +11,8 @@
 + Comment moderation and editable comments, by Jared Wenerd
 
 Other changes:
+- Re-introduced function get_SPX_Ver in the install script, which is still
+  needed when upgrading from old Geeklog releases (reported by Sheila) [Dirk]
 - New plugin API function PLG_getDocumentationUrl (feature request #0000848)
   [Dirk]
 - Fresh installs + MySQL only: Changed some tinyint fields that are only used



More information about the geeklog-cvs mailing list