Commit graph

870 commits

Author SHA1 Message Date
Translation updater bot 8650134c8c Localisation updates from https://translatewiki.net.
Change-Id: Ib3a622e59691f23a974be8cc3a3540f9b05bece4
2014-09-16 19:46:35 +02:00
Jackmcbarn ab722f3b08 Improve performance of PHP ustring
Cache patterns and the regexes they become, avoid revalidating the same
pattern multiple times, and don't bother checking if something is a string
when we just made it one.

Change-Id: I1a61dd0a36eb449c8acdc8c1be68aae793f172d3
2014-09-16 00:19:39 -04:00
Jackmcbarn b970046f2e Don't output a semicolon at the end of CSS
It's not necessary, it makes the output bigger, and some pages have enough
elements with CSS that it does make an actual difference.

Change-Id: I80d471899c7e04a8a4876c205198a8c0d0b1f281
2014-09-10 19:08:34 -04:00
jenkins-bot 96508a3215 Merge "Output   instead of &#nbsp;" 2014-09-08 20:37:05 +00:00
Jackmcbarn f5894a6a9f Output   instead of &#nbsp;
Bug: 70475
Change-Id: I19aeceaa1eed17be4a128acd7fb50a9c8b40cf12
2014-09-08 16:06:34 -04:00
jenkins-bot 7808ee7f65 Merge "Only set indexOffset when the function name is indexed" 2014-09-08 16:49:03 +00:00
Jackmcbarn ece8cc5e82 Only set indexOffset when the function name is indexed
If a function name contains an equals sign, it doesn't increase the index,
so indexOffset=1 makes Lua see arguments as starting with 0. This change
fixes that, so that indexOffset is only set to 1 if the function name has
an index.

Change-Id: Ifa2dfad4d2f7228c3fd5721ccfc4c235576b663d
2014-09-06 15:42:13 -04:00
Jackmcbarn 01c9ef5004 Set vary-revision appropriately with getContent()
When calling getContent() on the page currently being viewed, set
vary-revision on the parser output, as is done when a page transcludes
itself.

Change-Id: I908f095935067dc24dd561192b0699c602cb605f
2014-09-05 17:04:46 -04:00
Translation updater bot 5575bd5822 Localisation updates from https://translatewiki.net.
Change-Id: I61eb8097e66b4add0212abc73b921cb14bc5a879
2014-09-05 22:49:11 +02:00
Translation updater bot 48894a161f Localisation updates from https://translatewiki.net.
Change-Id: Ia40a8b8f90cdfe50f1713ec5e19f5c110701f40a
2014-09-04 22:09:11 +02:00
Translation updater bot 5dd7e43cd4 Localisation updates from https://translatewiki.net.
Change-Id: I65708f2ce6affffb7dd251b0769a96b417064c19
2014-09-03 22:23:30 +02:00
Translation updater bot b9386dd43e Localisation updates from https://translatewiki.net.
Change-Id: I01f79b41b7d565e0bda0893f7e8d56d2853c77e6
2014-09-02 22:16:57 +02:00
Translation updater bot 03478f8a79 Localisation updates from https://translatewiki.net.
Change-Id: Ieda7483607e4c2df84035ab7857b2072cd0ddb01
2014-08-30 22:41:31 +02:00
Jackmcbarn ef6e2fa410 Fix __pairs not working in LuaStandalone serialization
In Ia4d58f44, the code enabling __pairs to work no longer ran inside
MWServer.lua, so it hasn't worked right for serialization since then. This
restores the correct behavior.

