From e4b9a7633d5eb325e2ae3a098417d5e1d5609852 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 22 Nov 2015 14:45:09 +0100 Subject: Bugfix: do not store plugin errors in data.php 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. --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 872acf09..7bcd0d15 100644 --- a/index.php +++ b/index.php @@ -679,8 +679,8 @@ class pageBuilder $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']); } } -- cgit v1.2.3