Commit graph

26 commits

Author SHA1 Message Date
Yaron Koren 27657b7327 Version 1.7-alpha
Change-Id: Ib4be57d9ad71e7b438c06378521ac51987a5d6cd
2021-12-02 21:16:32 +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
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
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
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
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 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
Mark A. Hershberger eb73831c19
Move to MW\Extension namespace
Change-Id: I8f96ef2fd787a516d71a4391d812ede3cbbb30d4
2021-04-09 13:12:48 -04:00
James D. Forrester 580d8c1529 Follow-up d6492afd: Drop pre-1.32 back-compatibility code
Change-Id: I9ea4ad3f6cc1343560b5d7e753d34adcde95429e
2020-12-22 09:07:36 -08:00
Edward Chernenko b7cf9f4b09 Unhardcode the limit "find no more than 250 results" in doSearchQuery()
Here we add $wgReplaceTextResultsLimit variable (default: 250) to allow
administrator to change this limit.

Change-Id: Iee9d958db8ddd245a98ec6a3d5b5cf8ef1d80370
2020-01-10 02:20:08 +00:00
James D. Forrester d6492afd79 Drop back-compatibility for OutputPage::addWikiText(), now removed
This increases the minimum supported version of MediaWiki to 1.32+ (and
makes it work at all on MediaWiki 1.34+).

Change-Id: Ibc22b6666d997d9edd95a54e36132c10c9e550aa
2019-08-16 15:48:20 +02:00
Fomafix a316c0f08f Avoid using core module 'mediawiki.special.search'
The core module 'mediawiki.special.search' contains more functions
which are not needed here and which causes an error message in the
JavaScript console. (T211384)

This change copies the used part of module 'mediawiki.special.search'
to the local module 'ext.ReplaceText'.

The CSS file for the style module 'ext.ReplaceTextStyles' is renamed
from ext.ReplaceText.css to ext.ReplaceTextStyles.css to make
ext.ReplaceText.css free for the CSS part of module 'ext.ReplaceText'.

Bug: T211384
Change-Id: I41225ccdf8a95a7c501fb6eea99abbd08353f4ea
2018-12-22 20:32:33 +01:00
Cindy Cicalese 288bd4f5e2 Remove inline JavaScript
Bug:T191546
Change-Id: I14306c05b50a4a9319ed31f8e714a8cab629ca73
2018-04-30 17:41:30 +00:00
Yaron Koren fe7c4cf38e Version 1.4.1
Change-Id: I1010f6ebfc524d41bf2a16d17b9fb2220ae58bf8
2018-04-16 20:31:08 +00:00
Cindy Cicalese 6258d3300a Replaced Linker::link() with LinkRenderer
Bug:T149346
Change-Id: Ibf50c2dc3a80a4395f20d78bfd324ead353b93db
2018-04-16 02:44:47 +00:00
Cindy Cicalese 1b237ddcee Fix items from code review
- ReplaceTextHooks:
  - Add $wgReplaceTextUser to UserGetReservedNames hook
- ReplaceTextJob:
  - Use RequestContext::importScopedSession
- replaceAll script
  - Fix summary message to use plain()
  - Fix summary message to correctly handle file-based replacements
  - Remove extra newline injected in file-based replacements

Bug: T191546
Change-Id: Ib0d7f5922761aa2fd01f989e4a0ffb7f281c2ae3
2018-04-12 12:37:49 +00:00
Cindy Cicalese 3c36f7452a Update CI files, dir structure, remove inline JS.
Bug:T191546
Bug:T191919
Change-Id: Ia7ed03a98972262d164fd131bcb84994ad279c7f
2018-04-11 17:21:08 +00:00
Yaron Koren cf7ece5637 Version 1.4
Change-Id: Ife12b49096f10be0069cc35061d52bea23bf8dce
2018-04-03 17:31:23 +00:00
Kunal Mehta 81be9fc8da Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: I5d3332e64d690eaac19dee27b56f9ebb866499a9
2018-03-02 15:35:23 -08:00
nikhil 70d3cc145d Add Replace Text reminder message at end of page move
Bug: T187410
Change-Id: I1c3f90400e1a6f41f95fed90d9d706891d2e3eaa
2018-02-20 21:34:48 +05:30
Yaron Koren 90694e1fda Version 1.3
Change-Id: Idd21258a58413b829197a634233911892377f127
2018-02-08 17:45:36 +00:00
yaron af5d23feda Version 1.2
Change-Id: Iee50b9638ce876e2136528a2ec50eea3f04cd905
2016-06-06 23:09:52 +04:00
yaron 22b0f57274 Added $wgReplaceTextUser global variable
Change-Id: I9c09b085ffa51c570323e96f208c0b18bdc6e37d
2016-05-31 23:22:31 +04:00
Kghbln 58fc0ba9bc Provide tiny tweaks
* Add COPYIING
* Add license name to be shown on "Special:Version"
* Consistently use __DIR__

Change-Id: I2b69267426a29d1d993d5ded56ec65e8240f0169
2016-03-10 14:27:51 +01:00
yaron 45e7d3a7cc Added support for new wfLoadExtension() in MW 1.25
Change-Id: Ia90e96b68e4bfe4ac28cf2ae04ab2069240a7770
2015-08-13 00:55:33 +04:00