Fix pgsql lowercase plugin problem
This commit is contained in:
parent
e781e6305c
commit
5e2f84b309
@ -3,6 +3,10 @@
|
|||||||
Version 1.1 ()
|
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
|
* Huge SQL improvement by "caching" the current timestamp for
|
||||||
5 minutes, so that an SQL string for the central logic will
|
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
|
stay the same for a 5 minute window, thus relying on the DB-Server
|
||||||
|
@ -431,7 +431,7 @@ class serendipity_plugin_api {
|
|||||||
if (empty($pluginPath)) {
|
if (empty($pluginPath)) {
|
||||||
$pluginPath = $name;
|
$pluginPath = $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
$file = false;
|
$file = false;
|
||||||
|
|
||||||
// Security constraint
|
// Security constraint
|
||||||
@ -593,6 +593,9 @@ class serendipity_plugin_api {
|
|||||||
p.plugintype = '" . serendipity_db_escape_string($type) . "'");
|
p.plugintype = '" . serendipity_db_escape_string($type) . "'");
|
||||||
if (is_array($data)) {
|
if (is_array($data)) {
|
||||||
foreach($data AS $p) {
|
foreach($data AS $p) {
|
||||||
|
if (isset($p['pluginpath'])) {
|
||||||
|
$p['pluginPath'] = $p['pluginpath'];
|
||||||
|
}
|
||||||
if (!isset($pluginlist[$p['plugin_file']])) {
|
if (!isset($pluginlist[$p['plugin_file']])) {
|
||||||
$pluginlist[$p['plugin_file']] = $p;
|
$pluginlist[$p['plugin_file']] = $p;
|
||||||
}
|
}
|
||||||
@ -683,6 +686,9 @@ class serendipity_plugin_api {
|
|||||||
unset($data['true_name']);
|
unset($data['true_name']);
|
||||||
unset($data['customURI']);
|
unset($data['customURI']);
|
||||||
unset($data['groups']);
|
unset($data['groups']);
|
||||||
|
if (isset($data['pluginpath'])) {
|
||||||
|
$data['pluginPath'] = $data['pluginpath'];
|
||||||
|
}
|
||||||
$data['requirements'] = serialize($data['requirements']);
|
$data['requirements'] = serialize($data['requirements']);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -751,7 +757,7 @@ class serendipity_plugin_api {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql .= "WHERE name='$name' $admin";
|
$sql .= "WHERE name='$name' $admin";
|
||||||
|
|
||||||
return serendipity_db_query($sql);
|
return serendipity_db_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user