Commit graph

35 commits

Author SHA1 Message Date
Alexandre Emsenhuber ab6b86eeca Remove unneeded experimental change from r89638 2011-06-07 09:47:46 +00:00
Alexandre Emsenhuber b833ab01cf Use preg_replace_callback() instead of preg_repace() with /e, also some style fixes 2011-06-07 09:45:41 +00:00
Sam Reed 1db64f527e Remove < 1.8 code path 2011-02-10 01:50:15 +00:00
Sam Reed 75d541a7fd Fixup some missing variable definitions 2011-01-23 10:33:37 +00:00
Matěj Grabovský 60bad5ad21 Removed description in $wgExtensionCredits where descriptionmsg was used 2010-08-10 15:27:44 +00:00
Aryeh Gregor 188d244d80 Remove most named character references from output
Recommit of r66254 to trunk.  This was just

find extensions phase3 -iname '*.php' \! -iname '*.i18n.php' \! -iname 'Messages*.php' \! -iname '*_Messages.php' -exec sed -i 's/&nbsp;/\&#160;/g;s/&mdash;/―/g;s/&bull;/•/g;s/&aacute;/á/g;s/&acute;/´/g;s/&agrave;/à/g;s/&alpha;/α/g;s/&auml;/ä/g;s/&ccedil;/ç/g;s/&copy;/©/g;s/&darr;/↓/g;s/&deg;/°/g;s/&eacute;/é/g;s/&ecirc;/ê/g;s/&euml;/ë/g;s/&egrave;/è/g;s/&euro;/€/g;s/&harr;//g;s/&hellip;/…/g;s/&iacute;/í/g;s/&igrave;/ì/g;s/&larr;/←/g;s/&ldquo;/“/g;s/&middot;/·/g;s/&minus;/−/g;s/&ndash;/–/g;s/&oacute;/ó/g;s/&ocirc;/ô/g;s/&oelig;/œ/g;s/&ograve;/ò/g;s/&otilde;/õ/g;s/&ouml;/ö/g;s/&pound;/£/g;s/&prime;/′/g;s/&Prime;/″/g;s/&raquo;/»/g;s/&rarr;/→/g;s/&rdquo;/”/g;s/&Sigma;/Σ/g;s/&times;/×/g;s/&uacute;/ú/g;s/&uarr;/↑/g;s/&uuml;/ü/g;s/&yen;/¥/g' {} +

followed by reading over every single line of the resulting diff and
fixing a whole bunch of false positives.  The reason for this change is
given in <http://lists.wikimedia.org/pipermail/wikitech-l/2010-April/047617.html>.
I cleared it with Tim and Brion on IRC before committing.  It might
cause a few problems, but I tried to be careful; please report any
issues.

I skipped all messages files.  I plan to make a follow-up commit that
alters wfMsgExt() with 'escapenoentities' to sanitize all the entities.
That way, the only messages that will be problems will be ones that
output raw HTML, and we want to get rid of those anyway.

This should get rid of all named entities everywhere except messages.  I
skipped a few things like &nbsp that I noticed in manual inspection,
because they weren't well-formed XML anyway.

Also, to everyone who uses non-breaking spaces when they could use a
normal space, or nothing at all, or CSS padding: I still hate you.  Die.
2010-05-30 17:33:59 +00:00
Brian Wolff ffd9e2a8e7 Bug 22363 - make <poem> handle template parameters (aka {{{1}}}) 2010-02-05 04:37:53 +00:00
Chad Horohoe 6f93884fa3 Drop ancient 1.6 and below compat. This is why we branch :) 2010-01-16 16:28:06 +00:00
Max Semenik fe706136d7 Updated links for pages moved from Meta to mw.org, tweaked doc a bit in one case (extensions/ConfirmEdit/MathCaptcha) 2009-12-05 15:03:20 +00:00
Chad Horohoe 8b3bdbd96f Nuking fallback code for MW < 1.12 in most extensions (there's like 5 or 6 left I haven't done). Couple of points:
* 1.11 and below aren't supported anymore, so we don't need to be maintaining back-compat code for it anymore. This is why we branch extensions
* The vast majority of these were using $wgParser. This defeats the purpose of ParserFirstCallInit...allowing you to use parsers other than $wgParser. All these extensions now work in any instance of the Parser, not just $wgParser
2009-09-04 22:22:12 +00:00
Shinjiman ee5cf7d420 Follows up r49890, adding file location itself to obtaining the revision number shown in the Special:Version 2009-04-27 04:45:10 +00:00
Chad Horohoe 37f9517816 Big commit. Removing svn-version and svn-date from extensions. Per the list, these versions do not give valuable information and are often wildly inaccurate. 2009-03-26 17:39:49 +00:00
Aaron Schulz a8ba79835d Search & replace war on old wf* xml functions 2008-12-20 09:32:47 +00:00
Andrew Garrett a4c2dcedd5 Revert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions."
Uses $dir in extension files, and assumes that it remains unchanged in require_once( 'maintenance/commandLine.inc' ).
In fact, it is likely that '$dir' will be set when setting up command-line, as some extensions will use the same var.

