lhc/web/wiklou.git
7 years agoMerge "mediawiki.language: fix convertNumber( ..., true )"
jenkins-bot [Wed, 30 Nov 2016 19:04:48 +0000 (19:04 +0000)]
Merge "mediawiki.language: fix convertNumber( ..., true )"

7 years agoMerge "Update OOjs UI to v0.18.1"
jenkins-bot [Wed, 30 Nov 2016 18:43:25 +0000 (18:43 +0000)]
Merge "Update OOjs UI to v0.18.1"

7 years agoMerge "Add DB ConnectionManagers"
jenkins-bot [Wed, 30 Nov 2016 18:43:21 +0000 (18:43 +0000)]
Merge "Add DB ConnectionManagers"

7 years agoMerge "SpecialUserrights: Make new fetchUser() parameter optional"
jenkins-bot [Wed, 30 Nov 2016 18:27:07 +0000 (18:27 +0000)]
Merge "SpecialUserrights: Make new fetchUser() parameter optional"

7 years agoSpecialUserrights: Make new fetchUser() parameter optional
Bartosz Dziewoński [Wed, 30 Nov 2016 18:04:45 +0000 (19:04 +0100)]
SpecialUserrights: Make new fetchUser() parameter optional

This in, unfortunately, a public API, apparently.
Follow-up to d87a4eaa19aad80e109307eb0088fd6a25dd5f51.

Bug: T151961
Change-Id: Ia0e583a5cbb9ed143bf5dff9b513b76ca2790d72

7 years agoMerge "Fix MediaTransformError message handling"
jenkins-bot [Wed, 30 Nov 2016 17:00:54 +0000 (17:00 +0000)]
Merge "Fix MediaTransformError message handling"

7 years agoMerge "Prevent login-only local password provider from removing passwords"
jenkins-bot [Wed, 30 Nov 2016 16:39:12 +0000 (16:39 +0000)]
Merge "Prevent login-only local password provider from removing passwords"

7 years agoFix MediaTransformError message handling
Brad Jorsch [Tue, 1 Nov 2016 19:08:38 +0000 (15:08 -0400)]
Fix MediaTransformError message handling

Give access to the raw Message instead of only to the HTML or text in
the RequestContext language.

Pass Message objects instead of strings from calling ->text() as the
parameters of Messages so if the outer Message's language is changed
things get parsed sensibly.

Change-Id: Ibd6c1217b6fed839c888b66e02900f8e21ed3e6b

7 years agoAdd Message::listParam()
Brad Jorsch [Wed, 2 Nov 2016 16:53:19 +0000 (12:53 -0400)]
Add Message::listParam()

This allows for passing a list of values that will be turned into a list
in the context of the language for which the Message is being processed.

For example, currently you'd have to do

 $msg = new Message( 'something', [ $language->commaList( $list ) ] );

which isn't going to give correct results if the message is later
changed to a different language with a different value for
'comma-separator'.

Now, you can do this instead

 $msg = new Message( 'something', [ Message::listParam( $list, 'comma' ) ] );

and it will be listified properly no matter what language is later used to
parse $msg.

Change-Id: I66868c61832260870449998fef14c842f17753ee

7 years agoMerge "Added warning for improper ending of a token"
jenkins-bot [Wed, 30 Nov 2016 14:43:04 +0000 (14:43 +0000)]
Merge "Added warning for improper ending of a token"

7 years agoMerge "Accept 'OK' status results from search engine"
jenkins-bot [Wed, 30 Nov 2016 13:59:36 +0000 (13:59 +0000)]
Merge "Accept 'OK' status results from search engine"

7 years agomediawiki.language: fix convertNumber( ..., true )
Niklas Laxström [Wed, 30 Nov 2016 08:35:20 +0000 (09:35 +0100)]
mediawiki.language: fix convertNumber( ..., true )

It was not handling separator unformatting.

In mediawiki.jqueryMsg.test.js fix broken test case:
* Hindi does not use comma as decimal separator!
* The number was not formatted as it would be by the
  formatting code. By definition back-conversion is
  only defined for input that we generate. For other
  input the output is undefined. There are other tests
  with same issue, but I did not touch them now.

Bug: T151198
Change-Id: Icc9bc09675151645055c7e7f706472a15cc81b0f

