Commit graph

1090 commits

Author SHA1 Message Date
libraryupgrader bd97827f43 build: Updating npm dependencies
* grunt-stylelint: 0.9.0 → 0.13.0
* stylelint-config-wikimedia: 0.4.2 → 0.8.0

Additional changes:
* Remove direct "stylelint" dependency in favor of "grunt-stylelint".
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: Ic0f66acde9ca9ebf2606b6f5afea25c562ceb828
2020-01-10 16:05:39 +00: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
libraryupgrader efb62c28a2 build: Updating npm dependencies
* eslint-config-wikimedia: 0.5.0 → 0.15.0
* grunt-eslint: 20.1.0 → 22.0.0

Additional changes:
* Added .eslintcache to .gitignore.
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: If786c6664f05a9b8d9db26e120ced522fd248422
2020-01-08 04:58:45 +00:00
jenkins-bot e1ad6cc2a3 Merge "build: Updating mediawiki/mediawiki-phan-config to 0.9.0" 2019-12-29 13:08:45 +00:00
libraryupgrader 3fe88580cb build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Depends-On: I76cbaf355462a41aec40d239577123de6b04223a
Change-Id: I7780d46c2828947cf753ea2390d3b1dd645b6758
2019-12-28 19:05:28 +00:00
Umherirrender 750738cc23 Avoid deprecated param on Maintenance::error
Use Maintenance::fatalError instead

Change-Id: I76cbaf355462a41aec40d239577123de6b04223a
2019-12-28 19:37:40 +01:00
Zoranzoki21 b247e2e167 Add aliases for Serbian Latin script
Change-Id: I95782d9e3dd460a52425559e29efe64500913daf
2019-12-26 00:33:31 +01:00
libraryupgrader 6332b4497d build: Updating dependencies
composer:
* mediawiki/minus-x: 0.3.1 → 0.3.2
* mediawiki/mediawiki-codesniffer: 26.0.0 → 28.0.0
  The following sniffs are failing and were disabled:
  * PSR12.Files.ImportStatement.LeadingSlash

  The following sniffs now pass and were enabled:
  * MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgContLang

npm:
* grunt-banana-checker: 0.6.0 → 0.8.1

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Ibdd18a68f35644e2a6abea849e47d6a1b284fbd4
2019-12-18 04:29:56 +00:00
Translation updater bot 1d2363daa1 Localisation updates from https://translatewiki.net.
Change-Id: I1f8468567738270b4507fbebadede7dae3eb2084
2019-12-06 09:33:10 +01:00
Translation updater bot 8f6ccf9135 Localisation updates from https://translatewiki.net.
Change-Id: Ia42e1cb6880f58ddaa40c6c072a5ed8f572f2527
2019-11-26 09:17:57 +01:00
Translation updater bot acbf09c76e Localisation updates from https://translatewiki.net.
Change-Id: I3915921a1d2b29e0568f0310b8054c57dbbdf462
2019-11-07 09:44:59 +01:00
Umherirrender dab839001a build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: I752c89cd13ecc55cbbcbe9c3b94c862c096daf87
2019-11-06 20:02:54 +01:00
Translation updater bot 8d9ef58422 Localisation updates from https://translatewiki.net.
Change-Id: I315eeb95960408e80f85d7a899d759451e39ad02
2019-10-21 10:00:40 +02:00
Translation updater bot 27f6c417fa Localisation updates from https://translatewiki.net.
Change-Id: I349f67cddc8eb9cc09e529a8edbfb73dc3d41e8f
2019-10-16 20:41:34 +02:00
Translation updater bot 9b5d87807c Localisation updates from https://translatewiki.net.
Change-Id: Ib310fea9898f00e7f45c6d9faa592ec96605ea3c
2019-10-16 10:40:50 +02:00
Translation updater bot e856390737 Localisation updates from https://translatewiki.net.
Change-Id: Ic7ee70d07a99b4b8f08cd31c6ae47263cdedfd9d
2019-10-10 09:33:38 +02:00
Translation updater bot bd08cbd528 Localisation updates from https://translatewiki.net.
Change-Id: I8fd5ba09acc7e20a50cd1f14b072d0fef871760d
2019-09-24 09:58:43 +02:00
Clara Andrew-Wani 7f823dfccb Remove reference to rev_text_id
Bug: T233357
Change-Id: I58559f14c9f732767439da397c22074249f97762
2019-09-20 09:16:18 -04:00
Translation updater bot af2d738aff Localisation updates from https://translatewiki.net.
Change-Id: I54168cc6d1ecb75f7f5cc16600f693f7d13d5659
2019-09-13 10:20:48 +02:00
Translation updater bot ddd5f1f080 Localisation updates from https://translatewiki.net.
Change-Id: Id2a00101c29a960c1993ee1311786122a1eac3e8
2019-08-30 10:05:03 +02:00
jenkins-bot 32efcacd98 Merge "Replace usage of Title class move methods with MovePage class methods" 2019-08-21 07:17:50 +00:00
jenkins-bot db9c6961bb Merge "Use Maintenance::addDescription" 2019-08-20 20:13:49 +00:00
jenkins-bot 20ee6e81b4 Merge "Drop back-compatibility for OutputPage::addWikiText(), now removed" 2019-08-20 17:19:05 +00:00
Umherirrender f98647f62c Use Maintenance::addDescription
It is better to use a setter function than setting a property

