
skizzerz at svn
May 11, 2008, 10:28 AM
Post #1 of 1
(13 views)
Permalink
|
|
SVN: [34621] trunk/extensions/SimpleAntiSpam
|
|
Revision: 34621 Author: skizzerz Date: 2008-05-11 17:28:51 +0000 (Sun, 11 May 2008) Log Message: ----------- wfMsg -> wfMsgExt so that raw HTML cannot be passed into form Modified Paths: -------------- trunk/extensions/SimpleAntiSpam/SimpleAntiSpam.i18n.php trunk/extensions/SimpleAntiSpam/SimpleAntiSpam.php Modified: trunk/extensions/SimpleAntiSpam/SimpleAntiSpam.i18n.php =================================================================== --- trunk/extensions/SimpleAntiSpam/SimpleAntiSpam.i18n.php 2008-05-11 17:21:10 UTC (rev 34620) +++ trunk/extensions/SimpleAntiSpam/SimpleAntiSpam.i18n.php 2008-05-11 17:28:51 UTC (rev 34621) @@ -7,6 +7,6 @@ */ $messages['en'] = array( 'simpleantispam' => 'Your edit triggered the anti-spam mechanism', - 'simpleantispam-label' => 'Anti-spam check. Do <strong>NOT</strong> fill this in!', + 'simpleantispam-label' => "Anti-spam check. Do '''NOT''' fill this in!", 'simpleantispam-desc' => 'Adds a simple spam/bot check to forms', ); \ No newline at end of file Modified: trunk/extensions/SimpleAntiSpam/SimpleAntiSpam.php =================================================================== --- trunk/extensions/SimpleAntiSpam/SimpleAntiSpam.php 2008-05-11 17:21:10 UTC (rev 34620) +++ trunk/extensions/SimpleAntiSpam/SimpleAntiSpam.php 2008-05-11 17:28:51 UTC (rev 34621) @@ -26,8 +26,8 @@ //add the form field function efSimpleAntiSpamField(&$editpage, &$out) { wfLoadExtensionMessages('simpleantispam'); - $out->addHTML("<div id=\"antispam-containter\" style=\"display: none\">\n -<label for=\"wpAntispam\">".wfMsg('simpleantispam-label')."</label> <input type=\"text\" name=\"wpAntispam\" value=\"\" />\n + $out->addHTML("<div id=\"antispam-containter\" style=\"display: none\"> +<label for=\"wpAntispam\">".wfMsgExt('simpleantispam-label', array( 'parseinline', 'escapenoentities' ))."</label> <input type=\"text\" name=\"wpAntispam\" value=\"\" /> </div>\n"); return true; } @@ -47,10 +47,10 @@ //don't try to localize the messages in this function, you'll just fail epicly function efSimpleAntiSpamInstall() { $i = <<<EOM - This is an extension to the MediaWiki software and cannot be used standalone. - To install this on the wiki, add the following line to LocalSettings.php: - <tt>require_once("\$IP/extensions/SimpleAntiSpam/SimpleAntiSpam.php");</tt> - To verify the installation, browse to the Special:Version page on your wiki. + This is an extension to the MediaWiki software and cannot be used standalone.\n + To install this on the wiki, add the following line to LocalSettings.php:\n + <tt>require_once("\$IP/extensions/SimpleAntiSpam/SimpleAntiSpam.php");</tt>\n + To verify the installation, browse to the Special:Version page on your wiki.\n EOM; echo($i); return; _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS[at]lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
|