Change-Id: Iea31ab363957f5f69838d6715527cf822c15fa94
2014-08-27 21:09:05 -04:00
Translation updater bot f0b5717d0c Localisation updates from https://translatewiki.net.
Change-Id: I10a426e0879aacb73ca775c85a84220e3d765361
2014-08-27 21:26:28 +02:00
Translation updater bot ae18ff4b71 Localisation updates from https://translatewiki.net.
Change-Id: Ia338c6a327dd3a11a5bed0ec8727790b2bd99a68
2014-08-20 22:30:55 +02:00
jenkins-bot 13c590892b Merge "Use public instead of var in classes" 2014-08-17 21:25:51 +00:00
addshore e29c8eda63 Use public instead of var in classes
Change-Id: I0c059515cbf0fa8ef3846526a989f1a322fcd8ae
2014-08-17 22:11:26 +01:00
Translation updater bot 6eb8a2f4fe Localisation updates from https://translatewiki.net.
Change-Id: I56b10a51f7223d7c8d99d15dfbd2d9807dc76b83
2014-08-17 23:08:53 +02:00
Jackmcbarn fd9ecb9cbe Expose cascading protection directly to Lua
Add a way to fetch cascading protection information from Lua without
needing to call the CASCADINGSOURCES parser function.

Change-Id: I1b3ac18af11d3066f78d27b31da8d6709a6a2631
2014-08-13 12:34:47 -04:00
Translation updater bot ee1e9b5207 Merge "Localisation updates from https://translatewiki.net." 2014-08-11 21:21:15 +00:00
Translation updater bot 62760fcfba Localisation updates from https://translatewiki.net.
Change-Id: I2f2a020e79590769b6a7d8c454fd17e944f321d6
2014-08-11 23:09:24 +02:00
Jackmcbarn 2295009729 Add 2 tests to unitTestsList
Change-Id: I839515927e66a046d7b3e7b00d7d24efad3eacb5
2014-08-09 21:34:12 -04:00
Brad Jorsch 0367e9bddd Fix deceptively-simple pattern in pure-Lua ustring
The pure-Lua ustring pattern matching functions short-circuit to the
much faster string library when the pattern would match the same against
the raw bytes.

A pattern like "[^a-z]" can match a partial UTF-8 character when applied
bytewise, and so must be detected as unsafe.

Let's also directly test the pure-Lua module, instead of me having to
comment out lines in Scribunto_LuaUstringLibrary::register() whenever I
want to test them.

Change-Id: I91ed3374aadfea379b9db2e13b4248ab20df509e
2014-08-10 01:18:18 +00:00
Translation updater bot 40985a1672 Localisation updates from https://translatewiki.net.
Change-Id: I11744269b591364bae9005acdae6982c2c50b4db
2014-08-09 20:01:48 +02:00
Translation updater bot 9a0d54f188 Localisation updates from https://translatewiki.net.
Change-Id: I7378f7769ace0fe0fb6ee48843def3cec63936a8
2014-08-03 22:11:17 +02:00
Translation updater bot a19e02e708 Localisation updates from https://translatewiki.net.
Change-Id: Icd13be7bd474b6335fc827f0776b629891b2bc1c
2014-07-31 22:17:08 +02:00
Translation updater bot 82ded32899 Localisation updates from https://translatewiki.net.
Change-Id: I8ce19edb53277a92fcb3a87e21815587bd50dfdd
2014-07-29 21:56:35 +02:00
Translation updater bot 1677aec38e Localisation updates from https://translatewiki.net.
Change-Id: I1a021ae3c2d80d9b121008b46dd7fc222fedd5ef
2014-07-27 22:23:06 +02:00
Translation updater bot 46d36fa9e7 Localisation updates from https://translatewiki.net.
Change-Id: I2a3226f1ee04db59a38e62da1567a0ae633a4c4e
2014-07-21 21:41:30 +02:00
Translation updater bot a43536721d Localisation updates from https://translatewiki.net.
Change-Id: I541c910a90969b00b10d9ac7706a4139a519a25f
2014-07-19 22:06:18 +02:00
Translation updater bot d5e3ee8b25 Localisation updates from https://translatewiki.net.
Change-Id: I80b9acfcb6e570818b5e99114b62cbd522bc6e11
2014-07-17 22:59:53 +02:00
Translation updater bot bf06e53085 Localisation updates from https://translatewiki.net.
Change-Id: I56772871ae4f19deec821009eac5fe5caf099101
2014-07-14 22:02:12 +02:00
jenkins-bot 160770ae3e Merge "Simplify mw.text.listToText" 2014-07-14 17:08:29 +00:00
Mr. Stradivarius 1d13fd503a Simplify mw.text.listToText
Simplify the logic in mw.text.listToText so that we don't need to add or
remove anything from the original table we were passed.

