/** * @author Federico "Lox" Lucignano * * overrides TopListBase::checkForProcessing */ public function checkForProcessing($mode = TOPLISTS_SAVE_AUTODETECT, User $user = null, $listMode = TOPLISTS_SAVE_UPDATE) { $errors = parent::checkForProcessing($mode, $user); if ($errors === true) { $errors = array(); } $title = Title::newFromText($this->mTitle->getText(), NS_TOPLIST); if (!($title instanceof Title && $title->exists()) && $listMode == TOPLISTS_SAVE_UPDATE) { $errors[] = array('msg' => 'toplists-error-article-not-exists', 'params' => array($title->getSubpageText(), $title->getEditURL())); } return empty($errors) ? true : $errors; }