wfSetupSession();
}
- $loginForm = new Login( $req );
- switch ( $authRes = $loginForm->attemptLogin() ) {
+ $login = new Login( $req );
+ switch ( $authRes = $login->attemptLogin() ) {
case Login::SUCCESS :
global $wgUser, $wgCookiePrefix;
}
}
+ /**
+ * Add text to the header. Only write to $mFormHeader directly
+ * if you're determined to overwrite anything that other
+ * extensions might have added.
+ * @param $text String HTML
+ */
+ public function addFormHeader( $text ){
+ $this->mFormHeader .= $text;
+ }
+
/**
* Since the UserCreateForm hook was changed to pass a SpecialPage
* instead of a QuickTemplate derivative, old extensions might
return;
}
}
+
+ /**
+ * Add text to the header. Only write to $mFormHeader directly
+ * if you're determined to overwrite anything that other
+ * extensions might have added.
+ * @param $text String HTML
+ */
+ public function addFormHeader( $text ){
+ $this->mFormHeader .= $text;
+ }
/**
* Since the UserLoginForm hook was changed to pass a SpecialPage