Commit graph

658 commits

Author SHA1 Message Date
Umherirrender 313fba8175 Use MediaWikiServices::getBadFileLookup
This required MediaWiki 1.34 (already set in extension.json)

Change-Id: I6a7e51fed5718c33de67a530ce032f8725e0bfcc
2020-03-14 21:14:32 +01:00
Umherirrender c6a8e7fefe Use MediaWikiServices::getRepoGroup
This required MediaWiki 1.34

Change-Id: I4c0887e2d9fc8882805292d7ea5dbc0a68ce34a8
2020-03-14 14:36:27 +01:00
Translation updater bot 0ede99be53 Localisation updates from https://translatewiki.net.
Change-Id: Ib7c2c9cc864b170cfe6f5683ae18bd2cb0702468
2020-03-12 08:42:52 +01:00
DannyS712 b37c0818f9 extension.json - don't use array syntax when hooks only have 1 handler
Change-Id: I0a5ccdd509da237de95772514acd0ac56566499f
2020-03-11 09:40:30 +00:00
libraryupgrader 65151430ef build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I778336a3a2baf6cbbf1ff14786ce123ae2c5254c
2020-03-08 07:27:31 +00:00
jenkins-bot e4cb912940 Merge "build: Updating composer dependencies" 2020-02-19 19:41:31 +00:00
libraryupgrader a2b3060bce build: Updating composer dependencies
* jakub-onderka/php-console-highlighter: 0.3.2 → 0.4.0
* mediawiki/minus-x: 0.3.2 → 1.0.0
* mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.2

Change-Id: I8141f11390205d00a11b819de03e796e08cc8f88
2020-02-19 19:21:15 +00:00
Translation updater bot b1c5f2df96 Localisation updates from https://translatewiki.net.
Change-Id: I86660cf08dac6cb610c01d69a57be38169b9e6ae
2020-02-19 08:24:43 +01:00
Translation updater bot 3b1485b2c3 Localisation updates from https://translatewiki.net.
Change-Id: Icef69aaf13ddfd113842786319fa667fd4da4b40
2020-02-17 08:46:39 +01:00
libraryupgrader 4fb2612a0c build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: Ibf8a07b82fd03c38f1a07eef445c751c8a7a273b
2020-01-14 05:57:36 +00:00
libraryupgrader bebe23cf97 build: Updating npm dependencies
* grunt-eslint: 21.0.0 → 22.0.0
* eslint-config-wikimedia: 0.12.0 → 0.15.0

Additional changes:
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I78ad86df1fff32fd401be82e76e99c0659c24c5a
2020-01-09 15:09:19 +00:00
libraryupgrader bbe82f0371 build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I9e04f1ed8c96fcd92d8232f39b169ae3d0dff029
2019-12-27 19:03:37 +00:00
libraryupgrader 9dda262ee3 build: Updating dependencies
composer:
* mediawiki/minus-x: 0.3.1 → 0.3.2

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

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I8597785a0f704e4b8267e866ade859f6b2406e71
2019-12-17 00:26:55 +00:00
Max Semenik f5427d519d Stop passing objects by reference
Bug: T193950
Change-Id: Iefb9848806d5e73fdebe0e31d16b362e101347a1
2019-11-14 23:42:52 -08:00
Umherirrender ec67a99636 build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: Ia78ec291259d77a75aeed4af3982ddbe0d1e34dc
2019-11-03 18:36:48 +01:00
Translation updater bot 7364545e3d Localisation updates from https://translatewiki.net.
Change-Id: I6cc7bab4cb2f78aa2343ec16add1467b2a1f73e5
2019-10-16 20:39:43 +02:00
Ed Sanders 28bb0b502f Rewrite tokenizeCoords to use a while loop, and use it for 'poly'
This provides consistent token validation for
'poly', 'rect' & 'circle'.

