Merge pull request #385 from ArthurHoaro/plugins-error-fix

Bugfix: do not store plugin errors in data.php
This commit is contained in:
Arthur 2015-11-22 17:32:17 +01:00
commit da08b65de1
3 changed files with 4 additions and 4 deletions

View file

@ -679,8 +679,8 @@ private function initialize()
$this->tpl->assign('pagetitle', $GLOBALS['pagetitle']); $this->tpl->assign('pagetitle', $GLOBALS['pagetitle']);
} }
$this->tpl->assign('shaarlititle', empty($GLOBALS['title']) ? 'Shaarli': $GLOBALS['title']); $this->tpl->assign('shaarlititle', empty($GLOBALS['title']) ? 'Shaarli': $GLOBALS['title']);
if (!empty($GLOBALS['plugins']['errors'])) { if (!empty($GLOBALS['plugin_errors'])) {
$this->tpl->assign('plugin_errors', $GLOBALS['plugins']['errors']); $this->tpl->assign('plugin_errors', $GLOBALS['plugin_errors']);
} }
} }

View file

@ -14,7 +14,7 @@
} }
if (!isset($GLOBALS['plugins']['READITYOUSELF_URL'])) { if (!isset($GLOBALS['plugins']['READITYOUSELF_URL'])) {
$GLOBALS['plugins']['errors'][] = 'Readityourself plugin error: '. $GLOBALS['plugin_errors'][] = 'Readityourself plugin error: '.
'Please define "$GLOBALS[\'plugins\'][\'READITYOUSELF_URL\']" '. 'Please define "$GLOBALS[\'plugins\'][\'READITYOUSELF_URL\']" '.
'in "plugins/readityourself/config.php" or in your Shaarli config.php file.'; 'in "plugins/readityourself/config.php" or in your Shaarli config.php file.';
} }

View file

@ -10,7 +10,7 @@
} }
if (!isset($GLOBALS['plugins']['WALLABAG_URL'])) { if (!isset($GLOBALS['plugins']['WALLABAG_URL'])) {
$GLOBALS['plugins']['errors'][] = 'Wallabag plugin error: '. $GLOBALS['plugin_errors'][] = 'Wallabag plugin error: '.
'Please define "$GLOBALS[\'plugins\'][\'WALLABAG_URL\']" '. 'Please define "$GLOBALS[\'plugins\'][\'WALLABAG_URL\']" '.
'in "plugins/wallabag/config.php" or in your Shaarli config.php file.'; 'in "plugins/wallabag/config.php" or in your Shaarli config.php file.';
} }