r47515 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47514‎ | r47515 | r47516 >
Date:21:36, 19 February 2009
Author:werdna
Status:ok
Tags:
Comment:
Make MergeAccount respect wfReadOnly()
Modified paths:
  • /trunk/extensions/CentralAuth/SpecialMergeAccount.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/SpecialMergeAccount.php
@@ -27,6 +27,12 @@
2828
2929 return;
3030 }
 31+
 32+ if ( wfReadOnly() ) {
 33+ $wgOut->setPagetitle( wfMsg( 'readonly' ) );
 34+ $wgOut->addWikiMsg( 'readonlytext', wfReadOnlyReason() );
 35+ return;
 36+ }
3137
3238 global $wgUser, $wgRequest;
3339 $this->mUserName = $wgUser->getName();

Status & tagging log