Change-Id: Idc5985e0fa4e773687bcd829e21259cee3045939
2019-08-19 20:33:06 +02: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
Abijeet 4c54757006 Replace usage of Title class move methods with MovePage class methods
Using MovePage class methods to check for permissions and to move the
page.

Also added code to handle errors encountered during move operation.

Bug: T225741
Change-Id: I4c4f5bcb3001d4eead64334c5097be5372c173b9
2019-08-16 14:05:14 +05:30
Niklas Laxström cc5a9683d9 Reduce code duplication
Change-Id: Ib668d13f1d7c68b89b17e07913e311af89f01831
2019-08-16 14:03:54 +05:30
Timo Tijhof 9346339d30 ReplaceTextSearch: Hint against IDatabase instead of Database
wfGetDB() returns IDatabase, not Database. Actual implementation
can be a DBConnRef proxy or something else entirely from an
extension that reimplements the interface.

Change-Id: I67c0f3517fc9f1d17d2e4bb11c1669485f1999ba
2019-08-04 17:48:50 +00:00
libraryupgrader 4e11554699 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 24.0.0 → 26.0.0

npm:
* lodash: 4.17.11 → 4.17.15
  * https://npmjs.com/advisories/1065
  * CVE-2019-10744

Additional changes:
* Enable eslint caching.
* Enable eslint's reportUnusedDisableDirectives.

Change-Id: I9fd2dfd545bc927c3e2049c34ad0a8b218a9011a
2019-08-03 04:41:58 +00:00
Translation updater bot cba308f454 Localisation updates from https://translatewiki.net.
Change-Id: I3366bdae3431ec6592db89069118b3e99d5d18a7
2019-07-23 08:55:22 +02:00
James D. Forrester 048be08fa5 build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
The method ReplaceTextUtils::link (which is already complicated because
it tries to support ancient MediaWiki) can perform different levels of
escaping depending on whether the HtmlArmor class exists. This is confusing
for taint-check and for humans, and can inevitably lead to errors. Plus
it's bad practice to have a method returning something with a variable
level of taintedness, especially if that depends on something ephemeral
like if a class exists or not.

Thus, the HtmlArmor part is removed, the text is escaped for Linker::link,
and the method now requires non-escaped HTML to be passed in.

