Merge "Make processEchoEmailBatch check that Echo is actually enabled before doing anything"

This commit is contained in:
jenkins-bot 2015-06-02 01:16:16 +00:00 committed by Gerrit Code Review
commit 64b66712c5

View file

@ -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" );