public function execute($par)
 {
     global $wgOut, $wgUser, $wgRequest;
     $title = Title::newFromText($par);
     // bad title
     if (!$title instanceof Title) {
         $title = Title::newMainPage();
     }
     // title exists
     if ($title->exists()) {
         $wgOut->redirect($title->getFullURL());
         return;
     }
     $wgOut->setPageTitle(wfMsg('ac-landing-page-title'));
     $wgOut->setRobotPolicy('noindex,nofollow');
     $wgOut->addModules('ext.articleCreation.core');
     $wgOut->addModules('ext.articleCreation.user');
     $wgOut->addHtml(ArticleCreationTemplates::getLandingPage($par));
     ArticleCreationUtil::TrackSpecialLandingPage($wgRequest, $wgUser);
 }
 public static function resourceLoaderGetConfigVars(&$vars)
 {
     global $wgArticleCreationConfig;
     $vars['acConfig'] = $wgArticleCreationConfig + array('tracking-turned-on' => ArticleCreationUtil::trackingEnabled(), 'tracking-code-prefix' => ArticleCreationUtil::trackingCodePrefix());
     return true;
 }