Commit graph

1137 commits

Author SHA1 Message Date
Yaron Koren d70cd160b9 Version 1.7
Change-Id: I7ca1fbee6b71e67c48c00355592fea0d6afe966b
2022-03-22 13:24:05 +00:00
Translation updater bot f2bd2e6113 Localisation updates from https://translatewiki.net.
Change-Id: I2813743fd64c6ad1711b20449c1c2791c788e4ff
2022-03-16 08:08:07 +01:00
Translation updater bot 1931307eda Localisation updates from https://translatewiki.net.
Change-Id: I92b2cf8207067ad6b7f899707367ff619c2bacf6
2022-03-15 08:25:41 +01:00
Translation updater bot 8f2780804d Localisation updates from https://translatewiki.net.
Change-Id: I54d37a4d55fd8e9a34af7e30b6869a7147bbd1a2
2022-03-14 08:14:37 +01:00
Translation updater bot 5ff31cbc7d Localisation updates from https://translatewiki.net.
Change-Id: Ifb622074610f4ad4a5b0f1377fb06f0d9f749265
2022-03-10 08:19:38 +01:00
Translation updater bot 9a1be6b717 Localisation updates from https://translatewiki.net.
Change-Id: I6bbeffa84de19bf358269c79d58783bea1470df5
2022-03-09 08:10:00 +01:00
Translation updater bot c4756008b5 Localisation updates from https://translatewiki.net.
Change-Id: Iaf99a9e8ab0b574fadcfef1c90840351b0a61575
2022-03-04 08:30:10 +01:00
Translation updater bot d72b4c2726 Localisation updates from https://translatewiki.net.
Change-Id: Ic7027b78360c909d77ec3f9e6339d28fca580163
2022-02-28 14:29:22 +01:00
Umherirrender 3e8f5e7142 Use new namespace for MediaWiki\Revision\SlotRecord
MediaWiki\Storage is alias since 1.35

Change-Id: I81f4f238282a11fba47fe0d49566c68ac47dffc5
2022-02-26 22:16:25 +01:00
sahajsk e2b9df0edd Display correct error message when no page is found and category is empty
Change-Id: I0557c2c8e622cbdc4f563ea6f1b314a946271847
2022-02-25 19:18:46 +05:30
Translation updater bot 7bd1949cab Localisation updates from https://translatewiki.net.
Change-Id: I25eb4682eec2b3481cede53dd1cf61ffe0086755
2022-02-25 09:45:24 +01:00
sahajsk 69db621a7d Mark edits as patrolled by default if user has permission
Change-Id: Idceb01e51f1caec4b1f2d5def8340c4bdb7ef913
2022-02-22 00:50:15 +00:00
Translation updater bot 03b6e6f9fa Localisation updates from https://translatewiki.net.
Change-Id: Ib84b2977a0815adf39563f57628de4e23e1400ca
2022-02-18 08:41:03 +01:00
Yaron Koren 9a2218cbb4 Change newline to line break character in search context as well
Change-Id: I4d70761ec3ab1fadb445a3a44eed60a7eb875195
2022-02-16 15:32:56 +00:00
sahajsk 11a2818cef Display newline character as arrow symbol in target string
Change-Id: Iccddd19d708d89a43ea97320b95af9f513ddd73a
2022-02-16 13:55:18 +00:00
Translation updater bot 64988ef905 Localisation updates from https://translatewiki.net.
Change-Id: I369d8e104018a7f227851c266a5a1e5708f4d1cc
2022-02-14 08:15:07 +01:00
Umherirrender 4ac856579e build: Remove unneeded phan suppression
Bug: T290624
Change-Id: I14e321cbc91c407c982b3c410cb2dae84afecb01
2022-02-12 01:01:38 +01:00
sahajsk a092b2a7d7 Display correct error message when no page is found and category is empty
Change-Id: I2a3bf92ceb0fc9555b66325b569a0b2077d56789
2022-02-10 06:33:29 +05:30
Translation updater bot effd4397a1 Localisation updates from https://translatewiki.net.
Change-Id: I71012f813a654c7df473a60ed1a0535521fbe257
2022-02-08 08:28:56 +01:00
Translation updater bot 1f21e780e7 Localisation updates from https://translatewiki.net.
Change-Id: Ia7ec2cede42231b1fa7d910ca12cec1e82fe74c5
2022-02-07 08:22:49 +01:00
sahajsk 47c26d6746 Display error message when no page is found and category does not exist
Change-Id: I1cb6ce5d96285222ee45a6cf9016c38eaa03fd24
2022-02-06 05:05:35 +00:00
sahajsk b2bc62537f Fix "Notice : Undefined offset: 1" after replacement
Change-Id: If98ce127db68aab129595b0418f912f8be8ee963
2022-01-26 02:07:32 +00:00
Umherirrender 642e702375 Replace deprecated JobQueueGroup::singleton()
Change-Id: I0cc14778bc59764edd6a293ae218e1a33b57d2bb
2022-01-24 20:25:58 +01:00
Translation updater bot 0ee9cc35a8 Localisation updates from https://translatewiki.net.
Change-Id: I078082529a3721d319e44cf7e08f3e966365bb3a
2022-01-12 08:25:27 +01:00
Yaron Koren 27657b7327 Version 1.7-alpha
Change-Id: Ib4be57d9ad71e7b438c06378521ac51987a5d6cd
2021-12-02 21:16:32 +00:00
Yaron Koren a49f7e1855 Make form URLs relative (local) instead of absolute
Change-Id: I19fc531959480567fdf19e17022b4ecf42e2e685
2021-12-02 20:46:33 +00:00
Marijn van Wezel ed9c752309
Add support for slots other than 'main'
This commit adds support for replacing text in multiple content slots.
The names of all the slots that contain the target string are shown on
the special page, and the user can select or deselect which slots they
want to edit. Edits to different slots for the same page are bundled
into a multi-content revision.

