Aaron Schulz
e4ccd5284d
Define doesWrites() for SpecialPage classes
...
Bug: T123591
Change-Id: I9275317363ca17c8c5d6c0f887212ec66e805142
2016-01-19 12:23:22 -08:00
yaron
72174c2fe0
Added escaping of messages
...
Change-Id: I67987dc8f04aa12d53896afcebe209bb39ac39ff
2015-07-24 17:03:37 +04:00
umherirrender
d62390d37f
Replace deprecated $wgSpecialPageGroups
...
$wgSpecialPageGroups is deprecated since 1.21
override SpecialPage::getGroupName instead
Change-Id: I1556ad879498a9a91077b67442d29e60529433ac
2015-06-23 20:57:50 +02:00
paladox
c14f58f095
Fix undifined in CategoryCondition and prefixCondition
...
* Replace $this->categoryCondition with ReplaceTextSearch::categoryCondition.
* Replace $this->prefixCondition with ReplaceTextSearch::prefixCondition.
Note: This has been tested and works.
Bug: T97689
Change-Id: I5f144b902f84d82feac1a923bc435383f1bd607f
2015-05-12 08:52:42 +01:00
Mark A. Hershberger
b781114f36
Changes I had to make to get ReplaceText to work
...
I'm not sure why it wouldn't work, but these changes were necessary to
get this working without giving blank pages on a client's wiki.
(Also, bump version number)
Change-Id: Ie8f8e4db2eb7f45e54e7f32fb4d27868db167f76
2015-04-22 10:00:56 -04:00
Mark A. Hershberger
133982dc59
Create CLI utility for ReplaceText jobs
...
This creates a new class (ReplaceTextSearch) to move the logic from
the special page so that it is available for CLI access. Also creates
replace.php which can be used for search-replace tasks that need to be
automated.
Change-Id: I8ccec61f570f33043d8a8d00c52b40acd9d6894a
2015-04-20 14:02:28 -04:00
Niklas Laxström
86cc0b247c
Avoid using deprecated method
...
Change-Id: Id62f5299c723b2a70f80bd2c6a9251317aa61865
2014-09-22 21:09:54 +02:00
yaron
eb819cd4b0
Removed now-unnecessary hiddenField() method, plus fix for the recent patch
...
Change-Id: Ic17327d3cfb5591264ff9a116640649292bcb471
2014-08-18 19:49:43 +04:00
Mark A. Hershberger
8febd9fe90
Fix “Incorrect error: You must select at least one namespace.”
...
All selections are not put in hidden fields when pageListForm is
called.
Bug: 38170
Change-Id: Ic60f3f3ab68448f1925dba2513ac10a193a4ffef
2014-08-18 09:57:00 -04:00
yaron
1b721575bd
Fix to get replacements in > 1000 or so pages to work
...
Only the first 1000 or so pages will get replaced, but it's much better
than nothing...
Patch from Simon Bachenberg.
Change-Id: I12a7c3893c953befbc0a1b2306240d1d06c892f3
2014-05-28 18:35:10 +04:00
Siebrand Mazeland
b471bfdc39
Call Linker::link statically (1.18)
...
Change-Id: I9cc16bda8f3db46ccfecbcab094adc9ff5af94f4
2014-01-10 19:23:18 +01:00
tonythomas01
0d26fbea5e
Resized the Text area fields in ReplaceText
...
The fields were oversized, so reduced it to 100 columns by 5 rows
to look neat.
Follow up of Bug: 32894
Change-Id: Iecbd7b74d134e1d03dc7507a28b90710f3a4ec4a
2013-12-26 19:27:17 +05:30
tonythomas01
b52d395dd8
Resized Text area in ReplaceText extension
...
Given these fields 100% width and, say, 25 or more rows
for easy editing of text. This is important due to the
risk of overlooking mistakes if all the text is not visible.
patch courtsey: Pranav Ravichandran
Bug: 32894
Change-Id: I08f36d5c581ea4b0429f88899830ea0868407435
2013-12-21 19:22:24 +05:30
yaron
73f6835c0d
Removed parsing of search and replacement strings within edit summary
...
Change-Id: Ib54d0d7a2bc894df7632e64a9907fc7736c0c43b
2013-06-28 06:25:29 +04:00
yaron
b531773378
Fix for "Check All/None" buttons in Special:ReplaceText for MW >= 1.20
...
Change-Id: Ie4688acba8c0b800a47718afa8ed4a17ef77ce08
2013-04-04 17:06:25 +04:00
raymond
c2d3acfed2
Parse wiki markup like in the other warning message
...
Change-Id: I7f16f80291a1dfc9997aefdcd7a12ebec40b923d
2013-01-16 09:27:29 +01:00
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