public static function welcomeScreen(&$welcomeCreationMsg, &$injected_html) { global $wgRequest; $campaign = CustomUserSignupHooks::getCampaign(); if ($campaign != "") { if (wfMessage("customusertemplate-{$campaign}-welcomecreation")->exists()) { $welcomeCreationMsg = "customusertemplate-{$campaign}-welcomecreation"; } } return true; }
function __construct() { global $wgRequest; parent::__construct(); $this->campaign = CustomUserSignupHooks::getCampaign(); }