removeDuplicates = true; } function run() { $bundle = MWEchoEmailBundler::newFromUserHash( User::newFromId( $this->params['user_id'] ), $this->params['bundle_hash'] ); if ( $bundle ) { $bundle->processBundleEmail(); } else { throw new MWException( 'Fail to create bundle object for: user_id: ' . $this->params['user_id'] . ', bundle_hash: ' . $this->params['bundle_hash'] ); } return true; } }