* (bug 31921) Magic words REVISIONDAY, REVISIONMONTH and REVISIONYEAR now give
current values on preview
* (bug 29912) Unit tests break if parsertest tables are still present
+* (bug 19186) Special:UserLogin's title on Special:SpecialPages now says
+ "create account" when the user cannot create an account
=== API changes in 1.19 ===
* (bug 19838) siprop=interwikimap can now use the interwiki cache.
}
}
+ function getDescription() {
+ return $this->msg( $this->getUser()->isAllowed( 'createaccount' ) ?
+ 'userlogin' : 'userloginnocreate' )->text();
+ }
+
public function execute( $par ) {
if ( session_id() == '' ) {
wfSetupSession();
}
$this->load();
+ $this->setHeaders();
if ( $par == 'signup' ) { # Check for [[Special:Userlogin/signup]]
$this->mType = 'signup';
wfRunHooks( 'UserLoginForm', array( &$template ) );
}
- // Changes the title depending on permissions for creating account
$out = $this->getOutput();
- if ( $user->isAllowed( 'createaccount' ) ) {
- $out->setPageTitle( $this->msg( 'userlogin' ) );
- } else {
- $out->setPageTitle( $this->msg( 'userloginnocreate' ) );
- }
-
$out->disallowUserJs(); // just in case...
$out->addTemplate( $template );
}