public static function onBeforePageDisplay(OutputPage &$out, Skin &$skin) { if (class_exists('ArticleCommentInit') && ArticleCommentInit::ArticleCommentCheck()) { $app = F::app(); // This is the actual entry point for Article Comment generation self::$content = $app->sendRequest('ArticleComments', 'index'); // Load MiniEditor assets (oasis skin only) if (ArticleComment::isMiniEditorEnabled()) { $app->sendRequest('MiniEditor', 'loadAssets', array('loadStyles' => !ArticleComment::isLoadingOnDemand(), 'loadOnDemand' => true, 'loadOnDemandAssets' => array('/extensions/wikia/MiniEditor/js/Wall/Wall.Animations.js'))); } } return true; }