Commit graph

2007 commits

Author SHA1 Message Date
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
James D. Forrester 120b01696b build: Bump devDependencies to latest
eslint-config-wikimedia      0.4.0  →   0.5.0
 grunt                        1.0.1  →   1.0.2
 grunt-banana-checker         0.5.0  →   0.6.0
 grunt-eslint                19.0.0  →  20.1.0
 grunt-jsonlint               1.0.8  →   1.1.0
 grunt-stylelint              0.6.0  →   0.9.0
 stylelint                    7.8.0  →   8.2.0
 stylelint-config-wikimedia   0.4.1  →   0.4.2

Change-Id: Id081b31764ae923486031255cc5f24bfd6601782
2018-02-14 09:21:40 -08:00
Tulsi Bhagat 9e98b1c4a5 Removed deprecated position statements from resource loader module
Bug: T184257
Change-Id: Ib8c741b7eef50deb79ae2bc0d71c913077f95df7
2018-02-12 12:18:17 +00:00
Translation updater bot ca3e357dd3 Localisation updates from https://translatewiki.net.
Change-Id: I6c46aa8050232d607fba5968db6eb4092d789fc1
2018-02-11 10:42:00 +01:00
Kunal Mehta 8e51ea4e3a Move classes into includes/
Change-Id: I308523aa764594798d72974fb79e19aef6c3f342
2018-02-08 22:23:07 -08:00
Translation updater bot 9bb35aba53 Localisation updates from https://translatewiki.net.
Change-Id: I7f37bd2051dcb50d242e2b78cd473e6061a71506
2018-02-07 22:17:16 +01:00
Translation updater bot 067edb8e85 Localisation updates from https://translatewiki.net.
Change-Id: I6bc39d6aaf9c5be8e9014b387e229a39861264cc
2018-02-06 22:35:20 +01:00
Translation updater bot c412f63032 Localisation updates from https://translatewiki.net.
Change-Id: I8a8e723dd18dfbe234e42bc57fcb1d78f3dc2d36
2018-02-04 22:43:24 +01:00
Translation updater bot 80549b1c37 Localisation updates from https://translatewiki.net.
Change-Id: Ib65029e67b906939fc1b1bb1082bbb0385d26b9b
2018-01-31 22:19:53 +01:00
Translation updater bot bfd88aa921 Localisation updates from https://translatewiki.net.
Change-Id: Id05db2b7104d8322b7b9baf6def4a315180699f7
2018-01-26 22:36:26 +01:00
Translation updater bot 62310fc4d5 Localisation updates from https://translatewiki.net.
Change-Id: I55d397d4fd4ed1d2cf11479d17a52717d7a26084
2018-01-24 22:20:40 +01:00
Translation updater bot e29f966e66 Localisation updates from https://translatewiki.net.
Change-Id: I0d85f72a60d0c575fe30a9fd5cee73a598f2c0a2
2018-01-21 22:17:03 +01:00