Commit graph

17 commits

Author SHA1 Message Date
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