aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-09-14 16:21:02 +0000
committerz0rglub <z0rglub@piwigo.org>2003-09-14 16:21:02 +0000
commit058c5e2b765019272a0d45a461fdb4bd04396295 (patch)
tree2656176133ff112a58c062c2a779fb97cbe6a895
parent36f30b1854038c0721ed0348bf4e05bbb5468bc8 (diff)
Using template_initialize
git-svn-id: http://piwigo.org/svn/trunk@105 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--register.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/register.php b/register.php
index b491b87d8..0f0669926 100644
--- a/register.php
+++ b/register.php
@@ -50,12 +50,7 @@ $vtp->setGlobalVar( $handle, 'register_page_title',
$vtp->setGlobalVar( $handle, 'register_title', $lang['register_title'] );
$vtp->setGlobalVar( $handle, 'ident_guest_visit',$lang['ident_guest_visit'] );
$vtp->setGlobalVar( $handle, 'submit', $lang['submit'] );
-// user
-$vtp->setGlobalVar( $handle, 'page_style', $user['style'] );
-// structure
-$vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() );
-$vtp->setGlobalVar( $handle, 'frame_begin', get_frame_begin() );
-$vtp->setGlobalVar( $handle, 'frame_end', get_frame_end() );
+initialize_template();
//----------------------------------------------------------------- form action
$vtp->setGlobalVar( $handle, 'form_action', './register.php' );
//-------------------------------------------------------------- errors display
@@ -96,7 +91,7 @@ $vtp->closeSession( $handle, 'password' );
$vtp->closeSession( $handle, 'line' );
//---------------------------------------------------------------- mail address
$vtp->addSession( $handle, 'line' );
-$vtp->setVar( $handle, 'line.name', $lang['reg_mail_address'] );
+$vtp->setVar( $handle, 'line.name', $lang['mail_address'] );
$vtp->addSession( $handle, 'text' );
$vtp->setVar( $handle, 'text.name', 'mail_address' );
$vtp->setVar( $handle, 'text.value', $_POST['mail_address'] );