/** * @brief Returns true * @details This function doesn't actually do anything - handler for MediaWiki hook * * @param OutputPage &$out MediaWiki OutputPage passed by reference * @param string &$text The article contents passed by reference * * @return true */ public static function onEditPageInitial(EditPage $editPage) { $app = F::app(); if ($app->checkSkin('wikiamobile')) { //We want mobile editing to be as clean as possible WikiaMobileNavigationService::setSkipRendering(true); WikiaMobileFooterService::setSkipRendering(true); $editPage->editFormTextBottom .= $app->renderView(__CLASS__, 'editPage'); } return true; }
static function setSkipRendering($value = false) { self::$skipRendering = $value; }