[Mediawiki-l] The opposite of wfMsg()?

Daniel Barrett danb at VistaPrint.com
Wed Jun 27 14:49:57 UTC 2007


I have an app that depends on a particular system message that might not
exist yet.

What is the correct way to accomplish the following logic in an
extension?

if (!wfMsg('my-message')) {
   set 'my-message' to a default value
}
$wgOut->addWikiText(wfMsg('my-message'));

Thanks,
DanB


---------------------
Confidentiality note
The information in this email and any attachment may contain confidential and
proprietary information of VistaPrint and/or its affiliates and may be privileged or 
otherwise protected from disclosure. If you are not the intended recipient, you are 
hereby notified that any review, reliance or distribution by others or forwarding 
without express permission is strictly prohibited and may cause liability. In case 
you have received this message due to an error in transmission, please notify the 
sender immediately and delete this email and any attachment from your system.
---------------------


More information about the MediaWiki-l mailing list