Merge pull request #520 from th-h/thh-plugin-changelog

Display ChangeLog in plugin lists (if available).
This commit is contained in:
onli 2017-07-09 19:26:23 +02:00 committed by GitHub
commit 405fa77e3f

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