mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Merge "Make processEchoEmailBatch check that Echo is actually enabled before doing anything"
This commit is contained in:
commit
64b66712c5
|
@ -30,6 +30,10 @@ class ProcessEchoEmailBatch extends Maintenance {
|
|||
public function execute() {
|
||||
global $wgEchoCluster;
|
||||
|
||||
if ( !class_exists( 'EchoHooks' ) ) {
|
||||
$this->error( "Echo isn't enabled on this wiki\n", 1 );
|
||||
}
|
||||
|
||||
$ignoreConfiguredSchedule = $this->getOption( "ignoreConfiguredSchedule", 0 );
|
||||
|
||||
$this->output( "Started processing... \n" );
|
||||
|
|
Loading…
Reference in a new issue