Commit graph

1975 commits

Author SHA1 Message Date
Fomafix b3ac7f5404 Add typehints to function parameters
* Add "= null" when null is supported and used.
* Also fix Doxygen tags.

Change-Id: I209b23eee54b5e8e0f4091f3d4cd7c5e44dbaff0
2019-02-05 15:30:31 +01:00
Fomafix 27289b479d Change hooks to explicitly load the modules
This change adds the needed modules to the page in the same hook
that adds the category tree HTML.

This avoids loading the modules on skins without a sidebar, like
SkinApi, or on pages without categories.

A forced-loading of the modules from BeforePageDisplay hook is not
necessary anymore in those cases.

This change avoids getting the OutputPage object from the global $wgOut.

Bug: T212820
Change-Id: I2bd50c45aa201a06630af3d57c9bcfccf7b22b99
2019-01-22 15:31:47 -08:00
Fomafix e31ac9cc84 Use hook SkinBuildSidebar instead of SkinTemplateOutputPageBeforeExec
This change allows the skin to customize if there is a sidebar or not.
For example the SkinApi overloads buildSidebar and therefor the hook
SkinBuildSidebar is not triggered.

Change-Id: Ib39736901f25822d40265ccaa5fd0feea977cdc1
2019-01-22 23:15:07 +00:00
jenkins-bot e97676459c Merge "Attach event handler for categories" 2019-01-22 05:12:20 +00:00
jenkins-bot 860d742808 Merge "Remove hook SkinJoinCategoryLinks" 2019-01-22 05:12:19 +00:00
Fomafix eebad4e3ae Attach event handler for categories
This change is restoring the functionality on categories when
wgCategoryTreeHijackPageCategories is enabled. This functionality was
lost in 69fa92ee11.

Change-Id: I5b16bfd653bf193b15a3003628bfa2bd864b9881
2019-01-22 05:06:37 +00:00
Translation updater bot 1dd4b154c1 Localisation updates from https://translatewiki.net.
Change-Id: I5bfacf651d39ffe2b25b2f2ef7bd2668ef7459ff
2019-01-20 22:35:39 +01:00
Translation updater bot 205c53bf78 Localisation updates from https://translatewiki.net.
Change-Id: Ice94eee3b8980c2995c6050517a7467c3e7e79ca
2019-01-19 22:15:54 +01:00
Translation updater bot ab26301739 Localisation updates from https://translatewiki.net.
Change-Id: I263f2de3cb35ae0a34743365f7b509b259f08b8a
2019-01-13 22:12:44 +01:00
Volker E 14d7d42999 build: Update 'stylelint-config-wikimedia' to v0.5.0
Change-Id: Iad9db00445c184aefd235c7ecb770c5db4de8b46
2019-01-10 12:03:58 -08:00
Fomafix 095040a9e6 Remove hook SkinJoinCategoryLinks
The hook `SkinJoinCategoryLinks` is not used and not triggered.

Also remove the style for the class CategoryTreeCategoryBarItem because
it is only used in skinJoinCategoryLinks::skinJoinCategoryLinks.

Change-Id: I52e4f819ff195fc1fa8a148b0bb58d95a4bf22d7
2019-01-10 20:15:28 +01:00
Fomafix 9529dbf27b Remove support for Firefox 2 and Internet Explorer 7 and older
Change-Id: I5cb8543ab2a07db9386400382913764e182c81ae
2019-01-10 18:25:54 +00:00
Fomafix 3cdb4e95f2 Move styles that only used in JavaScript to JavaScript module
Also rename the style module from 'ext.categoryTree.css' to
'ext.categoryTree.styles'.
Keep the previous module name 'ext.categoryTree.css' for compability to
cached versions.
Also move the files of the module 'ext.categoryTree' into a
subdirectory ext.categoryTree.

