lhc/web/wiklou.git
8 years agoMerge "Add request error state to ApiBase::logRequest"
jenkins-bot [Mon, 29 Feb 2016 16:49:00 +0000 (16:49 +0000)]
Merge "Add request error state to ApiBase::logRequest"

8 years agoMerge "Update ApiAction logging channel values"
jenkins-bot [Mon, 29 Feb 2016 16:41:08 +0000 (16:41 +0000)]
Merge "Update ApiAction logging channel values"

8 years agoMerge "Remove fix for a 5.3 problem"
jenkins-bot [Mon, 29 Feb 2016 14:46:40 +0000 (14:46 +0000)]
Merge "Remove fix for a 5.3 problem"

8 years agoMerge "Remove useless PHP version comparison from wfDebugBacktrace()"
jenkins-bot [Mon, 29 Feb 2016 14:40:59 +0000 (14:40 +0000)]
Merge "Remove useless PHP version comparison from wfDebugBacktrace()"

8 years agoCleanup Cucumber tags in Selenium tests
Željko Filipin [Fri, 19 Feb 2016 14:08:44 +0000 (15:08 +0100)]
Cleanup Cucumber tags in Selenium tests

Removing no longer used @login tag. We are no longer running tests
using internet explorer or phantomjs, so removing those tags too.

Renamed @clean tag with @vagrant, since it makes more sense and is used
in other repositories.

Bug: T127423
Change-Id: Ib5e0a1600c3df45889e97d5ff52cd0a77a15001f

8 years agoMerge "Improve code suffering from PHP 5.3's lack of support for foo()[]"
jenkins-bot [Mon, 29 Feb 2016 09:53:31 +0000 (09:53 +0000)]
Merge "Improve code suffering from PHP 5.3's lack of support for foo()[]"

8 years agoMerge "Fix case of id on EditPage for label"
jenkins-bot [Mon, 29 Feb 2016 09:40:28 +0000 (09:40 +0000)]
Merge "Fix case of id on EditPage for label"

8 years agoMerge "Add mw-changeslist-(log|ns)-* class to OldChangesList as well"
jenkins-bot [Mon, 29 Feb 2016 08:25:50 +0000 (08:25 +0000)]
Merge "Add mw-changeslist-(log|ns)-* class to OldChangesList as well"

8 years agoOOjs UI: CapsuleItemWidget: Revert regression on remove button in Firefox
James D. Forrester [Sun, 28 Feb 2016 23:59:53 +0000 (15:59 -0800)]
OOjs UI: CapsuleItemWidget: Revert regression on remove button in Firefox

Manual application of changes from up-stream ahead of v0.16.1 release, which
will miss the -wmf.15 cut, given the severity of the issue for Firefox users
and the simplicity of the change. Fix made by VolkerE in Ieac469d.

Bug: T128074
Change-Id: If43b86e27970ae0fe75a654a63f06cc19bcac865

8 years agoGrant 'editcontentmodel' to all sysops by default
Kunal Mehta [Mon, 16 Mar 2015 01:33:09 +0000 (18:33 -0700)]
Grant 'editcontentmodel' to all sysops by default

This is the first step before this userright can be granted to everyone
(or at least 'user').

There were a few issues with granting this permission at all on public
wikis (tracked at T85847) which are now all fixed.

Bug: T85847
Change-Id: Idcaaaaa5cc3fd7c3efca6c57698767689b9a1d09

8 years agoImprove code suffering from PHP 5.3's lack of support for foo()[]
Bartosz Dziewoński [Wed, 17 Feb 2016 19:54:59 +0000 (20:54 +0100)]
Improve code suffering from PHP 5.3's lack of support for foo()[]

