Timo Tijhof
777ddee3aa
ApiTemplateData: Use strict check for $langCode
...
This is assigned as boolean false or any string value.
The previous code used in implicit boolean cast to differentiate,
but the check is insufficient given that "" and "0" would also
cast to false. It is not the responsibility of this code to filter
those out.
Change-Id: I2cc707432b93703b29c49ac17d737f34119fc400
2018-10-14 03:52:55 +01:00
Timo Tijhof
29162276eb
ApiTemplateData: Remove needless count() call
...
These variables always hold arrays, and to assert an array being
non-empty, boolean evaluation is reliable and suffices.
Change-Id: I5173f9d38ff52807a8025897115823d093052ecf
2018-10-14 03:51:38 +01:00
Umherirrender
8d0a3ea30c
Update namespace for MediaWiki\Revision\RevisionRecord
...
Follow-Up: I16bea8927566a3c73c07e4f4afb3537e05aa04a5
Change-Id: Iae4f59a54a0fb65058ef43f51c5c819646935ac7
2018-10-11 19:56:27 +02:00
libraryupgrader
b27e61ec3b
build: Updating npm dependencies for security issues
...
* Updated grunt-contrib-watch to 1.1.0, addressing:
* https://npmjs.com/advisories/534
* CVE-2017-16137
* https://npmjs.com/advisories/577
* CVE-2018-3721
* Updated grunt to 1.0.3, addressing:
* https://npmjs.com/advisories/577
* CVE-2018-3721
Change-Id: Ic7cc2041d63519835b3c569989a7c7c43738fb08
2018-10-11 11:15:00 +00:00
Timo Tijhof
326558fc77
Don't store templatedata pageprop on doc-subpage
...
This resolves two issues:
* Database inefficiency (T52512).
* Doc pages showing on Special:PageWithProp.
It also makes progress on (but doesn't fully resolve) T54448,
by not outputting encouraging accidental use of "/doc" by
displaying descriptions and parameter documentations for them
below the suggestions in VisualEditor.
Bug: T52512
Bug: T54448
Change-Id: I99323d7adc5fc072a85ff1d3595f805f537bbb43
2018-10-09 17:46:21 +00:00
Translation updater bot
f957ec42c2
Localisation updates from https://translatewiki.net .
...
Change-Id: I2672ac1a6d6b1f6b348eee66d727efa7d83c9bd8
2018-10-06 22:35:37 +02:00
Bartosz Dziewoński
9695c4fbb2
TemplateDataBlobTest: Ensure identical results on PHP 7.1
...
The implementation of mt_srand()/mt_rand() was changed in PHP 7.1 to
a better one. Pass MT_RAND_PHP to get the old implementation.
http://php.net/manual/en/function.mt-rand.php#refsect1-function.mt-rand-changelog
Bug: T206287
Change-Id: Ia2f79f2364583f7ee8f145519ae4ae1b7210c450
2018-10-05 11:08:01 -07:00
Translation updater bot
7bc74cd753
Localisation updates from https://translatewiki.net .
...
Change-Id: I938843fef0d690d5783faac25e079476b51dce6f
2018-10-03 18:53:52 +02:00
jenkins-bot
49f1201621
Merge "Remove empty Default, Example and Auto value sections of the output table"
2018-09-28 16:08:34 +00:00
Agabi10
348edb68d2
Remove empty Default, Example and Auto value sections of the output table
...
Bug: T125333
Change-Id: I1f7135cdf22c04aaa31744096900fd7ea65f9a37
2018-09-28 15:24:14 +00:00
Translation updater bot
bd25695345
Localisation updates from https://translatewiki.net .
...
Change-Id: I7741bc1d1dd6bf2fbc44907d1268fa4311623a49
2018-09-24 09:18:23 +02:00
Translation updater bot
056dd63e4b
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia127d9a0926854c8410aaad261ae69de003a8cf3
2018-09-20 09:59:28 +02:00
Translation updater bot
26562ce9f3
Localisation updates from https://translatewiki.net .
...
Change-Id: I03ff1e717f63a80552061a492bb366c7e796e771
2018-09-15 09:54:42 +02:00
Volker E
e06b2b1686
Replace deprecated 'advanced' by renamed to 'settings' icon
...
One more, after my comment in I997bc0f8c7d99f73c1cc6b4ce46f6bcdc1eee410
got happily ignored.
Bug: T190581
Change-Id: I26dc9018693ffd4c5edcda021c8adce52325cdc9
2018-09-12 12:49:10 -07:00
jenkins-bot
5ac1f53bde
Merge "Replace deprecated 'advanced' by renamed to 'settings' icon"
2018-09-12 16:23:48 +00:00
Sam Wilson
79e5347d90
Prevent leading hash from starting param names when guessing
...
Parameter names can be constructed with parser functions, so
we should not include these as raw parameter names. There
might be more characters to add here.
Bug: T203605
Change-Id: If57a9ed7edf1e881cd121d9a1bcb2e7455c04ec9
2018-09-12 10:04:45 +08:00
Translation updater bot
e01b0bcea7
Localisation updates from https://translatewiki.net .
...
Change-Id: I4eb8a2e62c626672466a0cfb7907b3f9d65c4561
2018-09-11 10:24:37 +02:00
jenkins-bot
6d438766c8
Merge "Fix problems with MediaWiki messages and non-displaying icons"
2018-09-09 10:41:50 +00:00
libraryupgrader
4e6bb25ee5
build: Updating mediawiki/phan-taint-check-plugin to 1.5.0
...
Change-Id: Ib222506ee35adb813b235b810740b86c2b4c3293
2018-09-08 06:09:26 +00:00
Volker E
7da7b90b58
Replace deprecated 'advanced' by renamed to 'settings' icon
...
Bug: T190581
Change-Id: If509219d1b6404c66f2a3c942623e315f9b02e34
2018-09-07 20:05:46 -07:00
Translation updater bot
23c8c4f345
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia35faa27a7b4c5e258b3b20d60c533ebea41a3d2
2018-09-07 09:03:03 +02:00
libraryupgrader
c687f605b8
build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
...
Change-Id: I3c23b66413da111bc55f9be1ddcf26eb2d16302b
2018-09-03 19:51:00 +00:00
Saint Johann
c608d204c1
Fix problems with MediaWiki messages and non-displaying icons
...
Bug: T160252
Change-Id: I997bc0f8c7d99f73c1cc6b4ce46f6bcdc1eee410
2018-09-03 17:14:16 +02:00
jenkins-bot
bb0ea17413
Merge "Do not display editor on non-wikitext pages"
2018-09-03 15:06:53 +00:00
Translation updater bot
ad5c1f4a73
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie451c7bac78d863b3d477799b93e29d11be64971
2018-09-01 22:33:44 +02:00
libraryupgrader
23066fc0f4
build: Updating mediawiki/phan-taint-check-plugin to 1.4.0
...
Change-Id: Ib0a4420c9be803e1b513fb5bb05ef6439049c445
2018-09-01 14:40:59 +00:00
Seb35
db1fb276a0
Do not display editor on non-wikitext pages
...
The editor is displayed on 'Sanitized CSS' pages (template pages
ending with .css), it should not because it is not interpreted as
wikitext and tags are not recognised.
Change-Id: I58195de1ae54252d57e1cd912ee52801a093729e
2018-09-01 13:03:49 +02:00
jenkins-bot
783e99618a
Merge "Use Parser::stripOuterParagraph"
2018-08-31 06:43:45 +00:00
Translation updater bot
6a715a5387
Localisation updates from https://translatewiki.net .
...
Change-Id: I317864046eff07b25349fcd9af3d13f19796b5f6
2018-08-30 23:38:14 +02:00
Sam Wilson
27f4633224
Switch from $.inArray to array.indexOf
...
In response to https://gerrit.wikimedia.org/r/c/mediawiki/extensions/TemplateData/+/455486/2/modules/ext.templateDataGenerator.sourceHandler.js#175
Bug: T193265
Change-Id: Iffc1bb4c25dfe066db9955dbf7ebb183261e9827
2018-08-28 09:08:36 +08:00
Translation updater bot
1316e4e270
Localisation updates from https://translatewiki.net .
...
Change-Id: I34f07cf68c73f827f592dc7dd06fb2287e562031
2018-08-27 22:17:43 +02:00
Sam Wilson
bc1422b788
Ignore subsequent similarly-named parameters when extracting
...
When extracting raw parameters from wikitext, ignore those that
only differ from already-found ones by spaces, underscores, or
hyphens.
Bug: T193265
Change-Id: I012e06bf4353eaaf0613124d7d6b88f3444d248a
2018-08-27 11:14:27 +08:00
Translation updater bot
59031863a4
Localisation updates from https://translatewiki.net .
...
Change-Id: I6ef9f10dce3f7849936c8635fa2c624842af3b2e
2018-08-23 23:26:23 +02:00
Translation updater bot
39cb09bc20
Localisation updates from https://translatewiki.net .
...
Change-Id: I1652013fba0820a4a494a46fec6cdd8927a7c414
2018-08-21 23:38:55 +02:00
libraryupgrader
cdfdc860fa
build: Updating mediawiki/phan-taint-check-plugin to 1.3.0
...
And updating CoC link to use Special:MyLanguage (T202047).
Change-Id: I5050be64e79b8d204bbffeee6d20336591ed232d
2018-08-19 17:07:35 +00:00
Translation updater bot
5c364b22ec
Localisation updates from https://translatewiki.net .
...
Change-Id: I4a1e9f40f7a31b7af997d70821668be428e93280
2018-08-16 22:28:53 +02:00
Translation updater bot
63266c23c3
Localisation updates from https://translatewiki.net .
...
Change-Id: I3024e7922420a978561308f7f26d6ad80e00689b
2018-08-15 22:18:49 +02:00
Translation updater bot
19227aef07
Localisation updates from https://translatewiki.net .
...
Change-Id: Ib910697c49ab3783b94cddd3c4fa86df20618c38
2018-08-14 22:35:37 +02:00
Translation updater bot
70dc499dd0
Localisation updates from https://translatewiki.net .
...
Change-Id: Ide33ccbe82482f454e6a2083fc84f9fc059d523a
2018-08-13 22:14:58 +02:00
Umherirrender
0f96d4c650
Use Parser::stripOuterParagraph
...
Since 1.24
Change-Id: Id919f85655008a7e5f4caa03bf28808e56254b98
2018-08-13 18:57:20 +02:00
Translation updater bot
fbd62ca659
Localisation updates from https://translatewiki.net .
...
Change-Id: I12626fd301050afb2dc2e2960cd5b9e0965302ea
2018-08-10 22:19:03 +02:00
Translation updater bot
258a508300
Localisation updates from https://translatewiki.net .
...
Change-Id: I216d4af0ae77862c5629ab0ad692b5266aaa66e6
2018-08-09 22:24:12 +02:00
Translation updater bot
f19fa9fb9a
Localisation updates from https://translatewiki.net .
...
Change-Id: I38e0850b84640f9ae3e6c7cc6225108a52249ed1
2018-08-08 22:14:15 +02:00
Translation updater bot
6367b38a68
Localisation updates from https://translatewiki.net .
...
Change-Id: I43db2e6e134513f27e4e594f82d0a135824f4f38
2018-08-07 22:32:07 +02:00
Translation updater bot
92384d6e5e
Localisation updates from https://translatewiki.net .
...
Change-Id: I8a70525f6948ce9837926a951b3e2df2d824b2e2
2018-08-06 22:22:41 +02:00
Kunal Mehta
b21d9c7588
Configure phan-taint-check-plugin
...
The plugin checks and flags potential security issues (XSS, SQLi, etc.)
using static analysis.
See <https://www.mediawiki.org/wiki/Phan-taint-check-plugin > for more
details.
Bug: T201219
Change-Id: I0ae531a167e2b3cf6195405277cae8a045cc5e24
2018-08-03 21:31:32 -07:00
Kunal Mehta
576c914043
Use setContentLang() in tests
...
Change-Id: I051016a20a1213f9a27bbe40bd4a6d2c53e6de34
2018-08-02 15:48:33 -07:00
Translation updater bot
da0094ee4a
Localisation updates from https://translatewiki.net .
...
Change-Id: I73d3e92f55163f439c7bafc436287df3d32049cf
2018-07-29 22:21:24 +02:00
Translation updater bot
9c9575248d
Localisation updates from https://translatewiki.net .
...
Change-Id: I2d6459dd20edb6d50cc72362ddb5020b70f0ea11
2018-07-28 22:30:11 +02:00
Translation updater bot
994dddcc1f
Localisation updates from https://translatewiki.net .
...
Change-Id: I8406b4bf7f7f0bfbf5bcb29b7a1f0a9d4c5d7cd0
2018-07-27 22:18:14 +02:00