[geeklog-cvs] geeklog: A fresh install didn't call the plugin_compatible_with_...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun May 17 11:35:15 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/834a08534861
changeset: 7032:834a08534861
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun May 17 16:07:38 2009 +0200
description:
A fresh install didn't call the plugin_compatible_with_this_version API function for the bundled plugins; fixing this also got rid of some code duplication

diffstat:

2 files changed, 3 insertions(+), 25 deletions(-)
public_html/admin/install/index.php |   26 +-------------------------
public_html/docs/history            |    2 ++

diffs (48 lines):

diff -r 94cf2d15c705 -r 834a08534861 public_html/admin/install/index.php
--- a/public_html/admin/install/index.php	Sun May 17 13:18:39 2009 +0200
+++ b/public_html/admin/install/index.php	Sun May 17 16:07:38 2009 +0200
@@ -859,31 +859,7 @@
         }
     }
 
-    $plugins_dir = $_CONF['path'] . 'plugins/';
-    $fd = opendir($plugins_dir);
-    while (($plugin = @readdir($fd)) == TRUE) {
-
-        if (($plugin <> '.') && ($plugin <> '..') && ($plugin <> 'CVS') &&
-                (substr($plugin, 0, 1) <> '.') &&
-                (substr($plugin, 0, 1) <> '_') &&
-                is_dir($plugins_dir . $plugin)) {
-
-            clearstatcache ();
-            $plugin_dir = $plugins_dir . $plugin;
-
-            if (DB_count($_TABLES['plugins'], 'pi_name', $plugin) == 0) {
-
-                $info = INST_getPluginInfo($plugin);
-                if ($info !== false) {
-                    $fn = 'plugin_autoinstall_' . $plugin;
-                    $inst_parms = $fn($plugin);
-                    INST_pluginAutoinstall($plugin, $inst_parms);
-                }
-
-            }
-
-        }
-    }
+    INST_autoinstallNewPlugins();
 }
 
 
diff -r 94cf2d15c705 -r 834a08534861 public_html/docs/history
--- a/public_html/docs/history	Sun May 17 13:18:39 2009 +0200
+++ b/public_html/docs/history	Sun May 17 16:07:38 2009 +0200
@@ -11,6 +11,8 @@
 + Comment moderation and editable comments, by Jared Wenerd
 
 Changes since 1.6.0b1:
+- A fresh install didn't check if the bundled plugins are compatible with the
+  Geeklog version about to be installed [Dirk]
 - Users couldn't change their password or delete their account (reported by
   Tom Homer) [Dirk]
 - Fixed plugin postinstall from the install script [Dirk]



More information about the geeklog-cvs mailing list