Before this, calling writeConfig() would have write error messages in data.php, because it uses 'plugins' array which is used for plugin configuration.
Causing the message error appear everytime.
$this->tpl->assign('pagetitle', $GLOBALS['pagetitle']);
}
$this->tpl->assign('shaarlititle', empty($GLOBALS['title']) ? 'Shaarli': $GLOBALS['title']);
- if (!empty($GLOBALS['plugins']['errors'])) {
- $this->tpl->assign('plugin_errors', $GLOBALS['plugins']['errors']);
+ if (!empty($GLOBALS['plugin_errors'])) {
+ $this->tpl->assign('plugin_errors', $GLOBALS['plugin_errors']);
}
}
}
if (!isset($GLOBALS['plugins']['READITYOUSELF_URL'])) {
- $GLOBALS['plugins']['errors'][] = 'Readityourself plugin error: '.
+ $GLOBALS['plugin_errors'][] = 'Readityourself plugin error: '.
'Please define "$GLOBALS[\'plugins\'][\'READITYOUSELF_URL\']" '.
'in "plugins/readityourself/config.php" or in your Shaarli config.php file.';
}
}
if (!isset($GLOBALS['plugins']['WALLABAG_URL'])) {
- $GLOBALS['plugins']['errors'][] = 'Wallabag plugin error: '.
+ $GLOBALS['plugin_errors'][] = 'Wallabag plugin error: '.
'Please define "$GLOBALS[\'plugins\'][\'WALLABAG_URL\']" '.
'in "plugins/wallabag/config.php" or in your Shaarli config.php file.';
}