On 7/18/06, Dan Davis hokie99cpe+wiki@gmail.com wrote:
On 7/18/06, Domas Mituzas midom.lists@gmail.com wrote:
http://mail.wikipedia.org/pipermail/mediawiki-l/2006-January/009492.html
OK, I'm modifying the code in that post for my own purposes. I would like to use a MediaWiki: message for certain control functions (I would prefer config files, but you know how managers can be...). To that end, I am trying to call wfMsgForContent() within my plugin... but, it's not working.
At the moment, I have added the message page to $wgWhitelistRead to get around my security settings. What else would be required to use wfMsgForContent() from my plugin? What about accessing the database directly (using login info from AdminSettings.php) to pull the plain-text content of the page in question?
Thoughts? Direction?
Dan