Commit graph

2068 commits

Author SHA1 Message Date
Translation updater bot e3f3e7ecb2 Localisation updates from https://translatewiki.net.
Change-Id: I79605932d4a46382599632abd7c7951519ad492b
2018-05-14 22:44:08 +02:00
Translation updater bot dc4cb04a96 Localisation updates from https://translatewiki.net.
Change-Id: Ic6d35a737b8c8c82d29d124474c98fdc50955951
2018-05-09 22:40:46 +02:00
jenkins-bot 472a4f8f92 Merge "Fix display of categories with numeric names" 2018-05-09 16:11:28 +00:00
TTO 191d1f5ec8 Fix display of categories with numeric names
Bug: T44938
Change-Id: Ib84b58451475c54bc0a59d8c6b0a9747fc59345d
2018-05-09 14:05:57 +00:00
Translation updater bot 9de8649801 Localisation updates from https://translatewiki.net.
Change-Id: I5155d02d3dfb36e91839a916d3cc1709e1ee9762
2018-05-08 22:19:41 +02:00
Translation updater bot b31adeca83 Localisation updates from https://translatewiki.net.
Change-Id: Ic6a4a53cfcec113aa9455480aa03aa7077733f8b
2018-05-06 22:21:58 +02:00
Translation updater bot 507d3864b4 Localisation updates from https://translatewiki.net.
Change-Id: I38149bfc026496bdb7deab78c46e226d399104e0
2018-05-05 22:14:20 +02:00
Translation updater bot 4335120f27 Localisation updates from https://translatewiki.net.
Change-Id: Iaa69f96c32eda35b942c6e0c09fbe19da7b1a72a
2018-05-03 22:20:54 +02:00
Translation updater bot b77d135531 Localisation updates from https://translatewiki.net.
Change-Id: I97d1ded32f003e8d643568dad0d23fdc95076d8b
2018-04-30 22:21:48 +02:00
Translation updater bot 5e7a1e2093 Localisation updates from https://translatewiki.net.
Change-Id: I3dfd0ce225f9bf844cb2597e4f33cc27e7e252a3
2018-04-28 22:32:37 +02:00
Translation updater bot 848c66fbf3 Localisation updates from https://translatewiki.net.
Change-Id: Ia602efb42bf22005fb3d36ef3e07788c606dcb72
2018-04-26 22:16:23 +02:00
Translation updater bot ffcf77cfcf Localisation updates from https://translatewiki.net.
Change-Id: I7fc6d3ebfcc4d21c8b8f54a024a9ff5eeb9f8595
2018-04-23 22:30:16 +02:00
Translation updater bot 5516aeeaad Localisation updates from https://translatewiki.net.
Change-Id: I54615532d1cb5f58852c9cc04284500c43636e80
2018-04-22 22:21:31 +02:00
Fomafix 6684f62bba Simplify by using Xml::element
Xml::element already makes the HTML encoding.

Change-Id: Idee5e6871c5a7b5e6763ebe85275598b9b217224
2018-04-18 09:36:40 +02:00
Timo Tijhof c24e5edb2f Fix eslint no-use-before-define warning
* Re-order the functions to be defined before their first use.

* The one exception is loadChildren() which is also toggled
  indirectly from a click handle, and is thus intentionally
  recursive in nature:
  load content > attach handler > click > expand content
  > load content.

  Fix this by declaring 'loadChildren' specifically ahead of time
  and assigning it last. This declares it to be safe for use in
  any function, knowing it is only triggered indirectly from
  event handlers and not during setup.

Change-Id: If2d49e2ff5d25e330165a2d3f0860f611fc3bdb5
2018-04-17 01:31:23 +01:00
Fomafix dd5583f026 Fix sidebar tree support
Bug: T171778
Change-Id: I2a2498d2129e8bed03340cfb00f65281f7aa3d35
2018-04-17 01:01:33 +01:00
Kunal Mehta 50c10d1fcb Use standard GPL file header
Change-Id: Ic49d45d0a0cb640d40486735c95f13cc6e29063f
2018-04-16 22:38:06 +00:00
Kunal Mehta d85ca412b7 Don't conditionally register any hooks
Register all hooks unconditionally in extension.json, and then in the
hook
itself, check whether they should be doing anything.

