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
if (empty($pluginPath)) {
$pluginPath = $name;
}
-
+
$file = false;
// Security constraint
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;
}
unset($data['true_name']);
unset($data['customURI']);
unset($data['groups']);
+ if (isset($data['pluginpath'])) {
+ $data['pluginPath'] = $data['pluginpath'];
+ }
$data['requirements'] = serialize($data['requirements']);
}
}
$sql .= "WHERE name='$name' $admin";
-
+
return serendipity_db_query($sql);
}