Page MenuHomePhabricator

patch11771.txt

Authored By
bzimport
Nov 21 2014, 10:00 PM
Size
669 B
Referenced Files
None
Subscribers
None

patch11771.txt

Index: includes/SpecialUserlogin.php
===================================================================
--- includes/SpecialUserlogin.php (revision 31701)
+++ includes/SpecialUserlogin.php (working copy)
@@ -1,4 +1,11 @@
<?php
+
+ #If database is locked show message on login that it is locked
+ if( wfReadOnly() ) {
+ global $wgOut;
+ $wgOut->readOnlyPage();
+ return;
+ }
/**
*
* @addtogroup SpecialPage
@@ -224,11 +231,6 @@
}
}
- if ( wfReadOnly() ) {
- $wgOut->readOnlyPage();
- return false;
- }
-
# Check permissions
if ( !$wgUser->isAllowed( 'createaccount' ) ) {
$this->userNotPrivilegedMessage();

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4112
Default Alt Text
patch11771.txt (669 B)

Event Timeline