]> git.mjollnir.org Git - s9y.git/commitdiff
Fix pgsql lowercase plugin problem
authorgarvinhicking <garvinhicking>
Fri, 17 Nov 2006 15:20:04 +0000 (15:20 +0000)
committergarvinhicking <garvinhicking>
Fri, 17 Nov 2006 15:20:04 +0000 (15:20 +0000)
docs/NEWS
include/plugin_api.inc.php

index a5dc57eb9353594b07147481c4ed951f37b1180c..6b89102b314d6aa0d626cfe10754d01c868cf266 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,10 @@
 Version 1.1 ()
 ------------------------------------------------------------------------
 
+    * Fixed a bug in lowercased DB key names in the plugin API table,
+      which prevented postgresql for properly printing a plugin list
+      in some setups (garvinhicking)
+
     * Huge SQL improvement by "caching" the current timestamp for
       5 minutes, so that an SQL string for the central logic will
       stay the same for a 5 minute window, thus relying on the DB-Server
index 66f47802d85dbf0cce71f3c863ed9a5ee30d804e..3ba4a56d2dfe94a7f4e5e712073e80cbb07f6ff3 100644 (file)
@@ -431,7 +431,7 @@ class serendipity_plugin_api {
         if (empty($pluginPath)) {
             $pluginPath = $name;
         }
-        
+
         $file = false;
 
         // Security constraint
@@ -593,6 +593,9 @@ class serendipity_plugin_api {
                                                  p.plugintype     = '" . serendipity_db_escape_string($type) . "'");
             if (is_array($data)) {
                 foreach($data AS $p) {
+                    if (isset($p['pluginpath'])) {
+                        $p['pluginPath'] = $p['pluginpath'];
+                    }
                     if (!isset($pluginlist[$p['plugin_file']])) {
                         $pluginlist[$p['plugin_file']] = $p;
                     }
@@ -683,6 +686,9 @@ class serendipity_plugin_api {
             unset($data['true_name']);
             unset($data['customURI']);
             unset($data['groups']);
+            if (isset($data['pluginpath'])) {
+                $data['pluginPath'] = $data['pluginpath'];
+            }
             $data['requirements'] = serialize($data['requirements']);
         }
 
@@ -751,7 +757,7 @@ class serendipity_plugin_api {
         }
 
         $sql .= "WHERE name='$name' $admin";
-        
+
         return serendipity_db_query($sql);
     }