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. --- plugins/readityourself/readityourself.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/readityourself') diff --git a/plugins/readityourself/readityourself.php b/plugins/readityourself/readityourself.php index 68efc543..1b030bc8 100644 --- a/plugins/readityourself/readityourself.php +++ b/plugins/readityourself/readityourself.php @@ -14,7 +14,7 @@ if (is_file(PluginManager::$PLUGINS_PATH . '/readityourself/config.php')) { } 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.'; } -- cgit v1.2.3