dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
982869d
)
Code style cleanups to notifyOnPageChange()
author
Aaron Schulz
<aschulz@wikimedia.org>
Sat, 30 Jan 2016 00:03:29 +0000
(16:03 -0800)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Sat, 30 Jan 2016 00:03:29 +0000
(16:03 -0800)
Change-Id: I08593be2eba6417cdfae31b1aa1021da7db00c74
includes/mail/EmailNotification.php
patch
|
blob
|
history
diff --git
a/includes/mail/EmailNotification.php
b/includes/mail/EmailNotification.php
index
e51b434
..
8bac6b8
100644
(file)
--- a/
includes/mail/EmailNotification.php
+++ b/
includes/mail/EmailNotification.php
@@
-166,22
+166,21
@@
class EmailNotification {
}
}
}
}
- if ( !$sendEmail ) {
- return;
+ if ( $sendEmail ) {
+ JobQueueGroup::singleton()->lazyPush( new EnotifNotifyJob(
+ $title,
+ array(
+ 'editor' => $editor->getName(),
+ 'editorID' => $editor->getID(),
+ 'timestamp' => $timestamp,
+ 'summary' => $summary,
+ 'minorEdit' => $minorEdit,
+ 'oldid' => $oldid,
+ 'watchers' => $watchers,
+ 'pageStatus' => $pageStatus
+ )
+ ) );
}
}
-
- $params = array(
- 'editor' => $editor->getName(),
- 'editorID' => $editor->getID(),
- 'timestamp' => $timestamp,
- 'summary' => $summary,
- 'minorEdit' => $minorEdit,
- 'oldid' => $oldid,
- 'watchers' => $watchers,
- 'pageStatus' => $pageStatus
- );
- $job = new EnotifNotifyJob( $title, $params );
- JobQueueGroup::singleton()->lazyPush( $job );
}
/**
}
/**