Commit graph

69328 commits

Author SHA1 Message Date
jenkins-bot
e208cf8030 Merge "Unify handling of *-message(s) settings in HTMLForm" 2016-04-01 14:48:19 +00:00
jenkins-bot
8332550505 Merge "Fix Session::getToken phpdoc" 2016-04-01 14:17:03 +00:00
jenkins-bot
cd6e6c40de Merge "Fix StatusValue phpdoc" 2016-04-01 14:16:24 +00:00
jenkins-bot
c68fcabfb8 Merge "Allow setting HTMLForm name" 2016-04-01 14:16:20 +00:00
jenkins-bot
3bb9384aee Merge "Add flag to HTMLTextField to not persist submitted data" 2016-04-01 14:16:16 +00:00
jenkins-bot
2c9f1db649 Merge "Use default value instead of submitted value in HTMLForm buttons" 2016-04-01 14:16:12 +00:00
Gergő Tisza
8dc5e1857d Unify handling of *-message(s) settings in HTMLForm
*-message(s) settings were documented as message key strings or arrays
of message key strings, but some actually accepted [key, params...]
arrays as well. They did not accept Message objects, which would be
the cleanest and most flexible method of message passing.

The patch adds a new method to process these settings (which accepts
a messages key, a [key, params...] array or a Message object), and
makes all *-message(s) usage call that.

Change-Id: Ida647973a58bea83fdbd53335e63b5a8615c16e4
2016-04-01 17:07:14 +03:00
jenkins-bot
65fe098dac Merge "Fix missing variable in HTMLFormField exceptions" 2016-04-01 13:49:40 +00:00
Gergő Tisza
30d4b1d935 Fix Session::getToken phpdoc
Change-Id: I332c623b08bbc980494c9ba01da77bad5c205038
2016-04-01 15:46:11 +03:00
Gergő Tisza
949641e36e Fix StatusValue phpdoc
Change-Id: Ie30ebf9bd89c4e2594e806a1b52f5716a32e11ec
2016-04-01 15:44:10 +03:00
Gergő Tisza
eed7a00166 Allow setting HTMLForm name
Change-Id: I85f5492e0b99a5661dbed9814a0e3f3b9bc63d32
2016-04-01 15:22:47 +03:00
Gergő Tisza
563830198a Fix missing variable in HTMLFormField exceptions
Change-Id: Ie61f170e9117dde7ece05b04573a3c4902b19e56
2016-04-01 15:15:49 +03:00
Gergő Tisza
da1e91e842 Add flag to HTMLTextField to not persist submitted data
Sometimes the submitted text is not expected to show up as default
when the form is redisplayed after an error; password fields are
the obvious example for this, but in some cases (e.g. two-factor
token) it is useful for a normal text field to act like that as well.

The patch adds a new 'persistent' flag to HTMLTextField, which
defaults to false for passwords and true otherwise.

Change-Id: If0a52f61aa061bbb55bfdc76321ace7d3eaed934
2016-04-01 15:14:58 +03:00
Gergő Tisza
1705c6f907 Use default value instead of submitted value in HTMLForm buttons
In some exotic use cases where the form is rendered straight from
a successful submit this prevents unexpected button text changes.

Change-Id: I61619b6222d9fb29c63ce7c1f3ceff512143c4f7
2016-04-01 15:14:36 +03:00
jenkins-bot
4e84593702 Merge "Add phpdoc and @since to SpecialUserrights::makeGroupNameList" 2016-04-01 11:59:31 +00:00
jenkins-bot
6fa889309d Merge "UserrightsPage::makeGroupNameListForLog() was removed" 2016-04-01 11:47:19 +00:00
addshore
609827a204 Add phpdoc and @since to SpecialUserrights::makeGroupNameList
Change-Id: I015a851d9fa9649ec79386071fcab2c4589f88ad
2016-04-01 14:28:42 +03:00
Siebrand Mazeland
018e13a6c9 UserrightsPage::makeGroupNameListForLog() was removed
Deprecated since 1.21. Use in Gerrit extensions was replaced.

