From: Platonides Date: Tue, 19 Oct 2010 21:02:03 +0000 (+0000) Subject: Remove PHP Notice: Undefined index: usedomain in phase3/includes/templates/Userlogin... X-Git-Tag: 1.31.0-rc.0~34415 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=72506896e336f86636b76f02fc14a849f90e400b;p=lhc%2Fweb%2Fwiklou.git Remove PHP Notice: Undefined index: usedomain in phase3/includes/templates/Userlogin.php on line 70 Add extradata data for adding fields from an extension. --- 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' ) ); } ?>