Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6559
enotif.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:00 PM
2014-11-21 23:00:47 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
enotif.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6099
Default Alt Text
enotif.patch (1 KB)
Attached To
Mode
T24747: hide enotifrevealaddr, if there is no global enotif settings
Attached
Detach File
Event Timeline
Log In to Comment