Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5MailerJob.php |
— | — | @@ -99,4 +99,21 @@ |
100 | 100 | return array($subject, $body); |
101 | 101 | } |
102 | 102 | |
| 103 | + /** |
| 104 | + * Override insert - prototype does not even have a jobs table and will |
| 105 | + * bomb miserably on this |
| 106 | + * |
| 107 | + * @return bool true on success |
| 108 | + */ |
| 109 | + function insert() { |
| 110 | + global $wgArticleFeedbackv5OversightEmails; |
| 111 | + |
| 112 | + // if the oversight email address is empty we're going to just skip all this, but return true |
| 113 | + if ( null === $wgArticleFeedbackv5OversightEmails ) { |
| 114 | + return true; |
| 115 | + } |
| 116 | + |
| 117 | + return parent::insert(); |
| 118 | + } |
| 119 | + |
103 | 120 | } |
\ No newline at end of file |