Change-Id: I6e2783827580e3d470d316f1d3879679eb67aeda
2019-07-11 14:36:30 +00:00
Translation updater bot dddb12e32a Localisation updates from https://translatewiki.net.
Change-Id: I0c3e01f3c580fca250410c4ede25db3502cbf2eb
2019-07-07 22:41:23 +02:00
Translation updater bot 14607c0b37 Localisation updates from https://translatewiki.net.
Change-Id: I500c6a80f25c0ab3b363656a8ba56fbe7bb43ae3
2019-07-03 22:45:56 +02:00
Translation updater bot 4464d57e8d Localisation updates from https://translatewiki.net.
Change-Id: I207e4b1513eae9ba076b35354f059a5117b174cf
2019-06-13 22:40:32 +02:00
Translation updater bot 8dd0719fc2 Localisation updates from https://translatewiki.net.
Change-Id: I003cfc9cdf83e3d7ecb82222a27482a97ac9f05a
2019-06-10 22:55:42 +02:00
libraryupgrader edeb9df910 build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: I4b08bef5257f973f5cfa90c5e5bc8080976a19e6
2019-06-10 10:33:36 +00:00
libraryupgrader cd30ac5482 build: Updating npm dependencies for security issues
* Updated grunt to 1.0.4, addressing:
  * https://npmjs.com/advisories/788
  * https://npmjs.com/advisories/813

Committed package-lock.json (T179229) too.

Change-Id: I9615c95b449a6ca661ee33c1d15b5c6f60df5cf9
2019-06-08 19:58:34 +00:00
Translation updater bot bb2ced5185 Localisation updates from https://translatewiki.net.
Change-Id: I046ed553af76869ba542c5d21b6b0c5704cebcbf
2019-05-30 22:54:07 +02:00
James D. Forrester 0b484df6aa build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: Ifbad8b383357ac649154403fb2c3f103159f792a
2019-05-19 18:08:19 -07:00
Umherirrender b459e5621a Replace usage of deprecated SearchEngine::searchableNamespace()
Deprecated since MediaWiki 1.27 and removed by 0a4c2670a1.
Keep the old way for pre 1.27, because mw.org says 1.23

Change-Id: I0d191734f08752d02def657eef004ce5d16ea83d
2019-05-19 14:19:39 +00:00
Translation updater bot 6088c0c32a Localisation updates from https://translatewiki.net.
Change-Id: I142b40b8d60ef3a58b6333c8f5db14b129a52c1d
2019-05-15 09:14:21 +02:00
Translation updater bot d293d54412 Localisation updates from https://translatewiki.net.
Change-Id: I7596627d2bc4c91bc0952492d4a37843f16d4f7a
2019-04-14 22:30:31 +02:00
Translation updater bot b96bedeffc Localisation updates from https://translatewiki.net.
Change-Id: I0ecd78c39b77942dfbbe41cf712b4bb0ca78a6a3
2019-04-10 09:23:29 +02:00
didicodes 6752b1f99d Changed mediawiki.org from http to https
Bug: T189687
Change-Id: I29e637787816eb927cefd781ea8efec2040ead61
2019-04-08 18:48:28 +01:00
Translation updater bot 0c80e43c14 Localisation updates from https://translatewiki.net.
Change-Id: I68d53eaf456e1cf2ad57bbed15b7dcd98676a6a5
2019-03-31 22:17:10 +02:00
libraryupgrader 73843895f6 build: Updating mediawiki/mediawiki-phan-config to 0.5.0
Change-Id: I6132f22888b2e63087d9b47fbde2bf5872b87b5b
2019-03-10 22:24:02 -07:00
laasyasree bf89ab371d Upgrade ReplaceText extension to use newer phan
Bug: T216938
Change-Id: I30e9bd108e1196efd822525423ec94d9a1f6a318
2019-03-10 14:19:59 -07:00
libraryupgrader bf538064a8 build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgContLang

Change-Id: I56fb225b2f158ed69fed80fe9a1a2066f407064f
2019-02-07 03:44:53 +00:00
Translation updater bot 79655e5aa3 Localisation updates from https://translatewiki.net.
Change-Id: I002b33d491d0ee3011e6e21b06657fdc95fc98fd
2019-01-31 22:26:20 +01:00
Translation updater bot ffc1be4c45 Localisation updates from https://translatewiki.net.
Change-Id: Ifa56d3b6ed6dde5fb4455ce0dcf7f2d72a1425ee
2019-01-08 22:30:02 +01:00