Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7870
enotifNoWl_timestampOnMinor.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:35 PM
2014-11-21 23:35:19 (UTC+0)
Size
875 B
Referenced Files
None
Subscribers
None
enotifNoWl_timestampOnMinor.diff
View Options
Index: UserMailer.php
===================================================================
--- UserMailer.php (revision 83374)
+++ UserMailer.php (working copy)
@@ -335,14 +335,16 @@
* @param $oldid (default: false)
*/
public function notifyOnPageChange( $editor, $title, $timestamp, $summary, $minorEdit, $oldid = false ) {
- global $wgEnotifUseJobQ, $wgEnotifWatchlist, $wgShowUpdatedMarker;
+ global $wgEnotifUseJobQ, $wgEnotifWatchlist, $wgShowUpdatedMarker, $wgEnotifMinorEdits;
if ( $title->getNamespace() < 0 )
return;
// Build a list of users to notfiy
$watchers = array();
- if ( $wgEnotifWatchlist || $wgShowUpdatedMarker ) {
+ if ( ($wgEnotifWatchlist || $wgShowUpdatedMarker )
+ && ( !$minorEdit || $wgEnotifMinorEdits )
+ ) {
$dbw = wfGetDB( DB_MASTER );
$res = $dbw->select( array( 'watchlist' ),
array( 'wl_user' ),
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7398
Default Alt Text
enotifNoWl_timestampOnMinor.diff (875 B)
Attached To
Mode
T29884: enotif doesn't send email if page on watchlist edited following a minor edit and enotif not configured to send minor edits.
Attached
Detach File
Event Timeline
Log In to Comment