Change-Id: Ie5ea28acfb43e33a94ec5824baf4f26d63d8e9e6
2019-01-10 13:38:58 +01:00
Translation updater bot d48e8cf86c Localisation updates from https://translatewiki.net.
Change-Id: Iaf2de9ece0dbb16583147ea06ee4345236563c85
2019-01-09 22:18:39 +01:00
Translation updater bot ac3cde032d Localisation updates from https://translatewiki.net.
Change-Id: Ia05533ceff815b9ccf6593b87f994ee4fffc167c
2019-01-03 22:52:03 +01:00
Translation updater bot b43cc7f44c Localisation updates from https://translatewiki.net.
Change-Id: Ia3ef0c471d79ed356d4801c3269375389bbb13bc
2019-01-01 22:20:15 +01:00
Translation updater bot 39160b1c9d Localisation updates from https://translatewiki.net.
Change-Id: I8408f96ec5ee9938a3ff9534bfc48c214a584628
2018-12-27 09:50:44 +01:00
Kunal Mehta 0f6ca05eaf build: Set "root": true, in .eslintrc.json
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.

Bug: T206485
Change-Id: I1cbbf2644fed413b77cd7203450151c3e315c815
2018-12-17 18:53:41 -08:00
Translation updater bot 70782ecc58 Localisation updates from https://translatewiki.net.
Change-Id: I58724ee6181ad42a95aaab2d8d0d03a73fa1a2b5
2018-12-15 22:23:46 +01:00
Translation updater bot fb9c7059e6 Localisation updates from https://translatewiki.net.
Change-Id: Ia229064c891c24d22d9c8bfd52fc7d470db8daea
2018-12-11 22:39:34 +01:00
Fomafix 0a1f707f2f Remove obsolete aliases from closures
Bug: T208951
Change-Id: I963db9601a597e398187644946d83dda43568069
2018-12-06 19:55:37 +01:00
Translation updater bot 82efd6e321 Localisation updates from https://translatewiki.net.
Change-Id: I7d846e42c1c9936de5b4a6334c99044b18bf1e5a
2018-12-04 22:14:27 +01:00
Translation updater bot 58c8388f16 Localisation updates from https://translatewiki.net.
Change-Id: Idf67478c165bc15e740cb1b11fd83c2bab099323
2018-11-23 22:17:28 +01:00
Translation updater bot 9bbb9397e3 Localisation updates from https://translatewiki.net.
Change-Id: I10469c57f831efbb4f4601755634d04487262756
2018-11-22 22:21:50 +01:00
Translation updater bot 3ab1c48583 Localisation updates from https://translatewiki.net.
Change-Id: I0a8cca1492f60582562ed29e99b491f0e1048566
2018-11-21 22:28:57 +01:00
Translation updater bot f48e206f30 Localisation updates from https://translatewiki.net.
Change-Id: Iad1036b75069bddc2ec5e9474952e35a0ecb7651
2018-11-16 22:29:21 +01:00
libraryupgrader b2de01d0fb build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: I8e893255b43e540bd952361c17c25cfa5491e32c
2018-11-14 08:30:11 +00:00
Translation updater bot 8da8f679e4 Localisation updates from https://translatewiki.net.
Change-Id: I6d6ffd09efe3a52e129ebd92befc9f87abe01470
2018-11-12 22:12:35 +01:00
Translation updater bot f1b3a5dc7b Localisation updates from https://translatewiki.net.
Change-Id: I3c3a5ade60c4af3ff5e7b189f48c71b08917d4a1
2018-11-07 22:21:57 +01:00
stibba e53b74d79b Update mediawiki http to https links in CategoryTree extension
This patch updates the old http links of mediawiki to https in
the CategoryTree extension (in the README specifically).

