Commit graph

1237 commits

Author SHA1 Message Date
Ricordisamoa 1573bee81a Provide a standard way to get the target of a redirect page
The new Scribunto_LuaTitleLibrary::redirectTarget() method is
used by mw.title objects as read-only attribute 'redirectTarget'.

If the page does not exist or it is not a redirect, the value
of the attribute is `false`; otherwise, it is the target of the
redirect page, as mw.title object.

This is a proper alternative to parsing wikitext as it is done in:
https://en.wikipedia.org/wiki/Module:Redirect

Bug: T68974
Change-Id: Id4d9b0f8c1cd09ebc42c031d4d3fc0c33eea44aa
2016-03-01 14:30:22 +01:00
Translation updater bot 10ebda4a73 Localisation updates from https://translatewiki.net.
Change-Id: I1667ed2055e2cceb9d361dd7f3f0d9bd7cfdb24b
2016-02-27 21:58:18 +01:00
Brad Jorsch 31dd4d535f Pass language to SpecialVersion::getVersion()
The language used should be $parser->getTargetLanguage(), not the user
language.

Soft-depends on Id14733aaef3e52a2e315bffe74baeb926d46e238.

Bug: T127233
Change-Id: I712e048367d9d65fd223cb085dbf9e5fceca286c
2016-02-24 00:11:17 +00:00
Darian Anthony Patrick 00ed2a567b Update lua binaries to patch CVE-2014-5461
These binaries were compiled from a manually lua-5.1.5 source tree.

Linux binaries were built by Anomie. Mac OS X and Windows by dpatrick.

Bug: T72541
Change-Id: I6af0f042c491785cce26afc186a148c83c4f3414
2016-02-22 09:38:22 -08:00
Paladox 663b2f9c3b Add jshint to npm
Change-Id: I87bf6347e80395b10ee496f0786d55e759a4fef3
2016-02-19 15:33:18 +00:00
jenkins-bot 62ecb113b2 Merge "Update jscs configuration" 2016-02-18 01:37:28 +00:00
Paladox 0fd4cfb6b1 Update jscs configuration
Change-Id: I1da096b453413ae0faa06b551e35d270c78e0c41
2016-02-13 16:18:05 +01:00
Sébastien Santoro ba17a0ea2d Namespace correction for Module talk in ur
Replaces U+06C1 U+0654 ("ARABIC LETTER HEH GOAL" and "ARABIC HAMZA ABOVE")
with the NFC form U+06C2 ("ARABIC LETTER HEH GOAL WITH HAMZA ABOVE").

Bug: T126799
Change-Id: Iae5f252441be4aacf56553a4226d7b6a0bd952c5
2016-02-13 14:42:26 +00:00
Paladox b423ed3eba Update grunt-jscs to 2.7.0
Change-Id: I76b632bb08b5f899b753464e6d9a46c595ce9603
2016-02-11 22:31:33 +00:00
Brad Jorsch 1365e35d89 Waste CPU cycles, not wall clock time
Apparently microtime is a bit unreliable for this test for some reason,
so let's use getrusage() to measure actual CPU time instead.

Bug: T125045
Change-Id: Ia1ab6b043b99abb4fc6c2989ad09a24d97dd09c3
2016-02-11 14:00:03 -05:00
Paladox bd44f0f5e8 Add phplint to composer
Change-Id: Ia3509caa82a3ed6d021c61d8bbe2340f12f15e05
2016-02-10 08:57:50 +00:00
Translation updater bot 6ff65d0b28 Localisation updates from https://translatewiki.net.
Change-Id: I1b893c19f6338577ce124186aee766737e673de6
2016-01-31 21:41:18 +01:00
Translation updater bot 0c2dd662b6 Localisation updates from https://translatewiki.net.
Change-Id: Ic33dff158397fb3ac6fe97694ddf79d40972f859
2016-01-27 21:44:15 +01:00
Brad Jorsch dd0c6e7668 Use ParserOutput::getRawText() where available
This is unlikely to be a cause of the cache corruption since this isn't
calling setText() on any wikitext ParserOutputs, but let's fix it just
in case.

