Commit graph

3807 commits

Author SHA1 Message Date
Amir E. Aharoni
0774ee393e Add a preposition for clarity
Change-Id: I6a3e6b8e9d601d20f3e4c5907bca36d89f46834a
2015-06-25 00:16:38 +03:00
Translation updater bot
f3aa9bc0a7 Localisation updates from https://translatewiki.net.
Change-Id: I8e6299831393b366e9073856650fda2f72520826
2015-06-24 21:39:54 +02:00
Translation updater bot
f31b5d3489 Localisation updates from https://translatewiki.net.
Change-Id: I0f85bdd122e4ce9f3e7b809b35aefc6aa2aacca3
2015-06-23 20:54:09 +02:00
jenkins-bot
ba9f387ecd Merge "API: Change default continuation format for action=query" 2015-06-23 18:40:09 +00:00
jenkins-bot
f6d42e3e4f Merge "Restore namespace-number keys in APIQuerySiteinfo siprop=namespaces" 2015-06-22 19:08:25 +00:00
Translation updater bot
c5a445f9b7 Localisation updates from https://translatewiki.net.
Change-Id: I414ed14d3d4e5a06c093eccd27ef73516239ac75
2015-06-22 20:52:00 +02:00
Translation updater bot
cd618c1bfd Localisation updates from https://translatewiki.net.
Change-Id: I430a6c78fac98611b4a6c31b0a75ec42afeade41
2015-06-21 19:27:55 +02:00
This, that and the other
f0d6c2bf9f Restore namespace-number keys in APIQuerySiteinfo siprop=namespaces
Per discussion at the task.

Bug: T102645
Change-Id: Ic40f7fa3f5612b3d994cc01bcd0929545576041d
2015-06-20 22:24:31 +10:00
Brad Jorsch
9c7385b8ad API: Change default continuation format for action=query
The new format is much easier to use correctly, and should therefore be
the default. The old format is maintained for clients that need the
additional flexibility.

Bug: T96858
Change-Id: I984e63581f4ef23ccada916b6d45131d1fb5e001
2015-06-19 15:13:21 -04:00
umherirrender
70f3afd548 Remove unneeded empty lines at begin of if/else/foreach body
An if body must not begin with an empty line

Change-Id: I62b058be337fcc85a120fcd3dadce564db59a271
2015-06-19 20:05:45 +02:00
Translation updater bot
f371574b79 Localisation updates from https://translatewiki.net.
Change-Id: Ic0490a91badd0a39dfa93d0c51f7417a90e3e845
2015-06-18 20:14:01 +02:00
jenkins-bot
0538ebfd24 Merge "Fixed spacing" 2015-06-17 21:40:11 +00:00
umherirrender
d8821f2b0b Fixed spacing
- Removed space after casts
- Removed spaces in array index
- Added spaces around string concat
- Added space after words: switch, foreach
- else if -> elseif
- Removed parentheses around require_once, because it is not a function
- Added newline at end of file
- Removed double spaces
- Added spaces around operations
- Removed repeated newlines

Bug: T102609
Change-Id: Ib860222b24f8ad8e9062cd4dc42ec88dc63fb49e
2015-06-17 20:22:32 +00:00
Alex Monk
78da7f1637 API: Give block details along with errors
Bug: T95072
Change-Id: I295d74d5f33e6dd1072a1e85710a02597a46e14d
2015-06-17 20:40:14 +01:00
Translation updater bot
f3199e318c Merge "Localisation updates from https://translatewiki.net." 2015-06-16 20:15:18 +00:00
jenkins-bot
242aac76e5 Merge "API: Add some BCarray into ApiQuerySiteinfo" 2015-06-16 20:07:14 +00:00
Translation updater bot
eefb14d86d Localisation updates from https://translatewiki.net.
Change-Id: I8c1f493e82e411960f6743e77151fbee23c7342c
2015-06-16 22:04:00 +02:00
Vivek Ghaisas
9f5b6f5aeb Fix whitespace issues around parentheses
Fix issues found by MediaWiki.WhiteSpace.SpaceyParenthesis sniff.

