diff options
author | mistic100 <mistic@piwigo.org> | 2011-12-18 21:46:24 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2011-12-18 21:46:24 +0000 |
commit | ca230a6f53e3a102faf5cb3633465ee8fc326663 (patch) | |
tree | 9613ef04023af2927ed452c370af4814fb866fc5 /nbm.php | |
parent | f5004995306cb603d63724c98af2d657c3c4a64b (diff) |
feature:2538 Make a unified messages management
use only $page['infos'] and $page['errors'] vars and and necessary template to all main pages
git-svn-id: http://piwigo.org/svn/trunk@12764 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | nbm.php | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -37,13 +37,9 @@ trigger_action('loading_lang'); load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); - // +-----------------------------------------------------------------------+ // | Main | // +-----------------------------------------------------------------------+ -$page['errors'] = array(); -$page['infos'] = array(); - if (isset($_GET['subscribe']) and preg_match('/^[A-Za-z0-9]{16}$/', $_GET['subscribe'])) { @@ -68,16 +64,7 @@ $page['body_id'] = 'theNBMPage'; $template->set_filenames(array('nbm'=>'nbm.tpl')); -// +-----------------------------------------------------------------------+ -// | errors & infos | -// +-----------------------------------------------------------------------+ -$template->assign( - array( - 'errors' => $page['errors'], - 'infos' => $page['infos'], - ) - ); - + // include menubar $themeconf = $template->get_template_vars('themeconf'); if (!isset($themeconf['hide_menu_on']) OR !in_array('theNBMPage', $themeconf['hide_menu_on'])) |