Commit graph

1310 commits

Author SHA1 Message Date
Max Semenik 8b50403fe8 Get rid of *Obj() functions
They're a rudiment from the time when the extension had to be compatible
with both SFH_OBJECT_ARGS supporting and not versions of MediaWiki.
This is in the past, so unify them now by merging and or deleting the
old versions. The resulting functions don't end with "Obj" anymore.
One "common" function was left alone to be refactored at a later time,
however I've renamed it and made private.

Change-Id: Ice97e587bf7cc0469476c2e53268d2774ddfdd04
2019-07-18 02:35:53 +00:00
libraryupgrader 61828f3bd2 build: Updating mediawiki/mediawiki-codesniffer to 26.0.0
Additional changes:
* Committed package-lock.json (T179229) too.

Change-Id: Iac76e4f1ac46022e82adc6c1768873ef347e597f
2019-07-14 14:50:10 +00:00
Translation updater bot d15208f8dd Localisation updates from https://translatewiki.net.
Change-Id: I6c814109da6c9ab7ef3070c6519473d87e19571e
2019-07-12 08:44:22 +02:00
James D. Forrester e085eca7b1 build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: Ia1f4e8144b7d85d7bc26dd869ecd8c8ee42955db
2019-07-09 14:13:43 -07:00
Translation updater bot 85d65a17a3 Localisation updates from https://translatewiki.net.
Change-Id: Ic06482d8a19dbdb15a440467b8641d6e0763f71d
2019-07-07 22:41:05 +02:00
Translation updater bot 1e1d9cf3e5 Localisation updates from https://translatewiki.net.
Change-Id: Ie5a2de1d6dd32e620e7a9ccf6f22130d938c164a
2019-06-30 22:39:02 +02:00
Translation updater bot 8ac96d60d3 Localisation updates from https://translatewiki.net.
Change-Id: I444c7b8a37e36fbc0c0ecc10ed1be144ef738a74
2019-06-24 08:39:24 +02:00
Translation updater bot 148b204a86 Localisation updates from https://translatewiki.net.
Change-Id: I5b0fd46cfeae530d4f0193a9d5526e08ae95acc9
2019-06-10 22:55:33 +02:00
libraryupgrader 4d9f0496c4 build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: Ifae1020c458d9da660f8a0a9113254f754e5377d
2019-06-10 09:47:33 +00:00
Translation updater bot 9e2d7297fc Localisation updates from https://translatewiki.net.
Change-Id: I184d944bf94d509faaae1d6a15f0e317f21e4b3e
2019-06-02 22:30:38 +02:00
Translation updater bot b1327112b6 Localisation updates from https://translatewiki.net.
Change-Id: Ie6bfcc091306c0c28726ed76e533d432ba2ff1cc
2019-05-22 22:31:45 +02:00
Translation updater bot c5d2c111b8 Localisation updates from https://translatewiki.net.
Change-Id: I2a4e4e0f1c2a20c8519e191aaf4a64d7e6786892
2019-05-20 22:30:24 +02:00
James D. Forrester b3b9d5a5b4 build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: I31e610873fbadb967958ad7389074ee6756e152c
2019-05-19 13:26:27 +02:00
Translation updater bot 387fd20cd1 Localisation updates from https://translatewiki.net.
Change-Id: I515c3d058a8ab258758567096e36f19329b07e0a
2019-05-13 23:22:22 +02:00
Translation updater bot 0674a4f495 Localisation updates from https://translatewiki.net.
Change-Id: I30c1990495448ffb96c09bb12d1b2d872d69f18d
2019-05-12 22:34:10 +02:00
Translation updater bot ac896748fc Localisation updates from https://translatewiki.net.
Change-Id: I8e7e9ab12402b352a48923387e236d4a2a82a3ad
2019-05-10 09:20:37 +02:00
James D. Forrester ab49140e61 build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: Ie129e854469e276022bad488bfc813b550256541
2019-05-07 10:14:22 -07:00
James D. Forrester c1399a6d3d build: Install eslint
Change-Id: Ie129e854469e276022bad488bfc813b550256542
2019-05-07 10:14:19 -07:00
Translation updater bot 017f544118 Localisation updates from https://translatewiki.net.
Change-Id: Ie129e854469e276022bad488bfc813b550256543
2019-05-06 09:04:57 +02:00
Translation updater bot b1b4984cf0 Localisation updates from https://translatewiki.net.
Change-Id: I39729e7959f174874a46de648740ead31d877d75
2019-04-29 22:16:10 +02:00
jenkins-bot 1996cb1584 Merge "Remove tests/phan/issue from .gitignore" 2019-04-26 15:58:59 +00:00
Translation updater bot ed461b1065 Localisation updates from https://translatewiki.net.
Change-Id: I285c3dd47eda86bf30bd13ab223cd2f68ca997b8
2019-04-23 22:46:00 +02:00
Translation updater bot 86692425e7 Localisation updates from https://translatewiki.net.
Change-Id: Iac54b299ff81eee78b93cb1f8925d5b4aac4c098
2019-04-22 09:23:56 +02:00
Umherirrender 1f1c8343b9 Remove tests/phan/issue from .gitignore
Not needed since mediawiki/mediawiki-phan-config 0.4.0

