Page MenuHomePhabricator

bug18549v2.patch

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

bug18549v2.patch

Index: includes/specials/SpecialBlockip.php
===================================================================
--- includes/specials/SpecialBlockip.php (revision 50624)
+++ includes/specials/SpecialBlockip.php (working copy)
@@ -70,7 +70,7 @@
}
public function showForm( $err ) {
- global $wgOut, $wgUser, $wgSysopUserBans;
+ global $wgOut, $wgUser, $wgSysopUserBans, $wgEnableUserEmail;
$wgOut->setPagetitle( wfMsg( 'blockip' ) );
$wgOut->addWikiMsg( 'blockiptext' );
@@ -231,7 +231,7 @@
);
global $wgSysopEmailBans, $wgBlockAllowsUTEdit;
- if( $wgSysopEmailBans && $wgUser->isAllowed( 'blockemail' ) ) {
+ if( $wgSysopEmailBans && $wgUser->isAllowed( 'blockemail' ) && $wgEnableUserEmail) {
$wgOut->addHTML("
<tr id='wpEnableEmailBan'>
<td>&nbsp;</td>

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5203
Default Alt Text
bug18549v2.patch (796 B)

Event Timeline