7 years agoAdd DB ConnectionManagers
addshore [Mon, 21 Nov 2016 13:26:07 +0000 (13:26 +0000)]
Add DB ConnectionManagers

This moves and refactors the ConsistentReadConnectionManager
from Wikibase into the core rdbms lib.
The refactoring also creates a generic ConnectionManager.

This relates to Iff20a22f9f2bc7ceefd6defc0ed9a494a6fe62c0
which introduced a DB factory / connection manager in
an extension revealing the need for this in multiple places.

Change-Id: I0c58e15aed5bed88323d18cb95e5008f8d3381c5

7 years agoMerge "Replace Linker::link() with LinkRenderer in some special pages"
jenkins-bot [Wed, 30 Nov 2016 10:04:09 +0000 (10:04 +0000)]
Merge "Replace Linker::link() with LinkRenderer in some special pages"

7 years agoReplace Linker::link() with LinkRenderer in some special pages
MtDu [Wed, 30 Nov 2016 00:05:22 +0000 (18:05 -0600)]
Replace Linker::link() with LinkRenderer in some special pages

* SpecialAllPages
* SpecialAncientpage
* SpecialBlock
* SpecialBrokenRedirects
* SpecialDoubleRedirects

Bug: T149346
Change-Id: Ib9997ec29b5c0079acb79dc2772196b38665145d

7 years agoMessageCache: some inline comments
Andrew Green [Mon, 17 Oct 2016 15:00:47 +0000 (10:00 -0500)]
MessageCache: some inline comments

Change-Id: I42427eef73d86c1a2e99dfa22b5dae159542e243

7 years agoAdded warning for improper ending of a token
georggi [Mon, 28 Nov 2016 20:22:56 +0000 (22:22 +0200)]
Added warning for improper ending of a token

Added warning if token ends with Token::SUFFIX by comparing result of substr to Token::SUFFIX.
Simplified Token class calls.

Bug: T122280
Change-Id: Id405dcc7b5e4d28995edf334aa6e183efdb749de

7 years agoqunit: Don't assume synchronous Deferred.resolve
Timo Tijhof [Wed, 23 Nov 2016 17:53:28 +0000 (09:53 -0800)]
qunit: Don't assume synchronous Deferred.resolve

* mw.loader.test: Most test did this correctly already by returning
  a Promise to QUnit.test, or by using assert.async().
  However two tests did not.

* mediawiki.jqueryMsg.test: Previously the async() handles were
  obtained within the task execution loop. Before jQuery 3.0,
  simple .then() operations when they are already resolved happen
  synchronously, so the current handle was resolved and the next
  handle obtained in the same go and QUnit never saw the state
  as having no unresolved async handles.

  With jQuery 3.0 the test fails because QUnit would end the test
  after the first iteration.

  Fix by simply obtaining all the async() handles when creating the
  list of tasks, instead of within the individual task execution.
  This way they're all reserved and they'll count down as we go.

* mediawiki.api.test: Consistently use 'respondImmediately' for
  the tests that were missing it, and return promise to QUnit.test()

  Also update hardcoded API urls that encoded space as '+', which may
  now be encoded as '%20'.

Bug: T124742
Change-Id: If7ee1c6025be70fecc0a93d4ac155da4db6571ab

7 years agoMerge "mediawiki.api: Fix getToken() incompat with jQuery 3.0"
jenkins-bot [Wed, 30 Nov 2016 02:03:14 +0000 (02:03 +0000)]
Merge "mediawiki.api: Fix getToken() incompat with jQuery 3.0"

7 years agoMerge "Remove $wgSessionsInMemcached"
jenkins-bot [Wed, 30 Nov 2016 00:55:17 +0000 (00:55 +0000)]
Merge "Remove $wgSessionsInMemcached"

7 years agoUpdate OOjs UI to v0.18.1
James D. Forrester [Wed, 30 Nov 2016 00:12:08 +0000 (16:12 -0800)]
Update OOjs UI to v0.18.1

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.1

Change-Id: I5fe3129c9ccf3fa20494b5934bca7487d8d36879

7 years agoRemove $wgSessionsInMemcached
Reedy [Wed, 30 Nov 2016 00:07:19 +0000 (00:07 +0000)]
Remove $wgSessionsInMemcached

Change-Id: Ia2b4d62ea504a3cb04f4c2bec49b16f155c8b0c9

