Display ChangeLog in plugin lists (if available).

Code was using wrong file path variable for checking
the presence of a ChangeLog file.

Cherry-picked from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2017-07-09 15:07:47 +02:00
parent 4eefa752e2
commit 81adf62790

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