If a replace is performed through the 'replaceAll.php' maintenance
script, all slots are taken into account.

Change-Id: Ic4f36fa76e1eaeac8200c60f196c53c2ed78fa45
2021-11-24 15:40:11 +01:00
Translation updater bot 9c5199b4f9 Localisation updates from https://translatewiki.net.
Change-Id: I98be0f7791ba6a986428cb42e537a50c3ed2db3b
2021-11-16 08:16:23 +01:00
Translation updater bot 539e8bee2d Localisation updates from https://translatewiki.net.
Change-Id: I976b686a93fc18aa4c6213225a2c90761c5a2a7b
2021-11-15 08:12:34 +01:00
jenkins-bot 23c1cb81b9 Merge "Replace the text ReplaceTest with ReplaceText" 2021-11-12 19:30:39 +00:00
Translation updater bot bd51e46bb4 Localisation updates from https://translatewiki.net.
Change-Id: If51096324c4e22fa3a83fbe161c502fc093248f9
2021-11-01 09:34:25 +01:00
Amir E. Aharoni 46a44b63b0 Replace the text ReplaceTest with ReplaceText
Change-Id: Ib7fad3e7ea4add5ce29a994d5ab5875b4e755d1e
2021-10-31 09:50:20 +02:00
Yaron Koren 5bb791aa0b Version 1.6
The patch for "version 1.5" didn't actually update extension.json to 1.5, by mistake, but it's still considered 1.5, so this is 1.6.

Change-Id: I722278c95a54a3d7f9c7e96bf8edd9d787d28cb3
2021-10-27 16:10:58 +00:00
Translation updater bot 70312c0e02 Localisation updates from https://translatewiki.net.
Change-Id: Iebc5a768867c44230d815a526bbb9c5e5f5b0a91
2021-10-27 08:22:34 +02:00
libraryupgrader 74c352ce14 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: Iabc5239ca61040b3b0ca3052b033e551b1dfc0c6
2021-10-24 12:13:11 +00:00
Reedy bfc5d28789 Fix phan stubs
PHP Fatal error:  Non-abstract method ALItem::newFromPage() must contain body in ./extensions/ReplaceText/.phan/stubs/ALItem.php on line 9

