protected static function isABTestArticle() { global $wgTitle; $isTest = false; if ($wgTitle && !preg_match("@^DocViewer\$@", $wgTitle->getText())) { if (is_null(wikihowAds::$isABTest)) { // Turn on new ad test for all articles $wikihowUrl = "http://www.wikihow.com/" . $wgTitle->getPartialURL(); $msg = ConfigStorage::dbGetConfig('beta_test'); $articles = split("\n", $msg); if (in_array($wikihowUrl, $articles)) { wikihowAds::$isABTest = true; } } $isTest = wikihowAds::$isABTest; } return $isTest; }