mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
Register goes smarty.
Correction in profile.php (forgotten assign_var) git-svn-id: http://piwigo.org/svn/trunk@2247 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+3
-7
@@ -75,7 +75,7 @@ $page['body_id'] = 'theRegisterPage';
|
||||
include(PHPWG_ROOT_PATH.'include/page_header.php');
|
||||
|
||||
$template->set_filenames( array('register'=>'register.tpl') );
|
||||
$template->assign_vars(array(
|
||||
$template->assign(array(
|
||||
'U_HOME' => make_index_url(),
|
||||
|
||||
'F_ACTION' => 'register.php',
|
||||
@@ -84,13 +84,9 @@ $template->assign_vars(array(
|
||||
));
|
||||
|
||||
//-------------------------------------------------------------- errors display
|
||||
if ( sizeof( $errors ) != 0 )
|
||||
if (count($errors) != 0)
|
||||
{
|
||||
$template->assign_block_vars('errors',array());
|
||||
for ( $i = 0; $i < sizeof( $errors ); $i++ )
|
||||
{
|
||||
$template->assign_block_vars('errors.error',array('ERROR'=>$errors[$i]));
|
||||
}
|
||||
$template->assign('errors', $errors);
|
||||
}
|
||||
|
||||
$template->parse('register');
|
||||
|
||||
Reference in New Issue
Block a user