Bug: T102617
Change-Id: Iec7f71e64081659fba373ec20d9d2006306a98f4
2015-06-16 22:14:02 +03:00
Brad Jorsch
295d35a9d4 API: Add some BCarray into ApiQuerySiteinfo
The main change is that siprop=namespaces will output an array instead
of a numerically-keyed object with formatversion=2.

Various other properties also got the same treatment, but in those cases
the intention was always array and possible non-array output was due to
array_unique or odd indexes in config variables.

Bug: T102645
Change-Id: I486131ac0d6763c3fe40fa45bcee472fe1b46fd6
2015-06-16 12:55:11 -04:00
Translation updater bot
6185f50467 Localisation updates from https://translatewiki.net.
Change-Id: I85d0a4d444cf082e3e3fa51be190ee3248597d32
2015-06-15 22:18:24 +02:00
Translation updater bot
659f42c257 Localisation updates from https://translatewiki.net.
Change-Id: Iaddc25ac27e8fa35a69b8751ae9890adf31fb101
2015-06-14 20:44:16 +02:00
Translation updater bot
f814f15d43 Localisation updates from https://translatewiki.net.
Change-Id: I47268e9b17dfaa6b274ef28577b3a3e717fa486b
2015-06-13 22:06:44 +02:00
jenkins-bot
a77c09c03b Merge "ApiQueryRevisions: Remove bogus query optimization" 2015-06-13 01:08:48 +00:00
jenkins-bot
848794bd57 Merge "Fix rel="copyright" for ApiHelp" 2015-06-13 00:08:48 +00:00
Ricordisamoa
f3874a4a91 Fix rel="copyright" for ApiHelp
Bug: T94038
Bug: T93995
Change-Id: I06e9bb6797c4e4ee00e5d72eda1e273800b2c7f4
2015-06-13 01:53:40 +02:00
Translation updater bot
d6539126f6 Localisation updates from https://translatewiki.net.
Change-Id: I5cc62b447fa6116ba6bab21556e4a0abc0d8738c
2015-06-12 21:30:42 +02:00
jenkins-bot
1716c357af Merge "Use mediawiki/at-ease library for suppressing warnings" 2015-06-11 18:59:11 +00:00
Kunal Mehta
f6e5079a69 Use mediawiki/at-ease library for suppressing warnings
wfSuppressWarnings() and wfRestoreWarnings() were split out into a
separate library. All usages in core were replaced with the new
functions, and the wf* global functions are marked as deprecated.

Additionally, some uses of @ were replaced due to composer's autoloader
being loaded even earlier.

Ie1234f8c12693408de9b94bf6f84480a90bd4f8e adds the library to
mediawiki/vendor.