Change-Id: I2f558b57dbd93b3bf8ed1762d10ba94772f48a15
2019-10-11 21:00:23 +00:00
James D. Forrester c67a1f30c6 build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: Ibfa7685b068d02309c1eac7e00b3b347e11550a8
2019-10-11 10:21:44 -07:00
Ed Sanders b024fddb4d Make mapName deterministic so it can be tested
Change-Id: Ia906b46fbe8d84ae1482f8efaeb609d08c53bfa8
2019-08-30 17:43:37 +01:00
libraryupgrader d7f715635e build: Updating eslint-utils to 1.4.2
* https://npmjs.com/advisories/1118

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Iedd885fbd677668adf0e9cfa71bc284c53dd22a4
2019-08-24 09:52:13 +00:00
libraryupgrader e02f538987 build: Updating mediawiki/mediawiki-codesniffer to 26.0.0
Additional changes:
* Committed package-lock.json (T179229) too.

Change-Id: Ie0e761bedc2d7c33d1bce9be0be763514e3805fc
2019-07-14 12:25:21 +00:00
James D. Forrester bdaa94075d build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: I9f24f657b830d5cd6552198c6760e82793e690fb
2019-07-09 14:07:44 -07:00
libraryupgrader 772bb0fa4a build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: I7586acd1b80ea1278ef5f4f0bb6c56a8c6f09e1b
2019-06-10 08:25:18 +00:00
Reedy 23d34a68ad Remove PHP entry point
Bug: T140007
Change-Id: I47cebade3de70a94d291285c94dbefec01e9ce59
2019-06-06 15:09:20 +01:00
James D. Forrester 8d795f2e00 build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: Id1a8797f07f4c401c8db3b83c73f8e8bd2cc6ee9
2019-05-19 13:20:12 +02:00
James D. Forrester fd9ffc3341 build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: I0cd5446441358c52844ce556cbdad00520c173fa
2019-05-06 16:19:30 -07:00
James D. Forrester 164bb62246 build: Install eslint
Change-Id: I3d2aed1e6cd8935e151e0ae2175b1283b4a408b0
2019-05-06 16:18:51 -07:00
Alex Ezell 9f962fbad1 Allow negative coordinates in poly image maps
Previous attempts to clean this up followed similar logic to the
circle and rect types of imagemaps. However, in reality, we have
many image maps in our content that have negative values for poly
coordinates. While this isn't logical, breaking them so loudly
in the page isn't desirable.

This change then removes the check for positive value and passes
along the negative coordinate.

Bug: T217087
Change-Id: I0ee84f059dacde79a7e4fb0a172ac6937360d864
2019-04-11 09:23:14 -04:00
Translation updater bot 223b87c5c4 Localisation updates from https://translatewiki.net.
Change-Id: Ief2de4aa5c24d361cf284345470c3fe78c765c7a
2019-04-10 09:23:08 +02:00
Ed Sanders fb20685b48 Use is_numeric instead of ctype_digit for 'poly' validation
Duplicates the logic from tokenizeCoords which is used by
'rect' & 'circle'.

Bug: T217087
Change-Id: I7c59bb9ea410bae8800922356829bca669d2e69c
2019-03-31 00:21:43 +00:00
Alex Ezell 70a6b723c7 Warn user about invalid coordinates
If a user provides a non-numeric coordinate in an image map, it
results in an unhandled exception. This change detects the incorrect
coordinate and warns the user with an error message.

This also cleans up a type casting that was old fashioned.

Bug: T217087
Change-Id: Ic1254dd0fe41d0499f71140466277fb58d1d194c
2019-03-22 15:20:22 -04:00
Arlo Breault f2c607e101 Update tests to match parser changes
Bug: T208070
Depends-On: I3da235cb83efa424f0cf1cf4fc7233240fcdf6b2
Change-Id: Ie70e1915c172d2d67b3b8b90eb35f753b800f61e
2019-03-15 18:24:51 +00:00
zoranzoki21 eadde54449 Upgrade ImageMap extension to use newer phan
Bug: T216921
Change-Id: I6bb5c8e855a191cae7bddbf8a5f23da5c033045f
2019-03-11 19:46:47 +00:00
Umherirrender c0eb4fdb18 Declare local vars set on first run of foreach
PhanUndeclaredVariable is reported, because the vars are not declared
outside of the loop and only conditional inside the loop.
The condition is run on first loop, so it is always run and the old code
works.
Declare the vars to make them visible before the loop