Change-Id: I2f425be645f24dd6d02a9e98d71d487db132ac8b
2021-10-21 21:43:16 +01:00
Translation updater bot 5a8dcc8535 Localisation updates from https://translatewiki.net.
Change-Id: Ie32150990f6e03d739efd0c967b7be6ab01a751e
2021-10-21 08:22:31 +02:00
Cindy Cicalese ffce14c547 Replace deprecated WikiPage::doEditContent
Bug: T293737
Change-Id: Icfac41ca54bf2cd59847b095c3f309b7d3eacb21
2021-10-19 13:26:39 -04:00
Translation updater bot e471d9eeb2 Localisation updates from https://translatewiki.net.
Change-Id: Ibf0f1570f2a53a4b29d3df0f88830c7dd04db301
2021-10-18 15:21:10 +02:00
Umherirrender f8f8dfca4a Use MovePageFactory to instance MovePage
Constructor is deprecated
MovePageFactory since 1.35

Change-Id: Iefec53267f6ed4a179f537adb67d744b3b47ea2b
2021-10-14 20:39:58 +02:00
jenkins-bot 4a0a3e9c5d Merge "Avoid using MWNamespace" 2021-10-08 23:23:09 +00:00
Yaron Koren 01ee50c8e8 Remove copy of replaceAll.php
Change-Id: I22c9867b0d5d47d18f952d28076b21abe50dfcfd
2021-10-07 21:22:05 +00:00
libraryupgrader 4f90bb0735 build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/5197 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I96dca296476847a677ddd411db8553b78d5409d0
2021-10-05 21:53:19 +00:00
Alexander Vorwerk a4997109ea Avoid using MWNamespace
The MWNamespace class has been deprecated in favor of the NamespaceInfo
service. All methods in the MWNamespace should be replaced with the
equivalent methods of the NamespaceInfo service.

Bug: T291389
Change-Id: I9e3a0aff012d1524205cebe61c10e016f989cecb
2021-10-01 15:51:09 +02:00
RhinosF1 4c1453927d SECURITY: Check permissions before job execution
CVE-2021-41801

Bug: T279090
Change-Id: Ibc299edf626ca9aa1cd9d83b888820f5aca9af7c
2021-09-30 16:41:41 +01:00
Translation updater bot e32b0be64d Localisation updates from https://translatewiki.net.
Change-Id: I7076fc20b7fe2e955d58be038cd7a61fb7a30e1e
2021-09-20 08:19:32 +02:00
libraryupgrader a765c687c9 build: Updating composer dependencies
* mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0
* php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1

Change-Id: I33ceb173eb7775833a00dd4ae1761df5e4a4c4d0
2021-09-09 18:43:17 +00:00
Fomafix 78e75ed030 Change CSS identifiers
Apply CSS coding conventions from:
https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS#Naming

* Use class instead of id.
* Use class names with the prefix "ext-replacetext-".
* Remove stylelint rule:
    "selector-max-id": null
* Add stylelint rule:
    "selector-class-pattern": "^client-nojs$|^ext-replacetext-"

Change-Id: Ia7e3d41030aba7287716a219acbe6115e8fcbe46
2021-09-08 11:53:43 +00:00
Fomafix bd20365fbe Use LESS instead of CSS
This allows to simplify the syntax.

Change-Id: I086524d94644a698ddbe9b15d816684736c1dc1c
2021-09-08 11:16:31 +00:00
Fomafix 2a6d1866fd Duplicate styles from 'mediawiki.special.search.styles'
The styles for #mw-searchoptions are currently missing on
Special:ReplaceText.

Also duplicate the style for .searchmatch to avoid the dependency on
core module 'mediawiki.special.search.styles'.

Change-Id: I846bae65fc87ba300b78932a9704ba6b639643c0
2021-09-07 20:36:32 -07:00