Page MenuHomePhabricator

enotif.patch

Authored By
bzimport
Nov 21 2014, 11:00 PM
Size
1 KB
Referenced Files
None
Subscribers
None

enotif.patch

Index: Preferences.php
===================================================================
--- Preferences.php (revision 63331)
+++ Preferences.php (working copy)
@@ -405,8 +405,11 @@
);
}
+ $isEnotif = false;
+
global $wgEnotifWatchlist;
if ( $wgEnotifWatchlist ) {
+ $isEnotif = true;
$defaultPreferences['enotifwatchlistpages'] =
array(
'type' => 'toggle',
@@ -417,6 +420,7 @@
}
global $wgEnotifUserTalk;
if( $wgEnotifUserTalk ) {
+ $isEnotif = true;
$defaultPreferences['enotifusertalkpages'] =
array(
'type' => 'toggle',
@@ -426,6 +430,7 @@
);
}
if( $wgEnotifUserTalk || $wgEnotifWatchlist ) {
+ $isEnotif = true;
$defaultPreferences['enotifminoredits'] =
array(
'type' => 'toggle',
@@ -434,13 +439,15 @@
'disabled' => $disableEmailPrefs,
);
}
- $defaultPreferences['enotifrevealaddr'] =
- array(
- 'type' => 'toggle',
- 'section' => 'personal/email',
- 'label-message' => 'tog-enotifrevealaddr',
- 'disabled' => $disableEmailPrefs,
- );
+ if( $isEnotif ) {
+ $defaultPreferences['enotifrevealaddr'] =
+ array(
+ 'type' => 'toggle',
+ 'section' => 'personal/email',
+ 'label-message' => 'tog-enotifrevealaddr',
+ 'disabled' => $disableEmailPrefs,
+ );
+ }
}
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6099
Default Alt Text
enotif.patch (1 KB)

Event Timeline