I searched for /\$(\S+) = (.+?\(.*?\);)\n.*?\$\1\[/, ignored
everything involving isset(), unset() or array assigments, then
skimmed through the remaining results and changed things where they
made sense. These changes were not automated, so please review them.

Change-Id: Ib37b4c66fc57648470f151ad412210b3629c2538

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 28 Feb 2016 20:26:44 +0000 (21:26 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I5504186079857415cde8051d6433f96604a22109

8 years agoMerge "Special:NewFiles: Explicitly list needed table fields in query"
jenkins-bot [Sun, 28 Feb 2016 20:21:54 +0000 (20:21 +0000)]
Merge "Special:NewFiles: Explicitly list needed table fields in query"

8 years agoMerge "Special:NewFiles: Make 'hidepatrolled' query less slow"
jenkins-bot [Sun, 28 Feb 2016 20:16:26 +0000 (20:16 +0000)]
Merge "Special:NewFiles: Make 'hidepatrolled' query less slow"

8 years agoFix case of id on EditPage for label
umherirrender [Sun, 28 Feb 2016 11:54:14 +0000 (12:54 +0100)]
Fix case of id on EditPage for label

Avoids validation error:
The for attribute of the label element must refer to a non-hidden form
control.

Change-Id: I9501fda9ca1dbff3db530f5d9e0c2504b94b0ff3

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 27 Feb 2016 20:28:00 +0000 (20:28 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoMerge "Remove double emphasis in strings"
jenkins-bot [Sat, 27 Feb 2016 20:23:43 +0000 (20:23 +0000)]
Merge "Remove double emphasis in strings"

8 years agoMerge "Replace wikitext bold and italics with <strong> and <em>"
jenkins-bot [Sat, 27 Feb 2016 20:23:39 +0000 (20:23 +0000)]
Merge "Replace wikitext bold and italics with <strong> and <em>"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 27 Feb 2016 20:21:37 +0000 (21:21 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I17a79c788bb4cb2c4674bb8f82e723d90ef62d29

8 years agoRemove double emphasis in strings
Siebrand Mazeland [Sat, 27 Feb 2016 20:03:16 +0000 (21:03 +0100)]
Remove double emphasis in strings

Change-Id: I03d7511e620fb76fcf090c8b8c399b29a245640b

8 years agoReplace wikitext bold and italics with <strong> and <em>
Siebrand Mazeland [Sat, 27 Feb 2016 19:00:50 +0000 (20:00 +0100)]
Replace wikitext bold and italics with <strong> and <em>

Was done for all of core at some point, but apparently new strings
re-introduced inconsistencies.

Change-Id: I607f779d1c4f0e6ef0b9c2563ac229baee590dcc

8 years agoMerge "installer: Remove obsolete config-no-cache message"
jenkins-bot [Sat, 27 Feb 2016 18:59:57 +0000 (18:59 +0000)]
Merge "installer: Remove obsolete config-no-cache message"

8 years agoFix comment
Florian [Sat, 27 Feb 2016 15:51:38 +0000 (16:51 +0100)]
Fix comment

According to comment on I2c7fc71d19cefaa16a6cc4526af05be9cd32366e
by @Majr.

Change-Id: I743699831554f9e51157a9c9e3405ebc222cdb15

8 years agoRemove useless PHP version comparison from wfDebugBacktrace()
Ricordisamoa [Sat, 27 Feb 2016 04:21:03 +0000 (05:21 +0100)]
Remove useless PHP version comparison from wfDebugBacktrace()

MediaWiki 1.27 only supports PHP 5.5.9 and above, therefore
it is no more necessary to check that the running PHP version
is equal to or greater than 5.4.0.

Change-Id: I819c625e173cbf2a54ef614d742fe01f70be8efc

8 years agoMerge "Use sync writes for replication of 'store' operations"
jenkins-bot [Sat, 27 Feb 2016 00:39:01 +0000 (00:39 +0000)]
Merge "Use sync writes for replication of 'store' operations"

8 years agoUse sync writes for replication of 'store' operations
Aaron Schulz [Fri, 26 Feb 2016 23:55:09 +0000 (15:55 -0800)]
Use sync writes for replication of 'store' operations

The local temporary file might not live long enough to be
copied into storage during post-send.

Bug: T128124
Change-Id: Ifb5260958db008ec8b9f4db90f95a42e5ecaeadc

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 26 Feb 2016 22:42:32 +0000 (22:42 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoMerge "Allow more fine-grained throttling of login attempts"
jenkins-bot [Fri, 26 Feb 2016 22:40:15 +0000 (22:40 +0000)]
Merge "Allow more fine-grained throttling of login attempts"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 26 Feb 2016 22:39:53 +0000 (23:39 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I336f644352738cba31da93b21c8544cf2defb594

8 years agoImprove SessionManager unit test coverage, and fix two namespacing bugs
Brad Jorsch [Fri, 26 Feb 2016 20:02:56 +0000 (15:02 -0500)]
Improve SessionManager unit test coverage, and fix two namespacing bugs

Change-Id: Ie0bcba77625e04ca3e89eb400626f63024c6e1a1

8 years agoMerge "Implement HTMLTitleTextField with suggestions for non-OOUI forms, too"
jenkins-bot [Fri, 26 Feb 2016 20:11:46 +0000 (20:11 +0000)]
Merge "Implement HTMLTitleTextField with suggestions for non-OOUI forms, too"

8 years agoMerge "Consistently use Html class for form generation"
jenkins-bot [Fri, 26 Feb 2016 19:52:27 +0000 (19:52 +0000)]
Merge "Consistently use Html class for form generation"

8 years agoMerge "Prevent duplicate memcached lookups for user record"
jenkins-bot [Fri, 26 Feb 2016 18:38:09 +0000 (18:38 +0000)]
Merge "Prevent duplicate memcached lookups for user record"

8 years agoMerge "ApiSandbox: Blur before sending request"
jenkins-bot [Fri, 26 Feb 2016 18:13:19 +0000 (18:13 +0000)]
Merge "ApiSandbox: Blur before sending request"

8 years agoMerge "Add type hint against LinkTarget"
jenkins-bot [Fri, 26 Feb 2016 18:13:14 +0000 (18:13 +0000)]
Merge "Add type hint against LinkTarget"

8 years agoConsistently use Html class for form generation
Florian [Fri, 26 Feb 2016 16:57:46 +0000 (17:57 +0100)]
Consistently use Html class for form generation

Instead of Xml class. This was triggered by the comment of Krinkle on
Ide77585fcf24f8ecd26dddac3610a134ba78dce9 and converting to one element
generating class makes sense for readability.

Change-Id: I2162444130dc09ad0c7e4329c93e7e90c534db40

8 years agoMerge "Ignore noop DB transactions errors on connection loss"
jenkins-bot [Fri, 26 Feb 2016 16:09:11 +0000 (16:09 +0000)]
Merge "Ignore noop DB transactions errors on connection loss"

8 years agoMerge "ApiQuerySearch: Match limits to those in Special:Search"
jenkins-bot [Fri, 26 Feb 2016 09:45:23 +0000 (09:45 +0000)]
Merge "ApiQuerySearch: Match limits to those in Special:Search"

8 years agoPrevent duplicate memcached lookups for user record
Ori Livneh [Fri, 26 Feb 2016 04:49:41 +0000 (20:49 -0800)]
Prevent duplicate memcached lookups for user record

User::loadFromId() will look up the user in the database or in memcached -- but
it does not allow for the possibility that the record has already been
retrieved. On a typical page request on the Wikimedia cluster, this causes over
a dozen duplicate memcached lookups for the user record.

Bug: T128157
Change-Id: Iec1504700ab566ca89d0ef868d495238b151034a

8 years agoMerge "Make mediawiki.action.view.redirectPage available on mobile"
jenkins-bot [Fri, 26 Feb 2016 00:13:18 +0000 (00:13 +0000)]
Merge "Make mediawiki.action.view.redirectPage available on mobile"

8 years agoMake mediawiki.action.view.redirectPage available on mobile
Alex Monk [Fri, 26 Feb 2016 00:02:16 +0000 (00:02 +0000)]
Make mediawiki.action.view.redirectPage available on mobile

Bug: T63861
Change-Id: I71d3d415fe918e8b0a090860cad9271092b1bd7e

8 years agoMerge "Release notes for "Browser support for IE8 from Grade A to Grade C""
jenkins-bot [Thu, 25 Feb 2016 22:17:57 +0000 (22:17 +0000)]
Merge "Release notes for "Browser support for IE8 from Grade A to Grade C""

8 years agoMerge "Do not vary on session cookies when the session is disabled"
jenkins-bot [Thu, 25 Feb 2016 21:56:56 +0000 (21:56 +0000)]
Merge "Do not vary on session cookies when the session is disabled"

8 years agoinstaller: Remove obsolete config-no-cache message
Timo Tijhof [Thu, 25 Feb 2016 21:31:52 +0000 (21:31 +0000)]
installer: Remove obsolete config-no-cache message

Follows-up 02c3f68048.

The older message is obsolete now that we require PHP 5.5.9+.

Change-Id: I68199c2ec91c8447fe7e556a6c77f1da39eb5163

8 years agoRelease notes for "Browser support for IE8 from Grade A to Grade C"
Timo Tijhof [Thu, 25 Feb 2016 21:04:09 +0000 (21:04 +0000)]
Release notes for "Browser support for IE8 from Grade A to Grade C"

Follows-up df1019c49d.

Change-Id: I2ca113d1d6a6c4bd74a622b720bf5547680050ec

8 years agoDo not vary on session cookies when the session is disabled
Gergő Tisza [Wed, 24 Feb 2016 06:45:04 +0000 (22:45 -0800)]
Do not vary on session cookies when the session is disabled

MW_NO_SESSION is supposed to be used in a deterministic way
(either always or never for a given endpoint) so there is
no point to split the cache on session cookies when it is
used (except when it's set to 'warn' in which case it is
not really used).

Bug: T127233
Change-Id: If44e0ec2167359e081e1b4cd4d21e62bd357d23e

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 25 Feb 2016 20:50:50 +0000 (21:50 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I0aad8636bb230609aa260cdbebe7d10114c2236b

8 years agoMerge "Add TitleMoveStarting, mirroring TitleMoveCompleting"
jenkins-bot [Thu, 25 Feb 2016 18:57:06 +0000 (18:57 +0000)]
Merge "Add TitleMoveStarting, mirroring TitleMoveCompleting"

8 years agoMerge "User::isSafeToLoad() should return false if MW_NO_SESSION"
jenkins-bot [Thu, 25 Feb 2016 18:47:51 +0000 (18:47 +0000)]
Merge "User::isSafeToLoad() should return false if MW_NO_SESSION"

8 years agoAdd TitleMoveStarting, mirroring TitleMoveCompleting
Matthew Flaschen [Wed, 24 Feb 2016 23:50:58 +0000 (18:50 -0500)]
Add TitleMoveStarting, mirroring TitleMoveCompleting

This is a pre-requisite to fix a Flow move regression, T127785.

This allows running an atomic entirely within the move with the correct
ordering.

Bug: T127785
Change-Id: Ie772f737f917854e4cfefe52ec3bea4669c9efe0

8 years agoUser::isSafeToLoad() should return false if MW_NO_SESSION
Brad Jorsch [Tue, 23 Feb 2016 22:05:15 +0000 (17:05 -0500)]
User::isSafeToLoad() should return false if MW_NO_SESSION

Because it's never safe.

Bug: T127233
Change-Id: Ieb5824f1668dc38d1be7c7cbf799da17e581c555

8 years agoMerge "Get timestamp from WikiPage, instead of Article"
jenkins-bot [Thu, 25 Feb 2016 17:28:10 +0000 (17:28 +0000)]
Merge "Get timestamp from WikiPage, instead of Article"

8 years agoAdd type hint against LinkTarget
Leszek Manicki [Thu, 11 Feb 2016 08:24:46 +0000 (09:24 +0100)]
Add type hint against LinkTarget

A follow up to I132f254536a7516e878e20ad49d2f415796c4490

Change-Id: I74bff64e86ea95cecddf504e532543aa74b79775

8 years agoMerge "Fix a PHP 5.5 TODO"
jenkins-bot [Thu, 25 Feb 2016 17:12:18 +0000 (17:12 +0000)]
Merge "Fix a PHP 5.5 TODO"

8 years agoMerge "Fixup contenttype stuff in UserMailer"
jenkins-bot [Thu, 25 Feb 2016 17:12:13 +0000 (17:12 +0000)]
Merge "Fixup contenttype stuff in UserMailer"

8 years agoMerge "Updating docs for UserMailer::sendWithPear() which calls $mailer->send()"
jenkins-bot [Thu, 25 Feb 2016 17:12:04 +0000 (17:12 +0000)]
Merge "Updating docs for UserMailer::sendWithPear() which calls $mailer->send()"

8 years agoMerge "Remove no-op parameter from UIDGeneratorTest"
jenkins-bot [Thu, 25 Feb 2016 17:11:58 +0000 (17:11 +0000)]
Merge "Remove no-op parameter from UIDGeneratorTest"

8 years agoMerge "Initialise array with contents in one go"
jenkins-bot [Thu, 25 Feb 2016 17:04:23 +0000 (17:04 +0000)]
Merge "Initialise array with contents in one go"

8 years agoMerge "Fix typo and improve code comments in LinkTarget"
jenkins-bot [Thu, 25 Feb 2016 16:56:39 +0000 (16:56 +0000)]
Merge "Fix typo and improve code comments in LinkTarget"

8 years agoUpdating docs for UserMailer::sendWithPear() which calls $mailer->send()
Perside Rosalie [Thu, 25 Feb 2016 13:52:24 +0000 (14:52 +0100)]
Updating docs for UserMailer::sendWithPear() which calls $mailer->send()

$mailer->send() call in UserMailer::sendWithPear() which is correct. $mailer is an
instance of Mail_smtp not UserMailer so the arguments passed to the send() method are
correct. The docs have been updated appropriately.

Bug: T68673
Change-Id: Ia85f957c60f4dafd3f450cda469b70bdcc166a8f

8 years agoMerge "Move WatchedItem::duplicateEntries to WatchedItemStore"
jenkins-bot [Thu, 25 Feb 2016 16:44:04 +0000 (16:44 +0000)]
Merge "Move WatchedItem::duplicateEntries to WatchedItemStore"

8 years agoMerge "OOjs UI: Fix #gatherPreInfuseState called incorrectly, causing TypeErrors"
jenkins-bot [Thu, 25 Feb 2016 15:48:55 +0000 (15:48 +0000)]
Merge "OOjs UI: Fix #gatherPreInfuseState called incorrectly, causing TypeErrors"

8 years agoApiSandbox: Blur before sending request
Brad Jorsch [Thu, 25 Feb 2016 15:05:12 +0000 (10:05 -0500)]
ApiSandbox: Blur before sending request

OO.ui.ButtonWidget doesn't take focus itself, so clicking the "Make
request" button isn't sending the blur event, so stuff like
OO.ui.CapsuleMultiSelectWidget doesn't get to process its input until
too late.

Bug: T128054
Change-Id: I00913123e0019c096890b2829bfea3a77c551b2e

8 years agoOOjs UI: Fix #gatherPreInfuseState called incorrectly, causing TypeErrors
Thiemo Mättig [Thu, 25 Feb 2016 13:34:01 +0000 (14:34 +0100)]
OOjs UI: Fix #gatherPreInfuseState called incorrectly, causing TypeErrors

This bug is currently live. Try opening
https://www.wikidata.org/wiki/Special:NewItem
and have a look at the JavaScript console.

Introduced in If07d40a.

This patch is a manual cherry-pick from I748a4bc, which is the same
fix in the original repository. I feel we should backport this to
production.

Bug: T106313
Bug: T128075
Change-Id: I25a5deab2c287e97086726d0acbb3afeee842e0b

8 years agoMerge "Add missing null type hints to Content::isCountable and implementations"
jenkins-bot [Thu, 25 Feb 2016 14:05:07 +0000 (14:05 +0000)]
Merge "Add missing null type hints to Content::isCountable and implementations"

8 years agoMerge "ApiSandbox: Convert all pluses in URL to spaces, not just the first one"
jenkins-bot [Thu, 25 Feb 2016 13:46:36 +0000 (13:46 +0000)]
Merge "ApiSandbox: Convert all pluses in URL to spaces, not just the first one"

8 years agoApiSandbox: Convert all pluses in URL to spaces, not just the first one
Matt Russell [Thu, 25 Feb 2016 07:19:38 +0000 (18:19 +1100)]
ApiSandbox: Convert all pluses in URL to spaces, not just the first one

This would prevent linking to any query that contains spaces.

Change-Id: I45607c1eb465d4d9bf7bbb1de7098bb1450b5043
Bug: T128053

8 years agoMerge "Message.php: Update comment to current implementation"
jenkins-bot [Thu, 25 Feb 2016 13:23:30 +0000 (13:23 +0000)]
Merge "Message.php: Update comment to current implementation"

8 years agoAdd missing null type hints to Content::isCountable and implementations
Thiemo Mättig [Thu, 25 Feb 2016 13:13:22 +0000 (14:13 +0100)]
Add missing null type hints to Content::isCountable and implementations

Change-Id: I6e3128dddd296f6d33da23332b8ff8393837b61b

8 years agoMerge "Fix autofocus on Special:Activeusers"
jenkins-bot [Thu, 25 Feb 2016 06:14:08 +0000 (06:14 +0000)]
Merge "Fix autofocus on Special:Activeusers"

8 years agoMerge "ApiSandbox: Visual separation of fields"
jenkins-bot [Thu, 25 Feb 2016 02:52:29 +0000 (02:52 +0000)]
Merge "ApiSandbox: Visual separation of fields"

8 years agoMerge "SessionBackend: skip isUserSessionPrevented check for anons"
jenkins-bot [Thu, 25 Feb 2016 02:47:37 +0000 (02:47 +0000)]
Merge "SessionBackend: skip isUserSessionPrevented check for anons"

8 years agoSessionBackend: skip isUserSessionPrevented check for anons
Ori Livneh [Wed, 24 Feb 2016 23:32:57 +0000 (15:32 -0800)]
SessionBackend: skip isUserSessionPrevented check for anons

For anon requests, the call to SessionManager::isUserSessionPrevented(
$this->user->getName() ) is both expensive (because of the need to
sanitize the IP) and pointless, because the session-prevention feature
is intended for named accounts. So short-circuit the check if the user is not
logged in.

Change-Id: I17386b97e229b492723b46db1e1ae16fd4b0fc5a

8 years agoIDatabase::commit: Docs re 'flush' exception on explicit transaction
Matthew Flaschen [Wed, 24 Feb 2016 23:22:30 +0000 (18:22 -0500)]
IDatabase::commit: Docs re 'flush' exception on explicit transaction

Change-Id: I44087e92d2186f4e931b3f0766caba1f90f4ebc4

8 years agoApiQuerySearch: Match limits to those in Special:Search
Brad Jorsch [Wed, 24 Feb 2016 21:22:39 +0000 (16:22 -0500)]
ApiQuerySearch: Match limits to those in Special:Search

The limits were decreased in r55615, but no one seems to remember why.

Bug: T119189
Change-Id: I622203195ed5dbed9548bb4a9a6acdab8e3bc3ed

8 years agoMerge "Fix validation error on Special:Emailuser"
jenkins-bot [Wed, 24 Feb 2016 21:07:46 +0000 (21:07 +0000)]
Merge "Fix validation error on Special:Emailuser"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 24 Feb 2016 20:38:21 +0000 (21:38 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia35e1b9cc7ac053de010cde3accc1f988a7e965a

8 years agoFix validation error on Special:Emailuser
umherirrender [Wed, 24 Feb 2016 19:48:53 +0000 (20:48 +0100)]
Fix validation error on Special:Emailuser

Xml::inputLabel does not know about boolean parameters like autofocus,
so add it with an empty value

Fix validation error:
Bad value 1 for attribute autofocus on element input.

Change-Id: Ide77585fcf24f8ecd26dddac3610a134ba78dce9

8 years agoMessage.php: Update comment to current implementation
Fomafix [Wed, 24 Feb 2016 19:41:50 +0000 (19:41 +0000)]
Message.php: Update comment to current implementation

Change-Id: I04f6b42380e6b8eeb5bf0d679e8fb65cb4696d1a

8 years agoFix autofocus on Special:Activeusers
umherirrender [Wed, 24 Feb 2016 19:40:53 +0000 (20:40 +0100)]
Fix autofocus on Special:Activeusers

Xml::inputLabel does not know about boolean parameters like autofocus,
so add it with an empty value or omitted it.

Fix validation error:
Bad value 1 for attribute autofocus on element input.

Change-Id: Idb7a7b58079d6c44b5a7f1fa226218bb685c8241

8 years agoAdd $lang parameter to SpecialVersion::getVersion
Brad Jorsch [Tue, 23 Feb 2016 22:07:19 +0000 (17:07 -0500)]
Add $lang parameter to SpecialVersion::getVersion

Usage in Scribunto with I712e048367d9d.

Bug: T127233
Change-Id: Id14733aaef3e52a2e315bffe74baeb926d46e238

8 years agoChange "edit" to "create" in the message noarticletext
Amire80 [Wed, 24 Feb 2016 13:13:11 +0000 (15:13 +0200)]
Change "edit" to "create" in the message noarticletext

Change-Id: I0437c30969afbe65723bb0c8130b3636ea059246

8 years agoMerge "Add used messages to LogFormatter::getMessageKey overrides"
jenkins-bot [Wed, 24 Feb 2016 07:59:13 +0000 (07:59 +0000)]
Merge "Add used messages to LogFormatter::getMessageKey overrides"

8 years agobuild: Tweak jscs jsDoc rule 'checkAnnotations' and make pass
Ricordisamoa [Wed, 24 Feb 2016 02:47:10 +0000 (03:47 +0100)]
build: Tweak jscs jsDoc rule 'checkAnnotations' and make pass

* Don't override "private", the default is to require empty
  values for the tag

* Move some @private tags after descriptions so the latter
  are not mistaken for tag values

* Require some value for @context, @source and @see tags

Change-Id: I583bb2ff3ec6537e1419732aaf1644ea8feb2255

8 years agoIgnore noop DB transactions errors on connection loss
Aaron Schulz [Sat, 20 Feb 2016 00:14:58 +0000 (16:14 -0800)]
Ignore noop DB transactions errors on connection loss

This avoids some needless exceptions for longer running scripts.

Bug: T127428
Change-Id: I3098141aa77a4c73cb2a0c784b38b15c712f82a9

8 years agoMerge "Add missing 'public' keywords to some MediaHandler methods"
jenkins-bot [Wed, 24 Feb 2016 00:06:13 +0000 (00:06 +0000)]
Merge "Add missing 'public' keywords to some MediaHandler methods"

8 years agoAdd missing 'public' keywords to some MediaHandler methods
Ricordisamoa [Tue, 23 Feb 2016 23:47:02 +0000 (00:47 +0100)]
Add missing 'public' keywords to some MediaHandler methods

* getParamMap
* validateParam
* makeParamString
* parseParamString
* canRender
* mustRender
* isMultiPage

Change-Id: I0c00a61abf9be400dca5407370ca2c232d57ae17

8 years agoMerge "mediawiki.ui: Buttons should receive `max-width`"
jenkins-bot [Tue, 23 Feb 2016 23:43:42 +0000 (23:43 +0000)]
Merge "mediawiki.ui: Buttons should receive `max-width`"

8 years agoInitialise array with contents in one go
Reedy [Tue, 23 Feb 2016 23:39:40 +0000 (23:39 +0000)]
Initialise array with contents in one go

Change-Id: Id9ea7a8f17905a0e1e3c0ff12a9ba6c54de54dbe

8 years agoAllow more fine-grained throttling of login attempts
Brian Wolff [Mon, 15 Feb 2016 05:01:55 +0000 (00:01 -0500)]
Allow more fine-grained throttling of login attempts

In addition to the 5 attempts every 5 minutes rule, add some long
term rules. Its extraordinarily unlikely that a non-malicious person would
use the wrong password 150 times in a row, so add a rule that you
can't have 150 login fails in a row in 48 hours all from the same
IP address. Also add the ability to set throttles across all IPs, but
do not set any of these types by default (There is an unclear risk/benefit
tradeoff between making it easy to lock someone out of their
account in a DoS attack, and preventing brute-forcing)

Bug: T122164
Change-Id: I5c279906936ef3991a42fc21325c3ffd4a200493

8 years agomediawiki.ui: Buttons should receive `max-width`
Volker E [Tue, 23 Feb 2016 21:29:06 +0000 (13:29 -0800)]
mediawiki.ui: Buttons should receive `max-width`

Applying `max-width` to mw-ui-buttons and center-aligning subgroup
when class `mw-ui-block` is available.

Bug: T95367
Change-Id: I4aaf24042f451c3b5489f49098f4b9e7eeef8098

8 years agoFix parserTests: Set scriptPath in setupGlobals() as well
Arlo Breault [Tue, 23 Feb 2016 22:00:34 +0000 (14:00 -0800)]
Fix parserTests: Set scriptPath in setupGlobals() as well

Follows-up to 2eeda9bc7, which only set it in setUp().

Change-Id: Ifafaeaab679f51d452419bea223a955afcc63b51

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 23 Feb 2016 21:09:58 +0000 (22:09 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I38e60872965bf5f1f0074c41a9b3773487331fa8

8 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 23 Feb 2016 20:45:38 +0000 (20:45 +0000)]
Merge "Sync up with Parsoid parserTests."

8 years agoSync up with Parsoid parserTests.
Arlo Breault [Tue, 23 Feb 2016 19:46:20 +0000 (11:46 -0800)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 239d2e60d82c736905a935525db748ebf6b45e23

Change-Id: Iec62b6824ab7d4c5d660999af130c777f8621571

8 years agoRevert "Log multiple IPs using the same session or the same user account"
Ori Livneh [Tue, 23 Feb 2016 19:16:31 +0000 (11:16 -0800)]
Revert "Log multiple IPs using the same session or the same user account"

This reverts commit f22549a60539c9aa5c5390c8417c984ba8eef5b2.
Per T125455#2054194.

Bug: T125455
Change-Id: Ic2049381e98586e91974fc5b47d9e857a73414a4

8 years agoMerge "resourceloader: Remove $wgUser optimization that uses session "
jenkins-bot [Tue, 23 Feb 2016 19:54:05 +0000 (19:54 +0000)]
Merge "resourceloader: Remove $wgUser optimization that uses session "

8 years agoresourceloader: Remove $wgUser optimization that uses session
Bryan Davis [Tue, 23 Feb 2016 17:43:01 +0000 (10:43 -0700)]
resourceloader: Remove $wgUser optimization that uses session

Remove optimization that avoids unstubbing $wgUser because $wgUser
is not a plain object for the current user name.

It's a stub with mFrom='session' until methods are called that need
the info, such as getName(), which then lazy loads the object based on
the session information.

We want to make load.php session-less.

Bug: T127233
Change-Id: Ica482e5d1892cb29456e6f2a91cd70017cf414c5

8 years agoImplement HTMLTitleTextField with suggestions for non-OOUI forms, too
Florian [Thu, 29 Oct 2015 17:51:02 +0000 (18:51 +0100)]
Implement HTMLTitleTextField with suggestions for non-OOUI forms, too

Also implement a way to use mediawiki.searchSuggests without wrapping
a link around the suggestions.

Bug: T117033
Change-Id: I2c7fc71d19cefaa16a6cc4526af05be9cd32366e

8 years agoMerge "JsonContent: Call member functions with '$this->', not 'self::'"
jenkins-bot [Tue, 23 Feb 2016 17:34:16 +0000 (17:34 +0000)]
Merge "JsonContent: Call member functions with '$this->', not 'self::'"