Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4547
patch11771.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:00 PM
2014-11-21 22:00:17 (UTC+0)
Size
669 B
Referenced Files
None
Subscribers
None
patch11771.txt
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4112
Default Alt Text
patch11771.txt (669 B)
Attached To
Mode
T13771: Display message on user registration form if database locked
Attached
Detach File
Event Timeline
Log In to Comment