Bug: T124356
Change-Id: Ic34c654af86385dede843009d89df6f442ddc915
2016-01-25 12:39:23 -05:00
Anomie 581ca1111f Revert "Add license information"
This reverts commit 4c29dba5e8.

Change-Id: I3c15b4b93355322de80cb1c3ede83bd048b4c94d
2016-01-23 15:27:39 +00:00
victorbarbu 4c29dba5e8 Add license information
Bug: T123943
Change-Id: Ib8de2c84e7e962efce656530021a44617a9dcb8a
2016-01-23 13:04:40 +02:00
Jackmcbarn dc9446b84d Remove loadedLibraries
Nothing actually uses this, so I'm not sure why we ever kept track of it.

Change-Id: I60480b96a83731c7b25aed55099886a86efc08b1
2016-01-19 02:25:25 +00:00
Translation updater bot dbd18285ed Localisation updates from https://translatewiki.net.
Change-Id: Icdad6367012572e137e2312a12b019c3689eda80
2016-01-18 21:37:17 +01:00
Translation updater bot ab1e3d81a1 Localisation updates from https://translatewiki.net.
Change-Id: I8680e91480889ce81da6dc76899a5ec7d5086ec6
2016-01-13 23:30:52 +01:00
Translation updater bot 4502686a8d Localisation updates from https://translatewiki.net.
Change-Id: I6d0cb0e11c026369d5af4c7c5de5e218858f4de3
2016-01-12 22:47:55 +01:00
Translation updater bot 201da404a5 Localisation updates from https://translatewiki.net.
Change-Id: I960cc58236fc597439286b94503123fc7ae21876
2016-01-08 22:20:36 +01:00
Translation updater bot f61da4de47 Localisation updates from https://translatewiki.net.
Change-Id: I07599f596b757f665eb8f7dd53c72f33e13cbd61
2016-01-07 23:37:51 +01:00
Translation updater bot 1a48d0c7f2 Merge "Localisation updates from https://translatewiki.net." 2016-01-03 20:45:07 +00:00
Translation updater bot 957bb7948e Localisation updates from https://translatewiki.net.
Change-Id: I7de4a8bbcb4dee08f3c4e42d852278971000d645
2016-01-03 21:44:01 +01:00
jenkins-bot 2473efdb2a Merge "Use correct variable in ustring.lua" 2016-01-03 20:41:02 +00:00
Ricordisamoa f378c13472 build: Enable and configure jscs, fix some errors
Change-Id: I17115bfe09b91e6fcf84b329a12deab6c708086b
2016-01-03 05:07:04 +01:00
Brad Jorsch 29266a9a0f Use correct variable in ustring.lua
Change-Id: Ic576b8c31c487c106593050538f9f2cc5b722b62
2016-01-02 10:49:48 -05:00
Translation updater bot 3a7bf89d17 Localisation updates from https://translatewiki.net.
Change-Id: I7534220d3813754189d9390a9f67f47f230d6019
2016-01-01 20:05:19 +01:00
Translation updater bot 5cc055d385 Localisation updates from https://translatewiki.net.
Change-Id: I18a8cc188acd00cd88016c3697cd6cefbf1b6efb
2015-12-30 21:44:50 +01:00
Kunal Mehta f446449faf build: Updating development dependencies
* grunt-jsonlint: 1.0.4 → 1.0.7

