[geeklog-cvs] geeklog: The compatibility check in the Spam-X plugin install sc...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Wed Jan 7 03:53:23 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/de9415469b9c
changeset: 6657:de9415469b9c
user: Dirk Haun <dirk at haun-online.de>
date: Tue Jan 06 11:30:03 2009 +0100
description:
The compatibility check in the Spam-X plugin install script did the checks the wrong way around
diffstat:
2 files changed, 10 insertions(+), 8 deletions(-)
public_html/admin/plugins/spamx/install.php | 14 ++++++--------
public_html/docs/history | 4 ++++
diffs (56 lines):
diff -r 48f8bb6be77d -r de9415469b9c public_html/admin/plugins/spamx/install.php
--- a/public_html/admin/plugins/spamx/install.php Tue Jan 06 11:26:43 2009 +0100
+++ b/public_html/admin/plugins/spamx/install.php Tue Jan 06 11:30:03 2009 +0100
@@ -11,7 +11,7 @@
// +---------------------------------------------------------------------------+
// | Based on the Universal Plugin and prior work by the following authors: |
// | |
-// | Copyright (C) 2002-2008 by the following authors: |
+// | Copyright (C) 2002-2009 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Tom Willett - tom AT pigstye DOT net |
@@ -35,8 +35,6 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: install.php,v 1.26 2008/05/23 13:36:12 dhaun Exp $
require_once '../../../lib-common.php';
@@ -80,15 +78,15 @@
*/
function plugin_compatible_with_this_geeklog_version()
{
- if (function_exists('PLG_spamAction')) {
- return true;
+ if (! function_exists('PLG_spamAction')) {
+ return false;
}
- if (function_exists('SEC_createToken')) {
- return true;
+ if (! function_exists('SEC_createToken')) {
+ return false;
}
- return false;
+ return true;
}
/**
diff -r 48f8bb6be77d -r de9415469b9c public_html/docs/history
--- a/public_html/docs/history Tue Jan 06 11:26:43 2009 +0100
+++ b/public_html/docs/history Tue Jan 06 11:30:03 2009 +0100
@@ -90,6 +90,10 @@
[Dirk]
- Fixed handling of poll IDs in Polls editor (bug #0000753) [Dirk]
+Spam-X
+------
+- Fixed compatibility check in the plugin install script [Dirk]
+
Static Pages plugin
-------------------
- The owner of a static page changed to the user who last edited it
More information about the geeklog-cvs
mailing list