Change-Id: I5f0019fc444371a24a11a25ca2d980c0a9ab5a61
2018-04-16 18:05:06 +00:00
libraryupgrader 5a7ebcfead build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag

Change-Id: I13c4825186d8ba101feb2a2d28ee8dc9bc7306dd
2018-04-13 22:19:35 +00:00
Kunal Mehta 72db0e9107 Avoid unnecessary is_bool
Strict equality already ensures that the global is a boolean.

Change-Id: I09011f4d6ac5fabe1154ef19d8ba34f289f764f7
2018-04-10 20:48:37 -07:00
Kunal Mehta 1c60788059 Set visibility on all functions
Change-Id: I1ced553ac5c18eafa83e32516ddc463feece96ef
2018-04-10 20:48:37 -07:00
Kunal Mehta d90bfe3c12 isset() already checks whether the value is null
Change-Id: I35c1fe14ef5fc8b073d098b27dffd23b3abc2556
2018-04-10 20:48:37 -07:00
Kunal Mehta c28084d3c5 Don't specify default parameters to SpecialPage::__construct()
Change-Id: I8fae3fee0edbc95b1bb7d012af6e4ce067bb4f62
2018-04-10 20:48:37 -07:00
Kunal Mehta 987392938b Use ::class
Change-Id: Id43297b7930cd8f3e5a330c5e99fea9b85014c65
2018-04-10 20:48:37 -07:00
jenkins-bot 474957f3b9 Merge "Add phan configuration" 2018-04-11 00:20:46 +00:00
Translation updater bot 0d4c627c78 Localisation updates from https://translatewiki.net.
Change-Id: I02c5a752dbc72f4cd1e9619397d219237e0c2fa5
2018-04-10 22:15:07 +02:00
Kunal Mehta 4e1158b7d2 Add phan configuration
Change-Id: I8d438ad061500bc56f5e3e527f18296485988d6f
2018-04-08 18:50:31 -07:00
Translation updater bot 26916500f1 Localisation updates from https://translatewiki.net.
Change-Id: I82911caf8ae4c7fa68ce2cc0eb228e56722cf43f
2018-04-07 22:34:06 +02:00
Translation updater bot 6dbaaa4aac Localisation updates from https://translatewiki.net.
Change-Id: I9d6c7c1475edc9358f97cc906360b50f20440a96
2018-03-31 09:22:13 +02:00
libraryupgrader 2149a818a8 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag

