(plugins, xmlrpc sync) use standard help if none available

This commit is contained in:
Ad Schellevis 2016-11-25 07:55:33 +01:00
parent 5d65669ee0
commit dd80bded16

View File

@ -194,6 +194,9 @@ function plugins_xmlrpc_sync()
foreach ($func() as $helper) {
if (!empty($helper['id']) && !empty($helper['section'])) {
$sync_settings[$helper['id']] = $helper;
if (empty($helper['help'])) {
$sync_settings[$helper['id']]['help'] = sprintf(gettext('Synchronize %s settings to backup'), $helper['description']);
}
unset($sync_settings[$helper['id']]['id']);
}
}