- use template->parse instead of pparse. (exceptions for install.php and

upgrade.php)

- bug fixed : queries time and count were not displayed on a redirection


git-svn-id: http://piwigo.org/svn/trunk@688 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall 2005-01-13 10:18:49 +00:00
parent 57475d91be
commit 0737f91b19
14 changed files with 18 additions and 15 deletions

View file

@ -45,6 +45,6 @@ $template->assign_vars(array(
)
);
$template->pparse('about');
$template->parse('about');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>

View file

@ -244,7 +244,7 @@ else
{
$template->assign_vars(array ('ADMIN_CONTENT'=> '<div style="text-align:center">'.$lang['default_message'].'</div>') );
}
$template->pparse('admin');
$template->parse('admin');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
// +-----------------------------------------------------------------------+
// | order permission refreshment |

View file

@ -103,6 +103,6 @@ if ( !empty($username_list))
));
}
$template->pparse('search');
$template->parse('search');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>

View file

@ -332,6 +332,6 @@ if ( isset ( $page['cat'] ) )
pwg_log( 'category', $page['title'] );
mysql_close();
$template->pparse('category');
$template->parse('category');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>

View file

@ -232,7 +232,7 @@ if (defined('IN_ADMIN'))
else
{
$template->assign_block_vars('title',array());
$template->pparse('comments');
$template->parse('comments');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
}
?>

View file

@ -98,6 +98,6 @@ if ( sizeof( $errors ) != 0 )
//-------------------------------------------------------------- visit as guest
$template->assign_block_vars('free_access',array());
//----------------------------------------------------------- html code display
$template->pparse('identification');
$template->parse('identification');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>

View file

@ -543,17 +543,18 @@ function pwg_debug( $string )
*/
function redirect( $url )
{
global $user, $template, $lang_info, $conf, $lang, $t2;
global $user, $template, $lang_info, $conf, $lang, $t2, $page;
// $refresh, $url_link and $title are required for creating an automated
// refresh page in header.tpl
$refresh = 0;
$url_link = $url;
$title = 'redirection';
include( PHPWG_ROOT_PATH.'include/page_header.php' );
$template->set_filenames( array( 'redirect' => 'redirect.tpl' ) );
$template->pparse('redirect');
$template->parse('redirect');
include( PHPWG_ROOT_PATH.'include/page_tail.php' );

View file

@ -54,5 +54,5 @@ if ( isset( $refresh ) and is_int($refresh) and isset( $url_link ) )
$template->assign_block_vars('refresh', array());
}
$template->pparse('header');
$template->parse('header');
?>

View file

@ -59,5 +59,7 @@ if ($conf['show_gt'])
// Generate the page
//
$template->pparse('tail');
$template->parse('tail');
$template->p();
?>

View file

@ -1029,6 +1029,6 @@ if ($page['show_comments'])
pwg_log( 'picture', $title_img, $picture['current']['file'] );
mysql_close();
$template->pparse('picture');
$template->parse('picture');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>

View file

@ -348,7 +348,7 @@ if (defined('IN_ADMIN') and IN_ADMIN)
else
{
$template->assign_block_vars('modify.profile',array());
$template->pparse('profile_body');
$template->parse('profile_body');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
}
?>

View file

@ -83,6 +83,6 @@ if ( sizeof( $errors ) != 0 )
}
}
$template->pparse('register');
$template->parse('register');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>

View file

@ -269,6 +269,6 @@ if (sizeof($errors) != 0)
//------------------------------------------------------------ log informations
pwg_log( 'search', $title );
mysql_close();
$template->pparse('search');
$template->parse('search');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>

View file

@ -374,6 +374,6 @@ else
$template->assign_block_vars('upload_successful',array());
}
//----------------------------------------------------------- html code display
$template->pparse('upload');
$template->parse('upload');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>