7 years agoMerge "Make protect.php maintenance script not ignore --user and --reason parameters"
jenkins-bot [Wed, 30 Nov 2016 00:05:06 +0000 (00:05 +0000)]
Merge "Make protect.php maintenance script not ignore --user and --reason parameters"

7 years agoAccept 'OK' status results from search engine
Erik Bernhardson [Wed, 9 Nov 2016 00:41:11 +0000 (16:41 -0800)]
Accept 'OK' status results from search engine

Historically code that talks to the SearchEngine has been treating
anything other than a 'Good' result, such as results but with a warning
(perhaps the query timed out and only gave partial results) as a
complete failure. Adjust the handling to report results from an 'OK'
status response while attaching any warnings to the api response, or
in a notiable red box on Special:Search.

Bug: T134157
Change-Id: Ic5e0db727790f4fd189caa54ea5f01672d6a8ea4

7 years agoMerge "Use isDisabled() instead of isBlank() in getGrantName in User.php"
jenkins-bot [Tue, 29 Nov 2016 23:03:55 +0000 (23:03 +0000)]
Merge "Use isDisabled() instead of isBlank() in getGrantName in User.php"

7 years agoMerge "Allow API endpoint customization for mw.widgets.TitleWidget"
jenkins-bot [Tue, 29 Nov 2016 22:57:48 +0000 (22:57 +0000)]
Merge "Allow API endpoint customization for mw.widgets.TitleWidget"

7 years agoMerge "Rewrite logstash key conflict warning from I6677dbf6"
jenkins-bot [Tue, 29 Nov 2016 22:53:10 +0000 (22:53 +0000)]
Merge "Rewrite logstash key conflict warning from I6677dbf6"

7 years agoMerge "List grant codenames next to grants on Special:ListGrants"
jenkins-bot [Tue, 29 Nov 2016 22:49:21 +0000 (22:49 +0000)]
Merge "List grant codenames next to grants on Special:ListGrants"

7 years agoUse isDisabled() instead of isBlank() in getGrantName in User.php
Justin Du [Tue, 29 Nov 2016 22:36:21 +0000 (16:36 -0600)]
Use isDisabled() instead of isBlank() in getGrantName in User.php

Bug: T151956
Change-Id: Ic23c75b784c725f8f73eb1cf98d2bdb3763ab09d

7 years agoList grant codenames next to grants on Special:ListGrants
MtDu [Mon, 28 Nov 2016 23:46:44 +0000 (17:46 -0600)]
List grant codenames next to grants on Special:ListGrants