Bug: T189687
Change-Id: I0872762f9adff90884cb89e64918574b1266fa79
2018-10-29 14:44:57 +01:00
James D. Forrester 96b44610ac API: Drop back-compat. code for old versions of MW we don't support
Change-Id: I1eb8f75399a6cd10a685ede98673cc6122494980
2018-10-26 18:02:44 +00:00
Translation updater bot 499014dd9a Localisation updates from https://translatewiki.net.
Change-Id: I5aa7205f1bcc12fb4c71727bd0a15b225ee4b554
2018-10-18 22:34:06 +02:00
Translation updater bot 0fa58cd342 Localisation updates from https://translatewiki.net.
Change-Id: Id1ffb072066328e6dc037935a54c1b79cb0052d9
2018-10-15 22:15:52 +02:00
Translation updater bot fb0b2b5c7e Localisation updates from https://translatewiki.net.
Change-Id: Ifc53e93bfc51a11b25455465b2e301a1da325fe9
2018-10-14 22:25:07 +02:00
Translation updater bot 35bc75a6eb Localisation updates from https://translatewiki.net.
Change-Id: I4509b97f693a1bf9273ab73cec75fc4f35a59422
2018-10-13 10:19:12 +02:00
libraryupgrader 5dba7477b5 build: Updating npm dependencies for security issues
* Updated grunt to 1.0.3, addressing:
  * https://npmjs.com/advisories/577
  * CVE-2018-3721

Change-Id: Ie5ce43169ba0e071881438b3023c055661f98dc4
2018-10-11 02:30:46 +00:00
Translation updater bot bb2db5d5ac Localisation updates from https://translatewiki.net.
Change-Id: I576665127cd194e608fa4fc25e78324b08ecee19
2018-10-10 22:24:16 +02:00
Translation updater bot ec94cad6a1 Localisation updates from https://translatewiki.net.
Change-Id: I6f3e9c368aa5dee5ce448a858d2459dc0557e732
2018-10-05 22:59:04 +02:00
Translation updater bot 9f15ad7e3a Localisation updates from https://translatewiki.net.
Change-Id: Ifd03d60510af4e1b3cbc768bcbc98141833f7d31
2018-10-04 14:24:24 +02:00
Translation updater bot 7e45dbb940 Localisation updates from https://translatewiki.net.
Change-Id: Ibed45dfb9389e6bdd669d80e6e3dbc3ab86f8b99
2018-10-03 18:53:03 +02:00
Translation updater bot e0ed0c4001 Localisation updates from https://translatewiki.net.
Change-Id: I628c421fb3218864b60970b1a142bbb6eddc3197
2018-09-21 10:34:52 +02:00
Translation updater bot 6fdccf1047 Localisation updates from https://translatewiki.net.
Change-Id: Ied3f4b45124954ec640e8f42ba0170f14b2d9431
2018-09-19 10:00:32 +02:00
Translation updater bot 43b116a836 Localisation updates from https://translatewiki.net.
Change-Id: Ib3eca6d89757d10274fbdf72c621cf5cf7aa9a7b
2018-09-18 09:51:56 +02:00
Reedy b6b54322de Remove php entry point
Bug: T140007
Change-Id: Iec47ef517992e8ed62f91c1954eaea93f099b359
2018-09-12 23:38:36 +01:00
Translation updater bot c32a075eec Localisation updates from https://translatewiki.net.
Change-Id: Ib8642c55e91ef7000ae2273d8dcf425db73e96e2
2018-09-09 10:35:46 +02:00
libraryupgrader 5c18bfbbb5 build: Updating mediawiki/phan-taint-check-plugin to 1.5.0
Change-Id: Ib74ceb5071f74e8ded3db5de3e6e50aa8f1bb2bc
2018-09-07 07:28:06 +00:00
Translation updater bot 00b9fca28b Localisation updates from https://translatewiki.net.
Change-Id: I5e7949c378eb1a954869e6e8bd76cdcb2f5cef44
2018-09-07 09:02:19 +02:00
Translation updater bot 158d9ccbb6 Localisation updates from https://translatewiki.net.
Change-Id: I68f4cdb9fd4264f964c55cfb87e8463897972ec1
2018-09-06 09:00:37 +02:00
jenkins-bot eea31596dd Merge "Add api error 'invalidtitle' for invalid category param" 2018-09-05 01:24:41 +00:00
Translation updater bot 49041c3a12 Localisation updates from https://translatewiki.net.
Change-Id: I6cdfbb27f52b43c5d3a08ab163553c8e8781acbc
2018-09-04 22:19:21 +02:00