Skip to content

Commit

Permalink
bug 331 fixed: html generated contains the code in header.tpl twice
Browse files Browse the repository at this point in the history
when we use the function redirect
svn merge -r1296:1297 from branch 1.6 into trunk


git-svn-id: http://piwigo.org/svn/trunk@1298 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
nikrou committed May 3, 2006
1 parent 9251fdf commit aafda98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/functions.inc.php
Expand Up @@ -526,6 +526,13 @@ function redirect( $url , $msg = '', $refreh_time = 0)
{
global $user, $template, $lang_info, $conf, $lang, $t2, $page, $debug;

unset($template);
$template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template']);
if (!isset($page['body_id']))
{
$page['body_id'] = 'adminPage';
}

// $redirect_msg, $refresh, $url_link and $title are required for creating an automated
// refresh page in header.tpl
if (!isset($msg) or ($msg == ''))
Expand Down

0 comments on commit aafda98

Please sign in to comment.