Change-Id: I634532264a4f00f3cc5c8c5237b75685ad152f5f
2015-12-29 11:53:15 -08:00
Translation updater bot e6dc978522 Localisation updates from https://translatewiki.net.
Change-Id: Iec2f8b05d904379dabbae7f53e66403a4311c182
2015-12-15 22:24:48 +01:00
Translation updater bot 160a2f0cb2 Localisation updates from https://translatewiki.net.
Change-Id: I681c61a298b42337877302dc4ccba568141df000
2015-12-11 23:53:44 +01:00
Translation updater bot 7ff1e942db Localisation updates from https://translatewiki.net.
Change-Id: Idece018eb0491fceae32bc662e4e94093f1d5b94
2015-12-07 23:15:02 +01:00
Translation updater bot 6c93653c16 Localisation updates from https://translatewiki.net.
Change-Id: Ief6c8da0e62f9a9136eb1ac9a0a8b62db6b1a7b3
2015-12-02 21:59:12 +01:00
Translation updater bot 49f50176b2 Localisation updates from https://translatewiki.net.
Change-Id: Ib0981e06bde66006b5717a49f225cc6aa95c0d38
2015-11-27 22:47:29 +01:00
Translation updater bot 4939d7f258 Localisation updates from https://translatewiki.net.
Change-Id: Iaf54dbb7efba936c4a4589e997ae9948e04dcf61
2015-11-26 22:03:38 +01:00
Translation updater bot f600c2bb4d Localisation updates from https://translatewiki.net.
Change-Id: I6cfcd3625c0c03d4ab6e34bec220d8b99ffe4dbd
2015-11-24 23:10:46 +01:00
Translation updater bot 430f71925f Localisation updates from https://translatewiki.net.
Change-Id: I39b79113cb80cb262f6b0d74960d740b24037b75
2015-11-22 20:46:26 +01:00
Translation updater bot a10aa8b054 Localisation updates from https://translatewiki.net.
Change-Id: Ia80511b9fa0d4d7f055c080736a12d1a1335cb6e
2015-11-19 21:39:55 +01:00
Translation updater bot 8ac8c5468a Localisation updates from https://translatewiki.net.
Change-Id: I551f7719334034ab154f1b6cf17d0565531441c2
2015-11-17 21:53:46 +01:00
Translation updater bot 6df4147e4f Localisation updates from https://translatewiki.net.
Change-Id: Id061d32a4ae21736e3db203dd4a6ca530a286153
2015-11-14 22:17:46 +01:00
jenkins-bot dae93fd4b3 Merge "Fix typo in comment and missing spaces" 2015-11-12 17:28:41 +00:00
Jan Zerebecki 1517a1ba2e Fix typo in comment and missing spaces
Change-Id: Ifda05edd9b488768814d3251a93d71e9b55ea5a6
2015-11-11 23:08:15 +00:00
jenkins-bot 48e353d926 Merge "Temporarily skip a test that fails on HHVM." 2015-11-11 21:45:47 +00:00
Translation updater bot 838afbf9cc Localisation updates from https://translatewiki.net.
Change-Id: Ic34c080fab02bfde9e244fbebae02265be22b2c2
2015-11-11 21:55:57 +01:00
Jan Zerebecki fa0e32ce99 Temporarily skip a test that fails on HHVM.
HHVM has a bug in json decode https://github.com/facebook/hhvm/issues/5813 .
Skip the test until there is a fix upstream.

Bug: T103346
Change-Id: I7e44d98c29ba9b9f5443665fc046382f696193c9
2015-11-11 21:49:12 +01:00
Translation updater bot ca2249c994 Localisation updates from https://translatewiki.net.
Change-Id: I5863509488f555e78c5d6b06850a464ec6fd2670
2015-11-09 21:48:08 +01:00
Translation updater bot e14d904716 Localisation updates from https://translatewiki.net.
Change-Id: I8c15982d4c20621194d80d734d067daf2e5b7c24
2015-11-02 22:38:40 +01:00
Translation updater bot 6a25b110bf Localisation updates from https://translatewiki.net.
Change-Id: I7c99795070378c80069938adcda82781ee32e806
2015-10-31 21:07:08 +01:00
jenkins-bot b8830a3e57 Merge "ustring: Handle "empty" charset like Lua does (part 2)" 2015-10-30 16:34:54 +00:00