Display ChangeLog in plugin lists (if available).
Code was using wrong file path variable for checking the presence of a ChangeLog file. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
93c95407aa
commit
b7f479e9fc
@ -222,7 +222,7 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
|
|||||||
$props['installable'] = !($props['stackable'] === false && in_array($class_data['true_name'], $plugins));
|
$props['installable'] = !($props['stackable'] === false && in_array($class_data['true_name'], $plugins));
|
||||||
$props['requirements'] = unserialize($props['requirements']);
|
$props['requirements'] = unserialize($props['requirements']);
|
||||||
|
|
||||||
if (empty($props['changelog']) && @file_exists(dirname($plugin->pluginFile) . '/ChangeLog')) {
|
if (empty($props['changelog']) && @file_exists(dirname($props['plugin_file']) . '/ChangeLog')) {
|
||||||
$props['changelog'] = 'plugins/' . $props['pluginPath'] . '/ChangeLog';
|
$props['changelog'] = 'plugins/' . $props['pluginPath'] . '/ChangeLog';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user