Bug: T145351
Change-Id: Ia07de6269fa6192071aaea5d750362685389001c

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Tue, 29 Nov 2016 20:59:14 +0000 (20:59 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 29 Nov 2016 20:54:08 +0000 (21:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I684af6c0af26bfcc3826be4ab644c131637a7245

7 years agoMerge "mediawiki.UI: Tweak destructive reds for background-independent contrast"
jenkins-bot [Tue, 29 Nov 2016 20:34:39 +0000 (20:34 +0000)]
Merge "mediawiki.UI: Tweak destructive reds for background-independent contrast"

7 years agomediawiki.UI: Tweak destructive reds for background-independent contrast
Amir Sarabadani [Tue, 29 Nov 2016 13:53:22 +0000 (17:23 +0330)]
mediawiki.UI: Tweak destructive reds for background-independent contrast

Reds of color palette have been changed by WMF designers to provide more
contrast on dark and light backgrounds (WCAG 2.0 level AA on black and
white). Among other things this will help with error messages of
coming patches. Following-up I73d336900.

Change-Id: I62a1d1c6bbd52973883789e1fcb9927cccd3f6a6

7 years agoMerge "Serve 400 instead of 500 when invalid thumbnail parameters are requested"
jenkins-bot [Tue, 29 Nov 2016 20:21:58 +0000 (20:21 +0000)]
Merge "Serve 400 instead of 500 when invalid thumbnail parameters are requested"

7 years agoMerge "Bring in MediaSearchWidget from VE"
jenkins-bot [Tue, 29 Nov 2016 20:03:54 +0000 (20:03 +0000)]
Merge "Bring in MediaSearchWidget from VE"

7 years agoAPI: Make action=clearhasmsg require POST
Brad Jorsch [Tue, 29 Nov 2016 16:32:48 +0000 (11:32 -0500)]
API: Make action=clearhasmsg require POST

Bug: T146526
Change-Id: I341b395e532e7bdc7816f0deae8c6e5e8c9e8f3b

7 years agoBring in MediaSearchWidget from VE
Ed Sanders [Thu, 17 Nov 2016 15:32:06 +0000 (15:32 +0000)]
Bring in MediaSearchWidget from VE

Bug: T140166
Change-Id: If53ef7f4b62c7a5d4da565c14dd2a353778694e5

7 years agoMerge "Upgrade QUnit from v1.22.0 to v1.23.1"
jenkins-bot [Tue, 29 Nov 2016 16:21:09 +0000 (16:21 +0000)]
Merge "Upgrade QUnit from v1.22.0 to v1.23.1"

7 years agoMake protect.php maintenance script not ignore --user and --reason parameters
rlot [Tue, 29 Nov 2016 13:38:01 +0000 (14:38 +0100)]
Make protect.php maintenance script not ignore --user and --reason parameters

Google Code-In task

Bug: T89713
Change-Id: If4832fb54011af171a74b0b1a59df207b5209044

7 years agoRewrite logstash key conflict warning from I6677dbf6
Gergő Tisza [Wed, 23 Nov 2016 01:01:07 +0000 (01:01 +0000)]
Rewrite logstash key conflict warning from I6677dbf6

* do not warn if something is overwritten with an identical value
  (happens a lot with 'ip')
* move to LogstashFormatter so we can check for the value
* instead of spamming errors, just add a flag to the logstash data

Bug: T145133
Change-Id: I31caee865cd60c785126478ac75c9aefce78eaaf

7 years agoMerge "Fallback tarantino (roa-tara) to Italian (it)"
jenkins-bot [Tue, 29 Nov 2016 09:42:36 +0000 (09:42 +0000)]
Merge "Fallback tarantino (roa-tara) to Italian (it)"

7 years agoServe 400 instead of 500 when invalid thumbnail parameters are requested
Gilles Dubuc [Thu, 24 Nov 2016 12:14:11 +0000 (13:14 +0100)]
Serve 400 instead of 500 when invalid thumbnail parameters are requested

This was requested because of 0px thumbnail requests, but there are
other cases where parameters are detected as invalid and 400 is
semantically more correct than 500 in that situation.

Bug: T147784
Change-Id: I4d24a93e655f04d8119e77798d5df5a45caaafcf

7 years agoRelease notes about Ukrainian fallback
Amire80 [Tue, 29 Nov 2016 08:43:30 +0000 (10:43 +0200)]
Release notes about Ukrainian fallback

Follow up to
I7c72702524bb75bb939a30b6c8e451ae8f89e906

Bug: T39314
Change-Id: Ie4ba59d2f875b53119ac85b96f12b3ba7f0409aa

7 years agoMerge "Don't fallback from uk to ru"
jenkins-bot [Tue, 29 Nov 2016 08:00:43 +0000 (08:00 +0000)]
Merge "Don't fallback from uk to ru"

7 years agoMerge "Revert "MessageCache invalidation improvements" (temporary)"
jenkins-bot [Tue, 29 Nov 2016 03:31:23 +0000 (03:31 +0000)]
Merge "Revert "MessageCache invalidation improvements" (temporary)"

7 years agoUpgrade QUnit from v1.22.0 to v1.23.1
Timo Tijhof [Tue, 29 Nov 2016 03:17:26 +0000 (19:17 -0800)]
Upgrade QUnit from v1.22.0 to v1.23.1

Source
 https://code.jquery.com/qunit/qunit-1.23.1.js
 https://code.jquery.com/qunit/qunit-1.23.1.css

Changelog
 https://github.com/qunitjs/qunit/blob/1.23.1/History.md

Change-Id: I03b4e1de699ef9f33a8db3dec605c8e32f823a93

7 years agomediawiki.api: Fix getToken() incompat with jQuery 3.0
Timo Tijhof [Wed, 23 Nov 2016 20:13:06 +0000 (12:13 -0800)]
mediawiki.api: Fix getToken() incompat with jQuery 3.0

* getToken()'s fail() handler deletes property from promiseGroup.
  However sometimes this doesn't exist yet for the current api url.
  Move the block that creates this object higher up.

* Deferred.then() used to have an undocumented 'this' context.
  No longer exists in jQuery 3.0, but we weren't supposed to be
  using returning it as-is anyway.
  Return a new Deferred instead, like we do elsewhere.

Bug: T124742
Change-Id: I52c6bb779c5e79161e38a5d0c7c2cb3b458be9ba

7 years agoRevert "MessageCache invalidation improvements" (temporary)
Andrew Green [Tue, 29 Nov 2016 01:06:00 +0000 (19:06 -0600)]
Revert "MessageCache invalidation improvements" (temporary)

This reverts commit 9339a08b72c918d7743a9cb286161adb9399a77b
(Change-Id: Idc337a787171949c4f70186b13d7b65304c9b57f).

This is a temporary revert to prevent the change's inclusion in
wmf/1.29.0-wmf.4. That branch is scheduled to be deployed to WMF wikis
during the first week of the WMF's 2016 year-end fundraiser. Since
CentralNotice relies on MessageCache to fetch fundraising banners,
it is preferable not to deploy changes of any significant complexity in
that system at this time.

The original change should be re-applied at a later date. Sincere
apologies to the change's authors! :)

Change-Id: I8330838bbe03ce6ed38fa2e755b44519211d9d43

7 years agoMerge "populateContentModel: Invalidate content model and revision cache"
jenkins-bot [Tue, 29 Nov 2016 00:53:17 +0000 (00:53 +0000)]
Merge "populateContentModel: Invalidate content model and revision cache"

7 years agopopulateContentModel: Invalidate content model and revision cache
Matthew Flaschen [Thu, 17 Nov 2016 22:51:07 +0000 (17:51 -0500)]
populateContentModel: Invalidate content model and revision cache

The cache is computed from both the default values and the DB.

If someone visits the page when the wrong default value is there,
it will be cached.

When we populate the DB with the correct value (usually in preparation
for changing the namespace default), we need to invalidate the
potentially broken cache.

Change-Id: I995c0d9fdec529a456762571d5406d0bd0d33aed

7 years agoAllow API endpoint customization for mw.widgets.TitleWidget
Santhosh Thottingal [Fri, 25 Nov 2016 07:02:37 +0000 (12:32 +0530)]
Allow API endpoint customization for mw.widgets.TitleWidget

Currently the API is not customizable and always points to
current wiki's api returned by `new mw.Api()`.

This patch allows users to specify their own API object for
querying titles e.g. searching for titles on a different
language Wikipedia when translating pages.

Change-Id: I81811cdd1a0750a8335432eee8f971ab9e0b8ee7

7 years agoBring REL1_28 into HISTORY
Reedy [Mon, 28 Nov 2016 21:20:05 +0000 (21:20 +0000)]
Bring REL1_28 into HISTORY

Remove RELEASE-NOTES-1.28 from master

Change-Id: I553cd5eef5f38d163e6a73fb176b0c561d276bc9

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Mon, 28 Nov 2016 21:06:04 +0000 (21:06 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 28 Nov 2016 21:04:28 +0000 (22:04 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I00993a0d19ffe9054ea307d550ecd83d54be31d7

7 years agoFallback tarantino (roa-tara) to Italian (it)
Nemo bis [Mon, 28 Nov 2016 19:45:29 +0000 (20:45 +0100)]
Fallback tarantino (roa-tara) to Italian (it)

Like all italic languages. All speakers know Italian.
Also discussed at
https://translatewiki.net/wiki/Thread:Portal_talk:Roa-tara/Usare_l%27italiano_quando_non_c%27%C3%A8_traduzione

Change-Id: I6fe82153b28fedba9d443c8a95f9155a299acd54

7 years agoPrevent fatal error if $wgCookieSetOnAutoblock is changed to false
Kaldari [Mon, 28 Nov 2016 19:44:36 +0000 (11:44 -0800)]
Prevent fatal error if $wgCookieSetOnAutoblock is changed to false

... and user still has a block cookie set.

Bug: T151097
Change-Id: I5a2fdc53250f629579428efbed39f6fb1f1531f3

7 years agoMerge "Always preserve uselang in login form"
jenkins-bot [Mon, 28 Nov 2016 17:58:24 +0000 (17:58 +0000)]
Merge "Always preserve uselang in login form"

7 years agoAlways preserve uselang in login form
Gergő Tisza [Fri, 25 Nov 2016 04:08:40 +0000 (04:08 +0000)]
Always preserve uselang in login form

If $wgLoginLanguageSelector is false, we don't show the language
selector; but there's no reason to ignore a uselang URL parameter.

Change-Id: I66c3c2cf50d4071e82bfe736dfe5480686d763f3

7 years agoMerge "Add $linkTrail for Bengali (bn)"
jenkins-bot [Mon, 28 Nov 2016 11:57:39 +0000 (11:57 +0000)]
Merge "Add $linkTrail for Bengali (bn)"

7 years agoAdd $linkTrail for Bengali (bn)
MarcoAurelio [Sun, 27 Nov 2016 12:28:08 +0000 (13:28 +0100)]
Add $linkTrail for Bengali (bn)

Bug: T151111
Change-Id: I3723a10022de0c53a99d7275390e86a2c66c862c

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Sun, 27 Nov 2016 21:08:38 +0000 (21:08 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 27 Nov 2016 21:01:37 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9ae16f820004b74f470a23b1d3d738d7deb348dd

7 years agoMerge "Fallback Livvi-Karelian (olo) to Finnish (fi)"
jenkins-bot [Sun, 27 Nov 2016 14:52:57 +0000 (14:52 +0000)]
Merge "Fallback Livvi-Karelian (olo) to Finnish (fi)"

7 years agoFallback Livvi-Karelian (olo) to Finnish (fi)
MarcoAurelio [Fri, 30 Sep 2016 12:43:36 +0000 (12:43 +0000)]
Fallback Livvi-Karelian (olo) to Finnish (fi)

Bug: T146744
Change-Id: I413425b9389307e3ec4e9a45cc8946d82ed9bdbd

7 years agoAdd a context to ChangeTags::buildTagFilterSelector
amritsreekumar [Sat, 15 Oct 2016 19:15:06 +0000 (00:45 +0530)]
Add a context to ChangeTags::buildTagFilterSelector

A IContextSource is added as parameter to ChangeTags::buildTagFilterSelector static function, which can be used to avoid the globals.

Bug: T105649
Change-Id: I50ca27c75b4807f5e4391648bfd5cac9169517e9

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 25 Nov 2016 21:25:19 +0000 (22:25 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iec63f3890910587e0b332b6489566c7bcf992f5a

7 years agoMerge "SpecialUserrights: Remove incorrect comment"
jenkins-bot [Fri, 25 Nov 2016 19:08:04 +0000 (19:08 +0000)]
Merge "SpecialUserrights: Remove incorrect comment"

7 years agoMerge "Remove broken GENDER support for 'editusergroup'"
jenkins-bot [Fri, 25 Nov 2016 19:08:01 +0000 (19:08 +0000)]
Merge "Remove broken GENDER support for 'editusergroup'"

7 years agoMerge "Allow all users to view Special:UserRights"
jenkins-bot [Fri, 25 Nov 2016 19:05:43 +0000 (19:05 +0000)]
Merge "Allow all users to view Special:UserRights"

7 years agoMerge "HTMLFormFieldCloner: Don't try to validate hidden fields"
jenkins-bot [Fri, 25 Nov 2016 18:59:02 +0000 (18:59 +0000)]
Merge "HTMLFormFieldCloner: Don't try to validate hidden fields"

7 years agoMerge "HTMLDateTimeField: Fix 'placeholder' attribute handling"
jenkins-bot [Fri, 25 Nov 2016 18:58:48 +0000 (18:58 +0000)]
Merge "HTMLDateTimeField: Fix 'placeholder' attribute handling"

7 years agoMerge "HTMLForm: Allow returning Message objects from HTMLFormField::validate()"
jenkins-bot [Fri, 25 Nov 2016 09:11:07 +0000 (09:11 +0000)]
Merge "HTMLForm: Allow returning Message objects from HTMLFormField::validate()"

7 years agoMerge "Better handling of Message objects as Message parameters"
jenkins-bot [Fri, 25 Nov 2016 09:01:13 +0000 (09:01 +0000)]
Merge "Better handling of Message objects as Message parameters"

7 years agoMerge "Change 'rights' to 'groups' on MediaWiki:Savedrights"
jenkins-bot [Fri, 25 Nov 2016 08:57:49 +0000 (08:57 +0000)]
Merge "Change 'rights' to 'groups' on MediaWiki:Savedrights"

7 years agoMerge "Remove unused messages"
jenkins-bot [Fri, 25 Nov 2016 08:55:36 +0000 (08:55 +0000)]
Merge "Remove unused messages"

7 years agoMerge "Introduce separate log action for deleting pages on move"
jenkins-bot [Fri, 25 Nov 2016 02:52:28 +0000 (02:52 +0000)]
Merge "Introduce separate log action for deleting pages on move"

7 years agoMerge "OutputPage::getCategories(): Add a possibility to distinguish "normal" and...
jenkins-bot [Fri, 25 Nov 2016 00:17:04 +0000 (00:17 +0000)]
Merge "OutputPage::getCategories(): Add a possibility to distinguish "normal" and "hidden" categories"

7 years agoOutputPage::getCategories(): Add a possibility to distinguish "normal" and "hidden...
Florian [Fri, 8 Jul 2016 19:11:53 +0000 (21:11 +0200)]
OutputPage::getCategories(): Add a possibility to distinguish "normal" and "hidden" categories

There's currently no way to get, e.g., all categories except the
hidden ones just as text. The OutputPage::getCategories() method
always returns all categories as an array of strings (titles) and
the getCategoryLinks() method returns the result of Linker::link
but with the distinction between "normal" and "hidden" categories.

This change adds a new parameter to OutputPage::getCategories(),
$type, which can be used to define, what categories should be
returned. The default value is "all", which means, that all categories
are returned (the current result of the method). With the value
"normal" and "hidden", the method will return the respective values.

This could be used in I97d7de723fe72da26c7dbde0a559a13704c7099a to
remove the stupid Linker::link() and isset workaround.

Change-Id: Iadda9ae362a21fbee770240234b8f55326219932

7 years agoMerge "parserTests: flag articles creation as internal"
jenkins-bot [Thu, 24 Nov 2016 23:15:45 +0000 (23:15 +0000)]
Merge "parserTests: flag articles creation as internal"

7 years agoMerge "Bypass login page if no user input is required."
jenkins-bot [Thu, 24 Nov 2016 22:59:42 +0000 (22:59 +0000)]
Merge "Bypass login page if no user input is required."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 24 Nov 2016 20:58:35 +0000 (21:58 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iada97380cdfe0985bd19225597d55779094251a1

7 years agoMerge "Get ConfigFactory & MainConfig from MediaWikiServices"
jenkins-bot [Thu, 24 Nov 2016 18:08:36 +0000 (18:08 +0000)]
Merge "Get ConfigFactory & MainConfig from MediaWikiServices"

7 years agoSpecialUserrights: Remove incorrect comment
Bartosz Dziewoński [Wed, 23 Nov 2016 15:37:39 +0000 (16:37 +0100)]
SpecialUserrights: Remove incorrect comment

While this used to be true, it no longer is since we require at least
PHP 5.5, and I don't see how this would improve the code here anyway.

Change-Id: Ica1995f1b2208f2a99696cf0a0010131737d490f

7 years agoRemove broken GENDER support for 'editusergroup'
Bartosz Dziewoński [Wed, 23 Nov 2016 15:21:54 +0000 (16:21 +0100)]
Remove broken GENDER support for 'editusergroup'

This is a label on a button, displayed next to a text field for
the username. So the username is not known when this is displayed.

This undoes some changes from 24db39408e814cf4163df1bfd303aab1963a02c1
and 99c4684f2cea9230328cbb377253307255a474af.

Change-Id: I69daef350ea2184671b9d158dd1ff2d15cad0eb4

7 years agoMerge "Move MimeAnalyzer params to ServiceWiring"
jenkins-bot [Thu, 24 Nov 2016 17:04:37 +0000 (17:04 +0000)]
Merge "Move MimeAnalyzer params to ServiceWiring"

7 years agoHTMLFormFieldCloner: Don't try to validate hidden fields
Bartosz Dziewoński [Thu, 24 Nov 2016 16:42:29 +0000 (17:42 +0100)]
HTMLFormFieldCloner: Don't try to validate hidden fields

Follow-up to 788526c2d1a4a9e32722c0a26b4a5027f00aa9bb.

To test: try to create a SecurePoll of type "Approval vote". Without this
patch, but with I81d04dca6cbb499a15828fd33b01746b68c694da, an invisible
field (only applicable for "Range voting (plurality)") will fail validation.

Change-Id: I37e50799ba1f0e0e64a197818b58444f5b056bf0

7 years agoHTMLDateTimeField: Fix 'placeholder' attribute handling
Bartosz Dziewoński [Thu, 24 Nov 2016 15:13:40 +0000 (16:13 +0100)]
HTMLDateTimeField: Fix 'placeholder' attribute handling

Parent class HTMLTextField handles this specially and we have to match it.

Change-Id: Ibff3caba2a58c2bcbfb342789aae9f0939b7687f

7 years agoparserTests: flag articles creation as internal
Antoine Musso [Thu, 24 Nov 2016 15:09:26 +0000 (16:09 +0100)]
parserTests: flag articles creation as internal

When the parser test suite creates articles, there is no need to check
whether it has been pre parsed in stash edit. That is quite spammy in
the debug log and always a cache miss.

Bypass the cache lookup by passing EDIT_INTERNAL to doEditContent()

Change-Id: I27e212ab1a76ebcf25b383514c9ad8ad0b28383c

7 years agoMerge "Only apply wgDBschema to postgres/mssql"
jenkins-bot [Thu, 24 Nov 2016 02:20:22 +0000 (02:20 +0000)]
Merge "Only apply wgDBschema to postgres/mssql"

7 years agoMerge "RC filter: hidebyothers"
jenkins-bot [Thu, 24 Nov 2016 00:26:04 +0000 (00:26 +0000)]
Merge "RC filter: hidebyothers"

7 years agoMove MimeAnalyzer params to ServiceWiring
addshore [Tue, 22 Nov 2016 23:57:34 +0000 (23:57 +0000)]
Move MimeAnalyzer params to ServiceWiring

Change-Id: Ic3df489cd8f4af2c0de39aaac3140ace107d4bf4

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 23 Nov 2016 21:12:51 +0000 (22:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6d2494c3a9dc792dcb951ec1e5e7ed259a139ace

7 years agoMerge "ApiSandbox: Support 'all' specifiers"
jenkins-bot [Wed, 23 Nov 2016 19:00:27 +0000 (19:00 +0000)]
Merge "ApiSandbox: Support 'all' specifiers"

7 years agoMerge "Add PARAM_ALL setting for multi-option API parameters"
jenkins-bot [Wed, 23 Nov 2016 19:00:23 +0000 (19:00 +0000)]
Merge "Add PARAM_ALL setting for multi-option API parameters"

7 years agoChange 'rights' to 'groups' on MediaWiki:Savedrights
MarcoAurelio [Wed, 23 Nov 2016 17:58:08 +0000 (18:58 +0100)]
Change 'rights' to 'groups' on MediaWiki:Savedrights

Bug: T151458
Change-Id: I1583def2d311355bfc9abc11f43fde9abecb2f67

7 years agoMerge "Add exceptions in mw.Title where mb_strtoupper doesn't match String.toUpperCase"
jenkins-bot [Wed, 23 Nov 2016 17:57:29 +0000 (17:57 +0000)]
Merge "Add exceptions in mw.Title where mb_strtoupper doesn't match String.toUpperCase"

7 years agoAdd exceptions in mw.Title where mb_strtoupper doesn't match String.toUpperCase
Ed Sanders [Fri, 7 Oct 2016 17:14:03 +0000 (13:14 -0400)]
Add exceptions in mw.Title where mb_strtoupper doesn't match String.toUpperCase

Bug: T147646
Bug: T141723
Change-Id: Ic7a3d0cebbf4aec507db195ba8f587cecc1992aa

7 years agoMerge "Use MediaWikiServices::getMainWANObjectCache in ServiceWiring"
jenkins-bot [Wed, 23 Nov 2016 17:29:16 +0000 (17:29 +0000)]
Merge "Use MediaWikiServices::getMainWANObjectCache in ServiceWiring"

7 years agoDon't fallback from uk to ru
Adam Roses Wight [Mon, 23 May 2016 22:17:49 +0000 (15:17 -0700)]
Don't fallback from uk to ru

Bug: T39314
Change-Id: I7c72702524bb75bb939a30b6c8e451ae8f89e906