Commit graph

784 commits

Author SHA1 Message Date
Translation updater bot 74b9a571c5 Localisation updates from https://translatewiki.net.
Change-Id: Ie547dc6cecb57f8a45d376ff20ddeaf34df0878c
2014-09-28 22:36:05 +02:00
Translation updater bot eedf6fd10d Localisation updates from https://translatewiki.net.
Change-Id: Ie4c878f756d04d25dff7b4e7bafbd4cb0c6f646d
2014-09-27 20:31:29 +02:00
Jackmcbarn 9270d30c50 Throw an exception if LuaSandboxFunction::call returns false
If LuaSandboxFunction::call returns false, it's an error on PHP's part.
Throw a "real" exception so that we can see what's causing it in server
logs.

Bug: 71045
Change-Id: I7185e186d3e0af6e467b73ea1ef13417ca96b088
2014-09-27 14:07:11 -04:00
Amir E. Aharoni 011610e770 Pass correct function name to checkType
Change-Id: Ib221c3195c0826610c9d3c470a4923ccf54f90e9
2014-09-26 22:53:05 +02:00
Translation updater bot ffe675735c Localisation updates from https://translatewiki.net.
Change-Id: Icb30f88ef7ae7e3da52ffadb2663d7d52c617e2d
2014-09-25 23:07:19 +02:00
Translation updater bot f2ab9bb73e Localisation updates from https://translatewiki.net.
Change-Id: Ic1a979b761f4bbcfa70c68c6c7dfa128cc4c6aa4
2014-09-23 22:04:15 +02:00
Translation updater bot 58fa79b926 Localisation updates from https://translatewiki.net.
Change-Id: I1af181524a246d188b190836b185e5b0b2c92441
2014-09-22 21:48:26 +02:00
jenkins-bot beb6691a24 Merge "Don't escape the delete character" 2014-09-22 13:35:28 +00:00
Jackmcbarn 634f75f53e Don't escape the delete character
Escaping the delete character breaks strip markers, so don't do it.

Bug: 68011
Change-Id: Ica97c898209c59c0084bf700d891b28603f79dd1
2014-09-21 22:59:52 -04:00
Yuri Astrakhan 66ac157c12 Use single quotes for <pre> (easier to read)
Change-Id: Ib666f56471fc8ea7dac36367c962788d1a304100
2014-09-21 22:51:46 -04:00
Translation updater bot a3a31f2fa1 Localisation updates from https://translatewiki.net.
Change-Id: I012a3a0a43b494171f0ff31cd253600e0bd48e7d
2014-09-21 21:59:37 +02:00
Translation updater bot 8feaaacffb Localisation updates from https://translatewiki.net.
Change-Id: I3e0001b83d88f7749d9b9d1edb7fb42bff8256d8
2014-09-20 21:43:12 +02:00
Translation updater bot 8995dd71aa Localisation updates from https://translatewiki.net.
Change-Id: I7433cfef80aa2f5116aebaaebd677777d72e5b0c
2014-09-19 22:06:58 +02:00
Jackmcbarn c5959b56e7 Display the full error message in wikitext
Instead of just displaying "Script error" in wikitext, display the actual
error string. Currently, many users don't see meaningful error messages
generated by modules, and instead just assume that "Script error" means
the module itself has a bug.

Bug: 71038
Change-Id: Ie5358049975352e0fef92088a06b97ad94717000
2014-09-19 12:11:38 +00:00
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 &nbsp; instead of &#nbsp;" 2014-09-08 20:37:05 +00:00
Jackmcbarn f5894a6a9f Output &nbsp; 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