Recommended fix: Use $CentralAuth_dir, $EmailPage_dir, etc.
2008-11-30 03:15:22 +00:00
Siebrand Mazeland d92035a151 Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions. 2008-11-26 23:17:15 +00:00
Brion Vibber 40678dab7d Update a bunch of extensions to avoid unstubbing $wgParser early for setHook() on current MW versions. 2008-06-06 20:38:04 +00:00
Tim Starling 5dd8ae2660 Don't call preg_replace ~80 times per request. Leave the heavy lifting to Special:Version, using the new svn-revision member of $wgExtensionCredits. 2008-05-06 11:59:58 +00:00
Steve Sanbeg 393eaff610 fix problem with leading spaces in compact poems, fix a few regression tests that changes slightly due to new preprocessor(?) 2008-04-08 15:43:50 +00:00
Brion Vibber e950babe80 don't spew PHP warnings when checking for 'compact' param 2008-03-26 20:58:20 +00:00
Siebrand Mazeland e6aa842ee6 * add svn:keywords 'LastChangedDate'
* replace text 'version' in ExtensionCredits with version based on 'LastChangedDate' for automatic version updating
2008-02-27 14:13:10 +00:00
Steve Sanbeg 82787ef5de add "compact" option 2008-02-20 23:08:49 +00:00
Raimond Spekking 9cb940e05d * Add description message for [[Special:Version]]
* Fix indention
2008-02-18 18:42:20 +00:00
Siebrand Mazeland 00663f283c revert r28371 to r28375 2007-12-16 18:27:23 +00:00
Siebrand Mazeland e342606278 * complete $wgExtensionCredits
* remove trailing whitespace
2007-12-10 21:13:52 +00:00
Rob Church 1c8eea47c0 Tweak a few more descriptions 2007-07-16 20:42:31 +00:00
Rob Church 403eed6b9a (bug 10528) Update documentation URL 2007-07-10 18:52:22 +00:00
Aryeh Gregor 33010ab409 Extensions too! 2007-06-29 01:36:09 +00:00
Rob Church dfb41a5309 Tweak credits 2007-06-13 10:46:33 +00:00
Antoine Musso c0734321b5 use parser->getTitle() to get possible private $parser->mTitle 2007-01-17 22:57:38 +00:00
Steve Sanbeg 528da54ae4 A few old fixes: add regression tests, handle <nowiki> nested in <poem>, update credits per Nikola 2006-12-14 21:40:24 +00:00
Rotem Liss cb4b811e9b (bug 7779) <poem> extension not correctly named on [[Special:Version]] 2006-11-01 15:29:34 +00:00
Aryeh Gregor eae035c8e3 (bug 7738) Add credits for Poem and ProofreadPage extensions. 2006-10-29 21:41:25 +00:00
Brion Vibber 71c6e7ab9c * (bug 6815) Trim trailing whitespace from <poem>; tidy mode bulks it up 2006-08-31 17:08:14 +00:00
Brion Vibber 85f9ce0ea0 Clean up line-splitting behavior with indentation 2006-06-23 22:12:06 +00:00
Brion Vibber f497d47b5d Commit http://meta.wikimedia.org/wiki/Poem_Extension with modifications.
Now wraps output in <div class="poem">; additional HTML attributes are passed through on MW 1.7 and above.
2006-06-23 21:22:25 +00:00