Commit graph

2185 commits

Author SHA1 Message Date
jenkins-bot 1e4da6f26f Merge "Remove "return true" on hook handler functions" 2019-02-06 18:25:49 +00:00
jenkins-bot 5660483452 Merge "Add typehints to function parameters" 2019-02-06 18:16:19 +00:00
Fomafix c993bb8353 Fix findings by phpcs
* Add @inheritDoc to functions that are inheritance.
* Move comments to a single line.

Remove the phpcs rule exceptions:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

Change-Id: I742ee19f0a3d2d62e08b6f2e35cd9a6b3940cd22
2019-02-06 18:03:50 +00:00
Fomafix 9f12acd962 Remove "return true" on hook handler functions
Before MediaWiki 1.23, returning true was required. Since 1.23 this not
needed anymore.

Change-Id: Iae9bcf416d851af2a8703fd76dc13d0b1d2db8bc
2019-02-06 18:03:15 +00:00
Fomafix 99cef2da9b Remove deprecated module 'ext.categoryTree.css'
The module 'ext.categoryTree.css' was renamed to
'ext.categoryTree.styles' in 3cdb4e95f2.

The caches should now be expired.

Change-Id: I4e2e96c088c47e7e3dfa801c56847dc48d68ee4e
2019-02-06 18:44:52 +01:00
libraryupgrader 7e9c665de6 build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: Ifae44e00880bb3014804b25566a5f6e3fb4a9575
2019-02-06 11:08:57 +00:00
Translation updater bot dd4ae9d698 Localisation updates from https://translatewiki.net.
Change-Id: I0de13be4f177ad515fe3f4040930b4826bbc886d
2019-02-05 22:37:32 +01:00
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
Translation updater bot e6f038341b Localisation updates from https://translatewiki.net.
Change-Id: I898a051edf934db510a5c7cc2c50c5fbdada8fe1
2019-02-03 22:38:05 +01:00
Translation updater bot 501a92afee Localisation updates from https://translatewiki.net.
Change-Id: I0f17f812788daf48f478f540f6ff819460d03646
2019-01-30 22:13:43 +01:00
Translation updater bot 06f08c7537 Localisation updates from https://translatewiki.net.
Change-Id: I7f4beff1a160ca0142dfd9bf23cb05de64b1ae38
2019-01-28 22:26:39 +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