Bug: T122754
Depends-on: If9a2764c5c15be9c07d066a52543c4c9d97e0f35
Change-Id: If45eafca7ea332475eb864f04665d0a0bf1603d1
2016-04-01 11:00:39 +00:00
jenkins-bot
4de8aca50b Merge "UploadBase: Remove debug logging for T64241" 2016-04-01 09:39:34 +00:00
jenkins-bot
6c66fd6523 Merge "UploadBase: Replace 'emptyfile' warning code by 'empty-file'" 2016-04-01 08:59:25 +00:00
Translation updater bot
e97d3c7478 Localisation updates from https://translatewiki.net.
Change-Id: I5b6a5a944e62e3bb64fd1fdbb3fb654bd0726285
2016-03-31 21:54:54 +02:00
jenkins-bot
568ce1af50 Merge "Don't emit 404 status code on Special:Redirect" 2016-03-31 16:26:11 +00:00
Bartosz Dziewoński
ed6ddf7410 UploadBase: Replace 'emptyfile' warning code by 'empty-file'
'empty-file' is already used elsewhere.

Bug: T130484
Change-Id: I593a9efeb20e301b289b47ff5cb831f334250a2d
2016-03-31 13:46:26 +00:00
jenkins-bot
75185ec3da Merge "Add 'Greek extended' group to special characters" 2016-03-31 13:29:46 +00:00
jenkins-bot
f9f946776f Merge "Preferences: Add autocomplete="off" to preferences form" 2016-03-31 11:03:27 +00:00
Florian
97fc1ad555 Don't emit 404 status code on Special:Redirect
If the special page is opened without any value or redirect type,
it shouldn't emit a 404 status code, as the page exists and it should
be indexable.

With this change, Special:Redirect only emits a 404 status code, when
the value was not find for the redirect type.

Bug: T131328
Change-Id: I578b15058aed77b5f4fb296db862a6e534c0888e
2016-03-31 12:57:50 +02:00
Aaron Schulz
39c4d09727 Time POST requests to API write modules
This lets us capture some basic endpoint timing data that is
lacking now, such as upload API call time.

Change-Id: If0627e2d78d82b22ed6bdaaa0fa7fe5f20ef50b1
2016-03-31 10:05:07 +00:00
jenkins-bot
46e3227562 Merge "refreshImageMetadata: Allow filtering by 'img_media_type' too" 2016-03-31 09:57:44 +00:00
jenkins-bot
ba3b9b9ccb Merge "Update grunt-banana-checker to 0.5.0" 2016-03-31 06:05:28 +00:00
jenkins-bot
39ff927539 Merge "filerepo: Mark some internal LocalFile methods private" 2016-03-31 01:00:24 +00:00
jenkins-bot
44f147e9f6 Merge "Whitespace cleanups" 2016-03-31 00:52:39 +00:00
Aaron Schulz
7889d3f150 filerepo: Mark some internal LocalFile methods private
Change-Id: I1c9ab1e1460b5c66e8a1dbdb387f80004eaba994
2016-03-31 00:45:44 +00:00
jenkins-bot
691bd629ee Merge "Allow templates in ResourceModules to be array in extension registration" 2016-03-30 22:21:27 +00:00
Reedy
83fb19cb13 Swap the rest of array() -> []
Change-Id: I76a7259ed952a0673a1941f08b39b545211fba07
2016-03-30 22:04:58 +00:00
Paladox
0c471ab36c Update grunt-banana-checker to 0.5.0
This fixes a json crash according to release notes at
https://github.com/wikimedia/grunt-banana-checker/releases/tag/v0.5.0