Change-Id: I8ec4cbf8aa07b5b85deec7cab2df226053fc58f0
2019-04-21 11:17:04 +02:00
Translation updater bot e6bbea67c6 Localisation updates from https://translatewiki.net.
Change-Id: Ie029d9725d09fd10ec14b30c9d0c5a6836f05724
2019-04-14 22:30:08 +02:00
Max Semenik 439544224f Replace a single use function with a closure
Change-Id: Id6408bb203fc984f7baaaf3358cea79c281005bf
2019-04-04 17:22:04 -07:00
Max Semenik e721c193d9 Avoid using $wgContLang
Change-Id: If43a6aa5580397264b2ca9dff5ef7d0da859e3d6
2019-04-03 23:25:11 -07:00
Max Semenik e684068ed9 Convert variable used as a constant into constant proper
Change-Id: I1c7914cc9015c18f4c3877b4acc5b3be921ec4d5
2019-04-03 19:20:15 -07:00
Max Semenik 3c54e29505 Improve hook handler documentation
Change-Id: I2ae4271ec5e5a06d81a39ab9e528c6072c0f7731
2019-04-03 19:20:15 -07:00
Max Semenik 8e7a3ce5df Remove b/c code
New code requires 1.32, this extension requires 1.32.

Change-Id: I14b9d0074d057d6fb323d54502d0a4c64fc74879
2019-04-03 19:20:15 -07:00
Max Semenik f53debae7d Namespace this extension
Change-Id: I0c7719f17f74180a4c85f914888262f7e3b13111
2019-04-03 19:20:14 -07:00
Max Semenik 8f89b3fac3 Remove PHP entry point
Change-Id: I9b19fa8763b4659be343940a5c327b1aecc1ff0e
2019-03-27 20:54:00 -07:00
Max Semenik 593529bc72 Simplify test code
No point in having a property and setUp() just to create a
parameterless class.

Change-Id: I5e7838004d306aac767380280280eed3108e2253
2019-03-27 20:53:55 -07:00
Translation updater bot e53676a0ae Localisation updates from https://translatewiki.net.
Change-Id: I0561975dc97bccda6fde1237a34af7602e4c3c39
2019-03-23 10:23:28 +01:00
Translation updater bot 4028199f54 Localisation updates from https://translatewiki.net.
Change-Id: I7ecdcc713ee3a6bc804d8f89e5386a29ffbb881b
2019-03-20 22:27:17 +01:00
Translation updater bot 05f1476fae Localisation updates from https://translatewiki.net.
Change-Id: I391e940014e69c7d4a52ec4db5e460be3820da9f
2019-03-19 22:17:05 +01:00
jenkins-bot c692534ef4 Merge "Update tests to match parser changes" 2019-03-19 14:37:13 +00:00
jenkins-bot f1604084fa Merge "Update tests to match parser changes" 2019-03-19 14:18:28 +00:00
Arlo Breault 5c6ef32a11 Update tests to match parser changes
Bug: T208070
Depends-On: I3da235cb83efa424f0cf1cf4fc7233240fcdf6b2
Change-Id: I47d1d9620031036b9497cacf70b34a45c3e5f409
2019-03-19 14:07:19 +00:00
Kunal Mehta ab601a2ca7 Upgrade to newer phan
Bug: T216933
Change-Id: If8a63da99343597b7f8c131f3656945eaf67d819
2019-03-16 22:39:09 -07:00
Arlo Breault ae237035f1 Update tests to match parser changes
Bug: T208070
Depends-On: I3da235cb83efa424f0cf1cf4fc7233240fcdf6b2
Change-Id: I74953d5de765a2245a2999f17c7ae1cf49376bd1
2019-03-15 18:24:34 +00:00
Translation updater bot fce9a05cd2 Localisation updates from https://translatewiki.net.
Change-Id: Icfdc632e8b6911090179fb137cef4382f4c9ca43
2019-03-11 22:16:52 +01:00
Translation updater bot 518ff210c9 Localisation updates from https://translatewiki.net.
Change-Id: I1b8ba65b58a8f59297d915148d130c730eef6cfc
2019-03-07 22:40:59 +01:00
Translation updater bot 9c34fad44d Localisation updates from https://translatewiki.net.
Change-Id: I68f4e40aefe605a6ea7673f23bd0cff5d341f71d
2019-02-25 22:58:24 +01:00
Translation updater bot b9fda7e05a Localisation updates from https://translatewiki.net.
Change-Id: Ifa36a4f9c0115533bfeece3a21785930ceaa4143
2019-02-18 22:23:20 +01:00
Translation updater bot cf71df381e Localisation updates from https://translatewiki.net.
Change-Id: I0fb0cc0317e9314a813b5ca69ffcda980ceb11f5
2019-02-17 22:14:33 +01:00
jenkins-bot 111c434c4e Merge "Enable string functions if running parser/PHPUnit tests" 2019-02-07 23:41:04 +00:00
Translation updater bot 33d21115c8 Localisation updates from https://translatewiki.net.
Change-Id: Ia9d19a4288240454d3e05e97c15b6de12df54059
2019-02-07 22:28:47 +01:00
libraryupgrader 8bb3322422 build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: I2d9a15eec716fefccfdb41c767646e1c6ded87fe
2019-02-07 02:30:47 +00:00
Kunal Mehta 662734cc6f Enable string functions if running parser/PHPUnit tests
Instead of using a global variable specific to Wikimedia CI, always enable
string functions when running parser and PHPUnit tests.

Bug: T180192
Bug: T200650
Change-Id: I27764036e42800be437d69d96ce2b7bc1b1f7cb3
2019-02-07 01:59:13 +00:00