Bug: T100923
Change-Id: I5c35079a0a656180852be0ae6b1262d40f6534c4
2015-06-11 18:49:29 +00:00
Translation updater bot
0b4bc73ee9 Localisation updates from https://translatewiki.net.
Change-Id: Ifee61df93c4c0ceaf8c410e11429ec41d953dd35
2015-06-11 20:45:08 +02:00
Translation updater bot
f0d998454b Localisation updates from https://translatewiki.net.
Change-Id: I699540faabd831a56e46973cf0849dde7c8383e8
2015-06-10 22:22:34 +02:00
jenkins-bot
1eb99044c3 Merge "API: Add api-format-prettyprint-header-only-html" 2015-06-10 17:49:40 +00:00
Translation updater bot
c560956b46 Localisation updates from https://translatewiki.net.
Change-Id: Icfa21b09f24744c22245a540daa568a846592786
2015-06-09 22:11:11 +02:00
umherirrender
da0fb51172 API: Add api-format-prettyprint-header-only-html
Setting format=rawfm suggest to set format=raw ("To see the non-HTML
representation of the RAW format, set format=raw.") which does not
exists.
Add a new message for this case which does not contains the hint.

Change-Id: I40fe0b6e52dc0c70b07b368a3eace430e0c8f68c
2015-06-09 19:30:23 +02:00
jenkins-bot
07a8fc1b96 Merge "Consistent spacing after colon in apihelp" 2015-06-09 14:07:13 +00:00
Kevin Israel
4485856913 api/i18n: Fix a couple typos
Change-Id: I5990bd9e92b0ffb592ec7c3eb80280a2d3e2f19f
2015-06-09 08:33:36 -04:00
Amir E. Aharoni
4ff63a6d99 Consistent spacing after colon in apihelp
Change-Id: Ic85554b29f78f1d26878879b9a408bbcbc702d8c
2015-06-09 09:17:54 +03:00
S Page
333357d5cf Improve the srsearch API param doc
Mention that it may be a way to invoke fancy search features.
Message-only change.

Change-Id: I6df02b53612f7c55f69a6bcad407a3a28a07bd2b
2015-06-08 18:21:03 -07:00
Translation updater bot
b6315c54c7 Localisation updates from https://translatewiki.net.
Change-Id: Ib07fd19243eb0bca5bd7cb9553f20853d05135ac
2015-06-08 21:23:10 +02:00
Translation updater bot
ba4b7ca05c Localisation updates from https://translatewiki.net.
Change-Id: Ie3ce821ae62fad2938416276ed9a92448731eb39
2015-06-07 21:41:03 +02:00
Translation updater bot
e302fc5b66 Localisation updates from https://translatewiki.net.
Change-Id: Ia5cb16ef86a58a1a39c0856c0261c3801363563b
2015-06-06 21:25:55 +02:00
Translation updater bot
4f74c7871f Localisation updates from https://translatewiki.net.
Change-Id: Ie564be94e20109b4972a5392f843ec3fc75658a5
2015-06-05 19:49:22 +02:00
jenkins-bot
7de7f9fc8e Merge "Expose RL modules and js config vars in action=expandtemplates" 2015-06-05 16:16:46 +00:00
Marc Ordinas i Llopis
8929182a67 Expose RL modules and js config vars in action=expandtemplates
Adds the 'modules', 'jsconfigvars', and 'encodedjsconfigvars' props
to action=expandtemplates, that output the modules and Javascript
configuration variables added to ResourceLoader by extensions and
parser functions, in the same way action=parse does.

This is needed by Parsoid to correctly include all modules used by
parser functions.

Based on I5c3ccb25385e57633639bb0c7e6f562eb58b05a2 by @Jackmcbarn.

Bug: T69540
Change-Id: Iaf58c66c987a318c0dd1ee2b81774106c40e7561
2015-06-05 09:04:47 -07:00
jenkins-bot
f968187c10 Merge "WebResponse: Implement statusHeader() using the new HttpStatus::header()" 2015-06-04 20:24:12 +00:00
Translation updater bot
70b57f5033 Localisation updates from https://translatewiki.net.
Change-Id: Ia78d394ebff2c701442d32f63c1936d1139200c5
2015-06-04 21:14:12 +02:00
Timo Tijhof
f57b6af45b WebResponse: Implement statusHeader() using the new HttpStatus::header()
* Convert existing use of WebResponse::header() for HTTP status headers
  to use this new statusHeader() method.

* Extend unit test forFauxResponse.

I'm not calling HttpStatus::header directly in code. We keep the abstraction
layer of WebResponse so that responses can continue to be mocked/fauxed without
affecting the outer HTTP response.

Change-Id: I8a536e16659fa88b54cffa1457efb889efa5fcd6
2015-06-04 02:27:30 +00:00
Translation updater bot
3b754fcb8e Localisation updates from https://translatewiki.net.
Change-Id: I24e09368cdcdb0b0d7517e5219098fb246ad525a
2015-06-03 21:47:14 +02:00
Aaron Schulz
5399fba68b Use less fuzzy User::getDBTouched() in ApiStashEdit::getStashKey()
* The getTouched() value can bump more often or vary in DCs

Change-Id: Idffa22c9dde7c7950943b104ed61f5779636b7e7
2015-06-02 20:31:14 +00:00
S Page
51ec19ebb3 Improve doc of maxage and s-maxage API parameters
They set HTTP cache control headers.  i18-only change.

Change-Id: I9eefdd51d6937388326ceb7b6baa72288221c2f7
2015-06-02 00:52:18 -07:00
Translation updater bot
3d3fa6dbb8 Localisation updates from https://translatewiki.net.
Change-Id: I491182176e3357ed36de4856e20af71d735dcd27
2015-06-01 22:08:37 +02:00