jenkins-bot
0480d83b71
Merge "Quote delimiter in target text when using regular expressions"
2024-01-08 15:55:20 +00:00
Mark A. Hershberger
e9a086c4ee
Quote delimiter in target text when using regular expressions
...
bug: T354498
Change-Id: I0bafbaa4cfb55e2d65712a747a2622b159417dea
2024-01-07 21:24:09 -05:00
Umherirrender
48144bb804
Use namespaced classes
...
This requires 1.42 for some new names
Change-Id: I7f2e4271ddb42fa449252a66d3c973ad7669575e
2024-01-05 21:23:04 +01:00
jenkins-bot
1df51466b8
Merge "Replace deprecated User::getEditToken and ::matchEditToken"
2023-10-31 15:21:38 +00:00
Fomafix
192435154e
Use user interface instead of content language for RTL flipping
...
The CSS get automatically flipped on RTL user interface language.
Change-Id: I472c0fbbdaf20bd5cb3ad55d1194c99fc72ffdba
2023-10-21 13:42:18 +00:00
jenkins-bot
e029f1b13a
Merge "Use single quotes instead of double quotes"
2023-10-20 15:37:42 +00:00
Fomafix
83e425ab5a
Use single quotes instead of double quotes
...
https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#String_literals
Single quotes are preferred in all cases where they are equivalent to double quotes.
Change-Id: I808927475e3063a1a37fff9ab851d292acd847bf
2023-10-20 12:26:37 +00:00
Fomafix
2ce2c8d131
Replace deprecated User::getEditToken and ::matchEditToken
...
Change-Id: If24076c615f5cd41707e21d1497e451b6133e504
2023-10-20 11:17:59 +00:00
Fomafix
0132d19b90
Replace deprecated global function wfGetDB()
...
Bug: T330641
Change-Id: I3f00c6f3d1c55757275f1542e60a29401786a03e
2023-10-20 08:22:46 +00:00
Fomafix
74c973a2a9
Inject PermissionManager in SpecialReplaceText
...
Change-Id: Ifdacf22494297698c263c9236d7807eee49b674a
2023-10-20 08:21:58 +00:00
Fomafix
f3087681b5
Use namespaced classes
...
Change-Id: Ie0dbe43c56b7ef6b4514aa7cac1bc2f8b2eace2e
2023-10-20 08:21:44 +00:00
TechieNK
bc85753b87
Fix documentation problem
...
Change-Id: I5015da83b84b89cd965d97f418a31b0e6116abd3
2023-09-21 20:58:30 +05:30
TechieNK
c0c2d6e2e1
Add Page number limit option
...
Bug: T45472
Change-Id: I66812d8c0a12c0bd0362c2068f88cb6e26005d2c
2023-09-20 23:52:46 +05:30
Umherirrender
d2610b8073
Use namespaced MediaWiki\Title\TitleArrayFromResult
...
Change-Id: I62a85a3fb6c5ce7ff6e9039b00cf929d7c4047df
2023-08-20 00:06:05 +02:00
Umherirrender
f73bf3f613
Use namespaced Title
...
Bug: T321681
Change-Id: I7303cc026bce334b5010e98560d775528850b6b4
2023-08-19 20:18:31 +02:00
Umherirrender
2185037fc9
Create HookRunner class and the hook handler interfaces
...
Rename existing HookRunner to HookHelper and create a new class
HookRunner using the name described in core's Hooks.md
Bug: T271025
Change-Id: I85e828226d3d259f93ab2a4eb29dd1fe535abc30
2023-08-15 22:40:53 +02:00
Umherirrender
203564d43d
Use HookHandlers for AdminLinks hooks
...
Bug: T271025
Change-Id: Ie4fac4a457eecd64bd5f66628f86cbee9ab9c84f
2023-08-15 17:18:02 +02:00
Yaron Koren
e1da9e2d63
Replace "Announce changes" option with (inverse) "Mark as bot"
...
Bug: T200334
Change-Id: I5b588e0dda95812543b270fbc5aece14a5583c83
2023-08-08 16:13:07 +00:00
Yaron Koren
bea0be9c08
New function, SpecialReplaceText::getReplaceTextUser()
...
Also did some related code re-formatting.
Change-Id: I19baac3bf0443139b5dc59986b72ae7b5ce1f8b0
2023-08-03 19:40:37 +00:00
Yaron Koren
4c81687814
Remove unused variable from SpecialReplaceText.php
...
Change-Id: I4f65b23d42709cdb935ea5d0d351e758ec6c4b8f
2023-08-03 18:45:11 +00:00
Fomafix
772a4f5642
Inject service ReadOnlyMode
...
Also reuse local variable $services for
MediaWikiServices::getInstance() in Job.php.
Change-Id: I0364c64aaf52e229f3e2a2c73c7d4716ec566fae
2023-06-16 22:33:08 +00:00
Abijeet
986b51e5a2
Add ReplaceTextFilterPageTitlesForRename hook to avoid pages to rename
...
Allows other extensions to specify pages that should not be renamed.
Bug: T313148
Change-Id: I47b4549b90fe30be7a80e74db60d16be6776e7f6
2023-06-15 13:13:30 +00:00
Abijeet
f7a6474c72
Add ReplaceTextFilterPageTitlesForEdit hook to avoid pages for edit
...
Allows other extensions to specify pages titles that should not be
edited.
Bug: T313148
Change-Id: Ia3d8e99fc6a478c1df5064fae44ad8558c968725
2023-06-15 02:25:18 +00:00
Yaron Koren
f572741719
Disable Special:ReplaceText if $wgReadOnly is set
...
Bug: T58299
Change-Id: Idb08cbccc2262830c3b76bafa06cbfbb8d56eb5d
2023-06-05 16:22:02 +00:00
Fomafix
6e1ca1e5a6
Show message replacetext_reminder in user interface language
...
The message replacetext_reminder is shown on the user interface and
should use the user interface language instead of the content language
like the other messages on this page.
Change-Id: I55f084b3b1a7c83aa45f1489be54fc2f8955135e
2023-05-12 05:58:50 +00:00
Fomafix
6042e2f1d7
Remove fixed @todo FIXME
...
The raw HTML messages were already replaced in 72174c2f
.
Change-Id: I34aeec36fb879c9d0e6de0458efa9851dd699eb1
2023-04-19 19:38:21 +00:00
Fomafix
2ab2c04b1b
Inject service JobQueueGroup
...
Change-Id: Id6438abe91b4f60a0fe8cc413cd946b6bb2cdf93
2023-04-07 09:59:17 +00:00
Yaron Koren
8c890f5ce9
Move setting of targetStr to outside of loop
...
Change-Id: Ibdcd83ce5d4368bf06f2d57261985a71f7b666ab
2023-03-29 18:24:55 +00:00
Yaron Koren
5190b2cd39
Calculate string length separately for each replaced string
...
If regexes are used, the length of the target string is not always (or even ever) the length of the user-specified "target".
Change-Id: Id693a5f29e4d5bd0a7b420286a525971d56b4b60
2023-03-28 12:50:30 +00:00
jenkins-bot
a919ddf8ef
Merge "Make Special:ReplaceText work for contents based on TextContent"
2023-02-23 13:00:47 +00:00
jenkins-bot
9b0f7ff6fe
Merge "Don't add a link to Special:ReplaceText if the user has no permission"
2023-01-27 21:34:02 +00:00
Fomafix
eb35dd8b85
Remove default value null on second parameter of LinkRenderer::makeLink
...
Change-Id: Icd566d7dc4f8ed81078f3e9f12f7603afc61012a
2023-01-26 21:43:55 +00:00
jenkins-bot
2dac8f31df
Merge "Remove loading of style module 'mediawiki.special'"
2023-01-26 20:29:53 +00:00
Fomafix
d42d31a89e
Don't add a link to Special:ReplaceText if the user has no permission
...
Change-Id: I72a9d6ef96a5843ade002dfe1e408e35c1c2d6c4
2023-01-19 22:59:43 +00:00
Fomafix
82cc22a9f2
Inject Config and replace global variables
...
Change-Id: I824ed32728ab4ce8e532734890ac51a4a4527d8a
2023-01-18 19:39:23 +00:00
Fomafix
ad9de84501
Use HookHandlers and inject services
...
For LinkRenderer use SpecialPage::getLinkRenderer.
Bug: T271025
Change-Id: Ibde96ffce089f77e85826f0ec5b446b81fac8240
2023-01-18 19:39:12 +00:00
Func
a2b09220fe
Make Special:ReplaceText work for contents based on TextContent
...
The check for TextContent is added in ed9c752
, which is good, but
not all codes updated to work for contents based on TextContent.
Works well with css, js, sanitized-css (TemplateStyles), and Scribunto
content models acording to my test.
Change-Id: I9ea9d1474de7dd4207924bd038a8c62ec55726bb
2022-12-25 17:03:13 +08:00
jenkins-bot
a6cc8c6ef4
Merge "Replace $wgLang by $this->getLanguage()"
2022-12-03 20:46:59 +00:00
James D. Forrester
e41c493a68
Drop backwards-compatibility; this is a tarball extension
...
Tarball extensions follow the branch versions development policy.
Change-Id: I4ad623f61b4113ec76d2abf9e013de483e56170c
2022-11-17 16:16:59 -05:00
jenkins-bot
4ec204fc3f
Merge "Use single quotes instead of double quotes in PHP"
2022-11-17 20:10:31 +00:00
Fomafix
e5896a0b54
Use short array destructuring instead of list()
...
Introduced in PHP 7.1. Because it's shorter and looks nice.
Change-Id: Id66d048bc6fc720216c7391c7eeb3d315f33948a
2022-10-23 08:39:26 +00:00
jenkins-bot
abeebced1c
Merge "Use str_replace instead of preg_replace where RegExp are not needed"
2022-10-22 02:39:37 +00:00
jenkins-bot
60a8705ec2
Merge "Use \u{00A0} instead of  "
2022-10-22 02:39:34 +00:00
Fomafix
4b86c0bf12
Optimize HTML
...
* Use no-break space (U+00A0) between checkbox and text like in
Xml::checkLabel.
* Add </li> to close list item and remove unneeded <br/> here.
Change-Id: I5eb46d497264606552a90b787a3953001a6251e7
2022-09-29 08:29:08 +00:00
Yaron Koren
e852e449f4
Add space between checkbox and label in page title replacements
...
Change-Id: I4fb8651cf8771f9459c3537bb8e3b174e828fb29
2022-09-28 19:32:51 +00:00
Yaron Koren
cb570d5609
Suppress Phan error for MW < 1.37
...
Change-Id: Ia774d264ac00127a3c45031835442838cec8bb70
2022-09-28 19:12:09 +00:00
Yaron Koren
eda043b383
Fix page title search in MySQL with alternate DB encodings
...
Change-Id: I4d6b15ff5e3830fc3d4f2c2aff876a7069b15821
2022-09-26 14:05:03 +00:00
Fomafix
c7d80d1938
Use https://www.gnu.org/ instead of http://www.gnu.org/
...
Change-Id: I8aa4b4a8ba78fb9268021a3ddeb5e2a9c7b0cfeb
Depends-On: I19c1b42d9a7c76baacfad2632c4f5525532366a9
2022-09-12 19:13:23 +00:00
Fomafix
e081ffe320
Use str_replace instead of preg_replace where RegExp are not needed
...
Change-Id: I60a770034d8a55cf779d9eae48cf2449211caeb9
2022-09-08 22:14:22 +00:00
Fomafix
a06719c1d7
Remove loading of style module 'mediawiki.special'
...
The styles from the module 'mediawiki.special' are not used.
Change-Id: Ie843bdfdc1063acc7e36d2d376a1713e10ccd33b
2022-09-08 21:58:09 +00:00