The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: I0962aef8e0b2e40392af5c0d366c6543b2ae78e9
2018-03-29 00:23:36 +00:00
Translation updater bot fda8838e62 Localisation updates from https://translatewiki.net.
Change-Id: I3097f115cf97d57a0dc2be82a08b26799aa02bf4
2018-03-24 22:29:13 +01:00
Translation updater bot 6f718e5a8e Localisation updates from https://translatewiki.net.
Change-Id: I01cbb432a71b9fb5c50688453c08b08652c7d324
2018-03-19 22:18:51 +01:00
Translation updater bot b28ec6c807 Localisation updates from https://translatewiki.net.
Change-Id: Ia49f0e0e44fb1c1d9835e282554084025078b6d6
2018-03-11 22:30:36 +01:00
libraryupgrader 5f9a92c005 build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Iaad660a4a649696fc70ac74e82a69a69277fbaed
2018-03-09 05:45:42 +00:00
Translation updater bot f0759b2bbe Localisation updates from https://translatewiki.net.
Change-Id: I52792b5fcf30b47061f33af29b470af300f5b9e2
2018-03-08 22:45:30 +01:00
Translation updater bot 8e6ab43428 Localisation updates from https://translatewiki.net.
Change-Id: Ia83d800885be265dc2cdca7b38a7de744efb600c
2018-03-05 22:24:22 +01:00
Translation updater bot 4c4b0be561 Localisation updates from https://translatewiki.net.
Change-Id: I1dbbb65ab9e3ab4a8278f64d42ed329027e569e6
2018-02-27 22:25:27 +01:00
jenkins-bot 5c5da4ca9e Merge "Avoid href="#" for <a>" 2018-02-27 02:08:42 +00:00
Translation updater bot ccaacc0483 Localisation updates from https://translatewiki.net.
Change-Id: Ie1933e042de00343e0027f3f7fd1a944ab962fa3
2018-02-26 22:20:13 +01:00
jenkins-bot a299b2cd21 Merge "Avoid parsing and re-encoding ct-options in categoryTree.js" 2018-02-26 19:17:26 +00:00
libraryupgrader ab2ed31ee9 build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I54ca9e45e9bc027b0e74156fa7f6ac246b2cb55a
2018-02-25 06:56:17 +00:00
Translation updater bot 39fc11a5ed Localisation updates from https://translatewiki.net.
Change-Id: I523e6e09cd0eaa140accc407265dbc277113f148
2018-02-22 23:21:43 +01:00
Translation updater bot a7b5d9a479 Localisation updates from https://translatewiki.net.
Change-Id: I0e24d2490816a1343cf72107736b0c4fb704c433
2018-02-20 22:28:44 +01:00
Timo Tijhof c35519b5af Avoid parsing and re-encoding ct-options in categoryTree.js
Follows-up 680cdd688a, which accessed the data attribute
using data() instead of attr(), making it thus be parsed as JSON,
only to be re-encoded with JSON.stringify().

I considered to instead change the 'wgCategoryTreePageCategoryOptions'
mw.config var to not be double-encoded as JSON, but concluded
it actually makes sense the way it is. Right now the options are,
from the client-side perspective, considered to be a blackbox string
set on either a link attribute, or in an mw.config key, and are
to be passed as-is (in whatever format) to the 'options' parameter
of the API module.

At least until we need these values on the client (which we don't right now)
it makes more sense not to have any js for decoding and re-coding.

Change-Id: I1e1e02a13d7a5293c9ae2e0ec61575ddb7a1f286
2018-02-20 04:27:15 +00:00
Translation updater bot 43ac7014e0 Localisation updates from https://translatewiki.net.
Change-Id: I2a9f7fc5318c6d70e8c1b692853a7ebd40882dda
2018-02-18 22:40:12 +01:00
Translation updater bot 5e0fa431d0 Localisation updates from https://translatewiki.net.
Change-Id: I400fdce9cc9f9a18e3d846cdbe4221656ebc35dd
2018-02-17 22:27:20 +01:00
libraryupgrader fbabf98e4c build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I62590392ec877a2fcfbaf4aa4e4338ba2035e298
2018-02-17 19:13:27 +00:00
Timo Tijhof 38babc1011 Set visibility of CategoryTree::encodeOptions() as protected
Not referenced anywhere in Wikimedia Git, except for the one
method that uses it, in the same class here.

Also:
* Set explicit 'public' visibility of getOptionsAsJsStructure().
* Avoid use of !is_null().
* Avoid assignment in ternary.

Change-Id: I71d2a247e001b7f7f4f52546e8167a79d873076e
2018-02-16 19:30:51 -08:00
Translation updater bot 600caa9505 Localisation updates from https://translatewiki.net.
Change-Id: Id6cadf010704208753dcb656e2f32112cfb6f652
2018-02-16 22:28:55 +01:00
libraryupgrader c598422ad8 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: Ia9838601a37c93ac36811cb72f0f81ed1c332b5e
2018-02-15 09:00:51 +00:00