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:
Thomas Hochstein 2017-07-09 15:07:47 +02:00
parent 93c95407aa
commit b7f479e9fc

View File

@ -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';
} }