diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-03-13 01:43:45 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-03-13 01:43:45 +0000 |
commit | a6437b81e68d5b14ded9cd2eaed7f134999ab794 (patch) | |
tree | 19b4cb1e5bb320887641edb8d24bd56e369d37f4 /nbm.php | |
parent | 6f84eaf7cb10b0db6e82a3c85d998e60a3654c9a (diff) |
- changes to template to accomodate nbm (solved issue when we had same template filename with different root dirs)
- started some changes in mail templates
git-svn-id: http://piwigo.org/svn/trunk@2278 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | nbm.php | 29 |
1 files changed, 8 insertions, 21 deletions
@@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | PhpWebGallery - a PHP based picture gallery | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | -// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | +// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ // | file : $Id$ // | last update : $Date$ @@ -72,32 +72,19 @@ include(PHPWG_ROOT_PATH.'include/page_header.php'); $template->set_filenames(array('nbm'=>'nbm.tpl')); -$template->assign_vars(array('U_HOME' => make_index_url())); - // +-----------------------------------------------------------------------+ // | errors & infos | // +-----------------------------------------------------------------------+ -if (count($page['errors']) != 0) -{ - $template->assign_block_vars('errors',array()); - foreach ($page['errors'] as $error) - { - $template->assign_block_vars('errors.error',array('ERROR'=>$error)); - } -} - -if (count($page['infos']) != 0) -{ - $template->assign_block_vars('infos',array()); - foreach ($page['infos'] as $info) - { - $template->assign_block_vars('infos.info',array('INFO'=>$info)); - } -} +$template->assign( + array( + 'errors' => $page['errors'], + 'infos' => $page['infos'], + ) + ); // +-----------------------------------------------------------------------+ // | html code display | // +-----------------------------------------------------------------------+ $template->parse('nbm'); include(PHPWG_ROOT_PATH.'include/page_tail.php'); -?>
\ No newline at end of file +?> |