コード例 #1
0
 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;
 }
コード例 #2
0
 function __construct()
 {
     global $wgRequest;
     parent::__construct();
     $this->campaign = CustomUserSignupHooks::getCampaign();
 }