mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-25 00:05:29 +00:00
466c87d999
* Supports 'undo' and 'rollback' currently * Also includes adding the edit summary used to all edit notifications. * Also fixes a minor bug that made it seem like all EchoNotificationJobs were failing. * Added revert icon to CSS Change-Id: Id22470107b071cdbce33da7cf3dfd09d22947644
14 lines
293 B
PHP
14 lines
293 B
PHP
<?php
|
|
|
|
class EchoNotificationJob extends Job {
|
|
function __construct( $title, $params ) {
|
|
parent::__construct( 'EchoNotificationJob', $title, $params );
|
|
$this->event = $params['event'];
|
|
}
|
|
|
|
function run() {
|
|
EchoNotificationController::notify( $this->event, false );
|
|
return true;
|
|
}
|
|
}
|