Change-Id: I7cb37b3f1289b8b91bd98d770ebe58e4c3c6aae5
2016-03-30 22:32:16 +01:00
Translation updater bot
9496297a0e Localisation updates from https://translatewiki.net.
Change-Id: I4768f539d408562cd0b37e083a0500a99c7c66a2
2016-03-30 22:01:05 +02:00
jenkins-bot
154f1747db Merge "mediawiki.requestIdleCallback: Remove unused jQuery parameter" 2016-03-30 14:48:03 +00:00
jenkins-bot
2379efaad6 Merge "Fix accidential variable overriding in manualWordsTable" 2016-03-30 07:55:18 +00:00
jenkins-bot
2e5bd72013 Merge "ApiSandbox: Work around mw.Api treating an empty response as failure" 2016-03-29 22:40:20 +00:00
jenkins-bot
a00cef7d9f Merge "Avoid double-rendering on late exceptions" 2016-03-29 22:31:00 +00:00
Translation updater bot
a8e00b6fe6 Localisation updates from https://translatewiki.net.
Change-Id: I807d9f22094274e39b0d9e524bd58bc9f46e5234
2016-03-29 22:08:24 +02:00
Bartosz Dziewoński
ed3b46d259 refreshImageMetadata: Allow filtering by 'img_media_type' too
Unlike 'img_major_mime' and 'img_minor_mime', this shouldn't be
"inefficient", since there's an index on it.

Bug: T131157
Change-Id: I4985cade41c23ef68f5caf276d4934cf24de2bb6
2016-03-29 18:11:42 +02:00
Brad Jorsch
a299ac0547 ApiSandbox: Work around mw.Api treating an empty response as failure
We use a 'then' function to turn the pseudo-failure back into a success.

This also adjusts mw.Api to pass the actual result and jqXHR to the
failure function for non-HTTP errors. Sadly the existing parameters
passed on failure are something of a big mess, so this isn't as nice as
it might otherwise be to preserve compatibility.

Bug: T131129
Change-Id: Ic5da24edeac6285fbce0785f0789dddcd2dc15a9
2016-03-29 10:09:14 -04:00
Thiemo Mättig
6906de45c1 Fix @param and @return types on all PPFrame::getArgument methods
This is about template parameters. They can be indexed by position (int) or
name (string). The returned value is always a string, or false (bool) on
failure.

Change-Id: I565210ad485505281246ef2bb3086a675b905976
2016-03-29 06:12:18 +00:00
Fomafix
7489a3e8f1 Preferences: Add autocomplete="off" to preferences form
This change adds a new method setAutocomplete to the class HTMLForm.
This method allows to set the HTML attribute autocomplete for the form.
This change uses this method to set autocomplete="off" for the preferences form.

Without autocomplete="off" the selections in the preferences get cached in
the browser. This can lead to wrong selected options when the settings get
changed on an other way, for example via API.

Bug: T131047
Change-Id: I2920383b5b8cfca3f1d546315f202985edf417d8
2016-03-29 04:49:20 +00:00
Bartosz Dziewoński
25175703cb UploadBase: Remove debug logging for T64241
Added in 0fb104497c, no longer needed
after the bug was resolved.

Change-Id: I2771a4057f8109701f2da830d8a17c23d03f2fa2
2016-03-28 23:19:29 +02:00
Translation updater bot
00878f6f73 Merge "Localisation updates from https://translatewiki.net." 2016-03-28 19:54:20 +00:00
jenkins-bot
e2e840fd10 Merge "Use ::class in place of string constants" 2016-03-28 19:52:56 +00:00
Translation updater bot
cd2b282b79 Localisation updates from https://translatewiki.net.
Change-Id: I2b5d9392619b4eec5a266f9828ee4a1f09579488
2016-03-28 21:51:27 +02:00
Brad Jorsch
6c0abf937a Use ::class in place of string constants
This takes advantage of namespacing, and avoids having
double-backslashes all over the place.

Change-Id: I450fe4e9b1c4cf4e24fced3932fe796cbbadf3a3
2016-03-28 14:53:45 -04:00