function msg($str) { // exists if ($this->campaign && wfMessage("customusertemplate-{$this->campaign}-{$str}")->exists()) { $this->msgWikiCustom("customusertemplate-{$this->campaign}-{$str}", true); } else { parent::msg($str); } }