# HG changeset patch # User Dan # Date 1213508313 14400 # Node ID df78a7fb91fd0279d24a6af67cb8b9f817f607be # Parent 43e7254afdb441efe9114512f59c10b281ef3ad4 Fixed title not being set properly in redirect() diff -r 43e7254afdb4 -r df78a7fb91fd includes/functions.php --- a/includes/functions.php Sun Jun 15 01:30:00 2008 -0400 +++ b/includes/functions.php Sun Jun 15 01:38:33 2008 -0400 @@ -357,10 +357,12 @@ { $template = new template_nodb(); $template->load_theme('oxygen', 'bleu', false); - $template->tpl_strings['SITE_NAME'] = 'Enano'; - $template->tpl_strings['SITE_DESC'] = 'This site is experiencing a critical error and cannot load.'; - $template->tpl_strings['COPYRIGHT'] = 'Powered by Enano CMS - © 2006-2008 Dan Fuhry. This program is Free Software; see the GPL file included with this package for details.'; - $template->tpl_strings['PAGE_NAME'] = htmlspecialchars($title); + $template->assign_vars(array( + 'SITE_NAME' => 'Enano', + 'SITE_DESC' => 'This site is experiencing a critical error and cannot load.', + 'COPYRIGHT' => 'Powered by Enano CMS - © 2006-2008 Dan Fuhry. This program is Free Software; see the GPL file included with this package for details.', + 'PAGE_NAME' => htmlspecialchars($title) + )); } $template->add_header(''); @@ -376,7 +378,7 @@ if ( get_class($template) == 'template_nodb' ) $template->init_vars(); - $template->tpl_strings['PAGE_NAME'] = $title; + $template->assign_vars(array('PAGE_NAME' => $title)); $template->header(true); echo '
' . $message . '
'; $subst = array(