Change-Id: I3efcbba1b9adc9a9e32e366e355cb742376cd91b
2014-07-14 19:32:33 +09:00
Translation updater bot 71a7260c77 Localisation updates from https://translatewiki.net.
Change-Id: If158dbcba0abc103d0b706762ff15d581a612210
2014-07-13 22:24:11 +02:00
Translation updater bot 5cb6eb1215 Localisation updates from https://translatewiki.net.
Change-Id: If2be054e4eb1c36bba7922b12b08e01e121e2aff
2014-07-11 21:57:26 +02:00
jenkins-bot ef40ccc8b1 Merge "Fix wrong variable in ustring.lua" 2014-07-11 17:50:03 +00:00
Jackmcbarn ee289c8045 Make the cssEncode pattern simpler
The pattern used by cssEncode is unnecessarily complicated. Simplify it by
using a negating pattern.

Change-Id: I5dc7169efea63473e9e23a1450d2941e434a00d8
2014-07-11 11:40:57 -04:00
Brad Jorsch cb2a331565 Fix wrong variable in ustring.lua
Change-Id: Ibc8056b36d615b57d357987c59219a22e63fdfe8
2014-07-11 11:25:35 -04:00
Translation updater bot bfb0c1c091 Localisation updates from https://translatewiki.net.
Change-Id: Ia57586653adf7ba67f5ddeb96ae9c68b70ded475
2014-07-09 20:35:42 +00:00
jenkins-bot e9b34e7ec8 Merge "Create mw.dumpObject split from mw.logObject" 2014-07-09 15:34:38 +00:00
Jackmcbarn 58a0db1121 Make logs work in preview on OSs other than Linux
$this->initialStatus is only set on Linux, so don't require it to output
log entries.

Change-Id: I3000718026691398f79714e691a094c0792cd342
2014-07-09 11:02:51 -04:00
Jackmcbarn 7c51f69901 Create mw.dumpObject split from mw.logObject
Add an mw.dumpObject() method, which converts an object in the same manner
as mw.logObject(), but returns it instead of adding it to the log buffer.

Change-Id: Ie9fbd24d9d8d13ee2ddf8052679010892f61e1e0
2014-07-09 10:30:53 -04:00
jenkins-bot 979e581d34 Merge "Expose mw.log data on preview" 2014-07-09 00:43:57 +00:00
Translation updater bot d26b066a39 Localisation updates from https://translatewiki.net.
Change-Id: I86981563430a217701733e75b100815ef87c987e
2014-07-07 20:21:06 +00:00
Brad Jorsch 410229c312 Expose mw.log data on preview
People have been complaining that they can't find the log data anywhere.
The new parser limit report seems a good place to show this information.

Change-Id: If2abf27f7779d92ff7c7a1f32b2a54a5de521678
2014-07-07 16:14:30 -04:00
Jackmcbarn 40b8bd2caa Add comments and remove trailing whitespace
Clean up trailing whitespace from all of our code, and add comments
indicating that apparently unused variables are ScopedCallbacks.

Change-Id: I8e5997797cc7b1c64c5351ec112a18f30edc8fef
2014-07-07 14:46:59 -04:00
jenkins-bot 830f7adafa Merge "Improve mw.getCurrentFrame handling" 2014-07-07 18:26:47 +00:00
jenkins-bot d0960c7179 Merge "Update GeSHi integration" 2014-07-07 17:35:02 +00:00