Change-Id: Ic33170fcb0e5b7e02b7269c83f27120989a6ca10
2019-03-11 20:15:07 +01:00
zoranzoki21 b0b5b63fd9 Move images in resources directory
Change-Id: Id76a292e75c1ef82410439235b6d25eb0cff4284
2019-03-02 22:06:50 +01:00
Translation updater bot a6a561d72d Localisation updates from https://translatewiki.net.
Change-Id: I14a272e285a751dae6c83b846bd81104505a9aa5
2019-02-28 22:24:59 +01:00
Reedy f0355fab4c Update MediaWiki namespaced AtEase global functions
Change-Id: Ic1342ad266084bd1ad6ae89e31020afef825870d
2019-02-13 05:29:51 +00:00
libraryupgrader 2fca9d627a build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: Ic2cfc48df23ef445cf9cfea2941a0d1039e6c9a0
2019-02-06 17:47:03 +00:00
Thiemo Kreuz 0c36a0b9a7 Fix parser test by adding decoding="async" parameter
As far as I can see this was introduced via I3d738eb in December 2018,
but never applied to this codebase.

Bug: T212124
Change-Id: I5d986b23fdd52ebc207405f8d7dfcdc208e55f3f
2019-01-15 15:45:31 +01:00
Translation updater bot 6bb802c59b Localisation updates from https://translatewiki.net.
Change-Id: I609bcec363c5864ff09c9127f6d1185ee09cb5e2
2019-01-08 22:29:47 +01:00
libraryupgrader 4e96c0f046 build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: Iab80ecfc6f5ad79d0368f82cc393d3e751bef542
2018-11-16 02:57:41 +00:00
Umherirrender b9f43bd8f1 Add method scope visibility
Change-Id: I5ac480fe2af502645d539e0e05b6872d3854168a
2018-10-31 23:37:19 +01:00
Kunal Mehta 02770ad7ec Warn if legacy PHP entry point is used
Bug: T140851
Change-Id: Iee67d0da5534e7941c0041e30ce2e1526e40ace9
2018-10-16 11:29:57 -07:00
libraryupgrader 564d053485 build: Updating npm dependencies for security issues
* Updated grunt to 1.0.3, addressing:
  * https://npmjs.com/advisories/577
  * CVE-2018-3721

Change-Id: I0b59b1b84e369cac6c2df1887346dc80a414517c
2018-10-11 08:12:15 +00:00
Translation updater bot ee33e8e42e Localisation updates from https://translatewiki.net.
Change-Id: I7b3a42a7228a62ddc3441efbf05aef5135e6dcd7
2018-09-22 10:03:37 +02:00
libraryupgrader 772891c1de build: Updating mediawiki/phan-taint-check-plugin to 1.5.0
Change-Id: Ic32179cb3980c9cb881d7cbaf09c41aa22ab5bcf
2018-09-08 02:19:29 +00:00
libraryupgrader af5f17d58a build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Change-Id: Iedd6c22f03504f6f0a2e223f58ee480116e5e29d
2018-09-03 04:04:51 +00:00
libraryupgrader bc921a3a95 build: Updating mediawiki/phan-taint-check-plugin to 1.4.0
Change-Id: I02fdbab33644be8f18d649ecc8970e9875f3787b
2018-09-01 09:54:22 +00:00
libraryupgrader 4cc60e3543 build: Updating mediawiki/phan-taint-check-plugin to 1.3.0
And updating CoC link to use Special:MyLanguage (T202047).

Change-Id: I9a1e9a4916c28c9d6da91e328938120d5df5bc84
2018-08-19 13:29:02 +00:00
Translation updater bot 4c440a6e14 Localisation updates from https://translatewiki.net.
Change-Id: I894081846dfc69108182b1266494014d202bb0a9
2018-08-09 22:23:50 +02:00