From 72506896e336f86636b76f02fc14a849f90e400b Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 19 Oct 2010 21:02:03 +0000 Subject: [PATCH] Remove PHP Notice: Undefined index: usedomain in phase3/includes/templates/Userlogin.php on line 70 Add extradata data for adding fields from an extension. --- includes/templates/Userlogin.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/includes/templates/Userlogin.php b/includes/templates/Userlogin.php index 34f7bbe69f..92ad9cb4b7 100644 --- a/includes/templates/Userlogin.php +++ b/includes/templates/Userlogin.php @@ -67,7 +67,7 @@ class UserloginTemplate extends QuickTemplate { - data['usedomain'] ) { + data['usedomain'] ) && $this->data['usedomain'] ) { $doms = ""; foreach( $this->data['domainnames'] as $dom ) { $doms .= ""; @@ -83,6 +83,11 @@ class UserloginTemplate extends QuickTemplate { haveData( 'extrafields' ) ) { + echo $this->data['extrafields']; + } + if( $this->data['canremember'] ) { ?> @@ -94,7 +99,7 @@ class UserloginTemplate extends QuickTemplate { 'wpRemember', 'wpRemember', $this->data['remember'], - array( 'tabindex' => '4' ) + array( 'tabindex' => '8' ) ) ?> @@ -106,13 +111,13 @@ class UserloginTemplate extends QuickTemplate { 'wpLoginAttempt', - 'tabindex' => '5' + 'tabindex' => '9' ) ); if ( $this->data['useemail'] && $this->data['canreset'] ) { echo ' '; echo Html::input( 'wpMailmypassword', wfMsg( 'mailmypassword' ), 'submit', array( 'id' => 'wpMailmypassword', - 'tabindex' => '6' + 'tabindex' => '10' ) ); } ?> -- 2.20.1