Commit graph

1261 commits

Author SHA1 Message Date
jenkins-bot cb08a9a768 Merge "Check for invalid new titles" 2022-09-08 13:32:34 +00:00
jenkins-bot bf60096c5f Merge "replaceAll.php: Allow empty values as target" 2022-09-08 13:28:20 +00:00
Fomafix 002d85d01b Replace $wgLang by $this->getLanguage()
Change-Id: Iae42df2d27a58765b408f68a610fd9e9c686e68e
2022-09-08 12:53:35 +00:00
Fomafix bca8b58017 replaceAll.php: Allow empty values as target
This change allows to execute the following command with an empty
replacement string:

	php maintenance/replaceAll.php 'FooBar' ''

Bug: T293120
Change-Id: I5d8f223f6edae771ca3cd7c68aae741f3fa64350
2022-09-08 12:11:58 +00:00
Fomafix e95564bcdc Check for invalid new titles
This change avoids a null pointer exception.

The unmovable old title gets added to the unmoveable_titles.

Bug: T280148
Change-Id: I6d879d18f2ba29d55d0da3e37c0f5b8aa5d30ec2
2022-09-08 11:49:24 +00:00
Fomafix 73c753c290 SpecialReplaceText: Inject services
Change-Id: Id60e241fb79234c86eab595a9978508e96c3282d
2022-09-08 10:36:02 +00:00
Fomafix 59ebcfcb35 Use UserOptionsLookup::getOption instead of deprecated User::getOption
Bug: T296083
Change-Id: I09a1c94d42b14cd29be0f6962d0b95f5d91304bf
2022-09-08 10:32:42 +00:00
jenkins-bot 40b79328da Merge "Use UserFactory::newFromId() and ::newFromName() instead of User::newFromId() and ::newFromName()" 2022-09-08 10:29:50 +00:00
Fomafix d9151fd045 Use \u{00A0} instead of  
Directly use the UTF-8 encoding of the 'NO-BREAK SPACE' (U+00A0) instead
of the HTML entity  .

Also use \u{21B5} instead of ↵.

Bug: T154300
Change-Id: Iaa904dcb2b12afeb4547be854b35eb468b322c25
2022-09-08 08:01:58 +00:00
Translation updater bot 8f16b7b34e Localisation updates from https://translatewiki.net.
Change-Id: Ia35e4413d18c181c39199f22724363d2400f9ac0
2022-08-22 08:23:45 +02:00
Yaron Koren 9329d7ea56 Add long-missing category, prefix flags to replaceAll.php
Change-Id: I81b83c408094767f337581cf79c3c005e9486560
2022-08-11 23:25:03 +00:00
Translation updater bot 7058c506d3 Localisation updates from https://translatewiki.net.
Change-Id: Icccfbb84b89f153d866ce15b13cbc91a3d3a3e11
2022-08-10 08:24:04 +02:00
Reedy 8d9399b53b Update mediawiki/mediawiki-phan-config to 0.11.1
Bug: T295285
Change-Id: I2f59b1d63573d19a6915034b34c0ca4b4ecf53d9
2022-08-02 02:02:03 +01:00
Translation updater bot db75bbc452 Localisation updates from https://translatewiki.net.
Change-Id: Ib4f986dfce1300d6527a69fa5bce4e5618da084a
2022-07-26 08:25:44 +02:00
Translation updater bot 1eb896bb8e Localisation updates from https://translatewiki.net.
Change-Id: I0d100d437bd699a3024dca0b3b9b5b44cb7c59f1
2022-07-11 09:50:28 +02:00
Translation updater bot 4ffe6a0868 Localisation updates from https://translatewiki.net.
Change-Id: Icc1c8dbb81785969e77ef255002c2e09143c9dbb
2022-07-04 08:22:50 +02:00
Translation updater bot b19a39b4c4 Localisation updates from https://translatewiki.net.
Change-Id: Id0ba68c6517772e01c73c01e94ddb0e7521b341e
2022-06-27 08:18:34 +02:00
Umherirrender 551b610abf Use WikiPageFactory to create WikiPage object
Bug: T259948
Change-Id: I7bacc0d3554e5591f826095fad8314a20c31107e
2022-06-26 19:36:05 +02:00
Translation updater bot 570ee448fe Localisation updates from https://translatewiki.net.
Change-Id: I19fb08edc7d2af9aea10ca57b353936a1970b4d4
2022-06-10 08:50:19 +02:00
Translation updater bot 2e0255111d Localisation updates from https://translatewiki.net.
Change-Id: I622ec1df53958629fb33cc61d812e865fc17a435
2022-04-13 08:32:46 +02:00
Translation updater bot 83d8053960 Localisation updates from https://translatewiki.net.
Change-Id: I6cd2dbcc7d7d55b9f21077830691e39e44b29f47
2022-04-05 08:26:04 +02:00
Translation updater bot 23e90941ae Localisation updates from https://translatewiki.net.
Change-Id: I598d185c0120e140855b2a1700e5c73a70e88f10
2022-04-04 09:35:06 +02:00
Translation updater bot 897204f4df Localisation updates from https://translatewiki.net.
Change-Id: I2a3da6de0c4c9738af6905dbbe54bce7447b9adf
2022-04-01 08:27:28 +02:00
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