/** * static entry point for hook * * @static * @access public */ public static function ArticleFromTitle(&$title, &$article) { if (!AutoHubsPagesHelper::isHubsPage($title)) { return true; } $article = new AutoHubsPagesArticle($title); return true; }
/** * @param string $first_chunk * @return bool */ function wfAdProviderDARTFirstChunkForHubs(&$first_chunk) { global $wgTitle; if (!AutoHubsPagesHelper::isHubsPage($wgTitle)) { return true; } $first_chunk = 'wka.' . AutoHubsPagesHelper::getSiteForHub($wgTitle) . '/_' . AutoHubsPagesHelper::getHubNameFromTitle($wgTitle) . '/hub'; return true; }