Commit graph

1270 commits

Author SHA1 Message Date
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
RazeSoldier 61ac0b0e7c Use UserFactory::newFromId() and ::newFromName() instead of User::newFromId() and ::newFromName()
User: :newFromId() and ::newFromName() has been deprecated in 1.36.

Bug: T294128
Change-Id: Id872c28c7d20dc3d27a74cfac608aeb911c87c3d
2021-10-22 22:57:26 +08: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
Fomafix db88090ca6 Generate toggle buttons in HTML instead of JavaScript
This change ensures that the toggle buttons are already present while
loading.

Change-Id: I9453de8e540a75436029a3383721d0b6d73786ae
2021-09-07 20:33:39 -07:00
libraryupgrader 9490b14d4f build: Updating stylelint-config-wikimedia to 0.11.1
Change-Id: I212563dc57a3db152c574ff6b7db995a79b4868b
2021-09-04 21:51:10 +00:00
libraryupgrader b16df67746 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I9bfef07fa9998881db49e08e7d3606b3be9c086c
2021-08-12 10:01:40 +00:00
Translation updater bot 00bb8b00e3 Localisation updates from https://translatewiki.net.
Change-Id: I069477d7ac6f426071b0bdd6444a0092eef31601
2021-08-09 08:25:02 +02:00
Translation updater bot 4472dd0fc7 Localisation updates from https://translatewiki.net.
Change-Id: I839e4a97d086ef4016fab2dc12270821788fe961
2021-08-05 08:22:34 +02:00
libraryupgrader 1f04965c46 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* glob-parent: 5.1.0 → 5.1.2
  * https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Change-Id: I94cbb3d72dfffef2cfd97d2814cc125c8f898d2c
2021-07-23 10:25:17 +00:00
Yaron Koren 7c5dfae496 Change some interface elements to use OOUI
Change-Id: Ic55f2b173948aad50ae24279b630315ecf8faf1c
2021-07-08 18:16:20 +00:00
jenkins-bot 72e50c6ed2 Merge "Remove LEFT-TO-RIGHT MARK (U+200E) from source code" 2021-07-08 06:44:02 +00:00
Fomafix 1d8693829b Remove backwards compatible code for MediaWiki < 1.28
Extension already requires 1.32+ in extension.json

Change-Id: I76005515ca2dbf367cfc13ab5db8ee7c51bb11cb
2021-07-06 23:46:16 +00:00
jenkins-bot ec085db978 Merge "Simplify checkbox inverting" 2021-07-05 16:37:32 +00:00
Fomafix 97aa6a9efe Remove support for MediaWiki 1.30
The extension already requires MediaWiki >= 1.32 in extension.json.

Change-Id: I80f624057609e6e2bbe6ac44ece4d4085a12c3d4
2021-07-03 09:15:47 +00:00
Fomafix 978c8ead5b Simplify checkbox inverting
Change-Id: Ic44987189a024e1f07e38907ce7208f9ab3a4d10
2021-07-03 07:22:29 +00:00
Fomafix 8cec982e63 Remove LEFT-TO-RIGHT MARK (U+200E) from source code
Change-Id: Id681247bb1823f64de34ef8ae377d35b717a5ae7
2021-07-01 20:43:51 +00:00
Yaron Koren 438c0eb69c Version 1.5
Change-Id: I7e6ab905c6d02960c0820905f1acae8987f554bc
2021-07-01 14:44:27 +00:00
Yaron Koren 1895d589d6 Remove ReplaceText.php shim
Change-Id: I26d20a0c6a68d5c03ead0fc80f1157ab09f2c4eb
2021-06-30 19:54:35 +00:00
Umherirrender 22b1fc0725 Remove MSSQL support
Bug: T283021
Change-Id: I27a55958cb8bb25cf6dafbc4dcd4054113bb5fd8
2021-06-07 19:29:29 +00:00
Translation updater bot 0d65a6b322 Localisation updates from https://translatewiki.net.
Change-Id: Ib2af808275ffcdbe36e24b2c11e7b17b096b23de
2021-05-31 08:32:37 +02:00