yaron
871f067d57
Fix *other* undefined variable introduced in I8e8e22b3
...
Follow-up to Siebrand's commit, I14b9a82d0b36f1682cd24d7d56ea6b2ebbddb412
Change-Id: I6eae4b3e0946ea3038ca2622d57b1b401a1032b5
2013-01-02 17:41:30 +03:00
Siebrand Mazeland
ca522f2cc2
Fix undefined variable introduced in I8e8e22b3
...
Change-Id: I14b9a82d0b36f1682cd24d7d56ea6b2ebbddb412
2012-12-09 16:03:08 +01:00
Reedy
5ec5351d1a
Add some braces, some profiling calls
...
Add hook documentation block
Change-Id: I8e8e22b3193f1cdad590dd9bcdccfc785c140321
2012-12-08 13:10:33 +00:00
Siebrand Mazeland
4eec59a457
Maintenance for ReplaceText extension.
...
* Now requires MediaWiki 1.18 or later.
* Use strict in JavaScript and update with JSHint/JSLint suggestions.
* Deglobalisation.
* Replace deprecated methods, remove pre 1.18 BC code.
* Update docs.
* Break long lines.
* Add FIXME where needed.
Change-Id: If9fe1e314937438227458cb07cda7f734043801f
2012-11-07 07:37:05 +00:00
Yaron Koren
cf50ed2908
Added support for regexps with PostgreSQL - patch from Thomas Werner
2012-02-17 19:49:36 +00:00
Yaron Koren
2085c90797
Added handling in case prefix isn't parseable
2012-02-14 05:13:09 +00:00
Yaron Koren
f32067232b
Follow-up to r107766 and r107767 - those two revisions accidentally removed compatibility with MW 1.16 (which is still supported); other small changes
2012-01-03 13:36:56 +00:00
Niklas Laxström
1d68d13ad4
Stuff older than 1.16 not supported anymore
2012-01-01 08:54:58 +00:00
Niklas Laxström
574c1886ab
search.js doesn't exist anymore
2012-01-01 08:34:30 +00:00
Niklas Laxström
e81da8e7e0
Small cleanup
2012-01-01 08:33:28 +00:00
Yaron Koren
eb7786f3f7
Fixed code for some form inputs - patch from Subfader
2011-12-07 02:52:08 +00:00
Alexandre Emsenhuber
b7af804496
Removed second parameter to Title::userCan() and changed it to quickUserCan() where needed
2011-11-06 18:16:54 +00:00
Yaron Koren
bca037f0d9
Added backward compatibility for MW < 1.16, which had no 'Html' class, using a new helper function, hiddenField()
2011-07-12 22:44:16 +00:00
Daniel Friesen
f67bb1c229
Modify callers of makeLinkObj, many of these seam to be passing unescaped text which is actually treated as html and needs to be escaped.
2011-05-08 03:16:03 +00:00
Sam Reed
a2eaa7f60c
Xml::hidden() --> Html::hidden()
...
Xml::hidden() killed
2011-05-06 23:13:09 +00:00
Happy-melon
3b42b6f365
(bug 28583) chase down and beat to death external calls of functions marked /*private*/, and make those declarations actually binding. Patch by yuvipanda.
2011-04-18 19:03:14 +00:00
Chad Horohoe
34a416305d
Partial revert r84686: Yaron wants to maintain b/c in these still
2011-03-24 17:38:40 +00:00
Chad Horohoe
1c968e8ae3
Remove wfLoadExtensionMessages() in all trunk extensions (do not backport)
...
* This function has been a no-op since 1.16
* As of 1.18, this throws warnings to all callers
* It will be removed *entirely* in 1.20 according to documentation
* I skipped Semantic* on purpose
This means: extensions IN TRUNK now require AT LEAST MediaWiki 1.16 or above.
2011-03-24 17:04:02 +00:00
Brian Wolff
f1705b55d5
(follow-up 79778; continuation r84660) Change truncate to count the ellipsis in length. Update extensions that seem to be
...
expecting the other behaviour. Didn't update extensions that seem to be expecting the behaviour i changed it to.
2011-03-24 03:43:27 +00:00
Yaron Koren
f132c3880c
Fix for loading a module in MW 1.17 - follow-up to r84165 and r83789
2011-03-17 16:06:58 +00:00
Yaron Koren
23795e4f82
Added backwards compatibility for MW < 1.17
2011-03-17 13:29:01 +00:00
Yaron Koren
d0004464b7
Added escaping so that a search string containing a space can be used on page names
2011-03-15 20:30:32 +00:00
Happy-melon
3ebdc5cc73
Spin out all the CSS used on special pages into their own mediawiki.special module. This comprises about a third of /skins/common/shared.css, so it's definitely worthwhile not loading it for the 99.9% of pageviews which aren't special pages.
2011-03-12 22:42:58 +00:00
Yaron Koren
f9ced025f4
Made some improvements to SQL, including use of addQuotes() - follow-up to r82212
2011-03-11 18:39:52 +00:00
Yaron Koren
74ed1dc630
Changed code to use new linkToTitle() method, for backward compatibility for Linker::makeKnownLinkObj() method
2011-02-22 19:04:28 +00:00
Yaron Koren
1b8f9a4007
Follow-up to r82212 - simplified and improved namespace check within SQL
2011-02-16 19:04:56 +00:00
Raimond Spekking
90195e65bf
Partly revert r82212: Remove spurios character
2011-02-16 13:22:10 +00:00
Yaron Koren
c070fe3ff0
Added handling for regular expressions
2011-02-16 03:11:20 +00:00
Sam Reed
9adb0a4ac7
Part of bug 27041, removing all calls to escapeLike in extensions
2011-01-30 22:34:23 +00:00
Raimond Spekking
b3a7d3ca75
Follow-up r78410: Call wfLoadExtensionMessages() conditionally only to avoid spamming of log
2010-12-16 08:49:06 +00:00
Yaron Koren
156f37cff8
Re-added wfLoadExtensionMessages(), for backward compatibility, removed by siebrand in r78123
2010-12-14 23:28:05 +00:00
Siebrand Mazeland
a9e05a8a24
Follow-up r78122: Remove wfLoadExtensionMessages from selected extensions (those run on translatewiki.net).
...
* special handling for Maps and Validator: check MediaWiki version and if 1.15 of lower, call wfLoadExtensionMessages.
2010-12-09 11:57:55 +00:00
Sam Reed
23b2b6be35
Reverting r76192 due to 1.15 back compat...
2010-12-02 17:31:05 +00:00
Sam Reed
4c4cdf1520
Update all remaining Xml::hidden to Html::hidden in extensions
2010-11-06 15:11:26 +00:00
Yaron Koren
6bc83f0a2a
An attempt to re-add backwards compatibility for MW < 1.16
2010-10-04 16:20:30 +00:00
Niklas Laxström
5e7b2c889b
Some cleanup and FIXMEs for raw html messages
2010-08-07 23:36:37 +00:00
Niklas Laxström
99d3d8c90c
Change escapeLike to buildLike and restructure
...
This makes the minimum version 1.16 instead of 1.11
2010-07-30 17:45:36 +00:00
Aryeh Gregor
90ab0608e0
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/ /\ /g;s/—/―/g;s/•/•/g;s/á/á/g;s/´/´/g;s/à/à/g;s/α/α/g;s/ä/ä/g;s/ç/ç/g;s/©/©/g;s/↓/↓/g;s/°/°/g;s/é/é/g;s/ê/ê/g;s/ë/ë/g;s/è/è/g;s/€/€/g;s/↔//g;s/…/…/g;s/í/í/g;s/ì/ì/g;s/←/←/g;s/“/“/g;s/·/·/g;s/−/−/g;s/–/–/g;s/ó/ó/g;s/ô/ô/g;s/œ/œ/g;s/ò/ò/g;s/õ/õ/g;s/ö/ö/g;s/£/£/g;s/′/′/g;s/″/″/g;s/»/»/g;s/→/→/g;s/”/”/g;s/Σ/Σ/g;s/×/×/g;s/ú/ú/g;s/↑/↑/g;s/ü/ü/g;s/¥/¥/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   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
Chad Horohoe
8af4ead8f1
Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on principle...we branch extensions for this very reason. But people want trunk extensions compatible for several versions back, meh.
2010-05-27 15:56:53 +00:00
Chad Horohoe
9ce6f6560d
Large commit. Removed 800+ references to no-op wfLoadExtensionMessages()
2010-05-26 22:25:32 +00:00
Raimond Spekking
d25551df5b
PLURAL needs wfMsgExt. Break long lines.
2010-03-19 12:36:01 +00:00
Yaron Koren
5c542ddfe4
Switched check to use wfEmptyMsg()
2010-03-18 13:24:26 +00:00
Yaron Koren
fdd41fd607
Removed middle "confirm" step if replacement text already exists in the wiki or is blank; made replacement look-and-feel closer to that of Special:Search in MW 1.16
2010-03-18 03:39:45 +00:00
Jeroen De Dauw
e6d87002d2
Stylized with Stylize.php to conform with MW's spacing conventions
2010-03-14 18:10:47 +00:00
Yaron Koren
40348e8383
Added fixes and better user reporting for category handling
2009-09-08 00:04:25 +00:00
Siebrand Mazeland
f5119d91e7
Follow-up on r55030 and r55031:
...
* move colons to messages instead of hard coded in the special page
* tweak messages
2009-08-14 18:50:41 +00:00
Yaron Koren
1d5acb0d7f
Added inputs for filtering by category and prefix
2009-08-14 17:28:25 +00:00
Yaron Koren
bf1fb51930
Fix for 'move pages' always getting set to true if there's an intermediate confirmation page; removed seemingly no-longer-necessary (?) escaping of slashes and single quotes in search string
2009-07-20 18:49:29 +00:00
Yaron Koren
2ebfcd4392
Fixed overcounting by one on number of pages
2009-07-16 19:54:10 +00:00
Yaron Koren
eb8b6dddd1
Fix for search strings for page titles containing spaces
2009-06-26 02:54:43 +00:00