lhc/web/wiklou.git
9 years agoUpdate OOjs UI to v0.6.0
James D. Forrester [Tue, 16 Dec 2014 21:29:32 +0000 (13:29 -0800)]
Update OOjs UI to v0.6.0

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.6.0/History.md

Change-Id: I0386c3f622355de2d5771427fbcaeedd6d3bff04

9 years agoMerge "Move Test files under same folder structure where class is (/includes/)"
jenkins-bot [Tue, 16 Dec 2014 21:11:00 +0000 (21:11 +0000)]
Merge "Move Test files under same folder structure where class is (/includes/)"

9 years agoMerge "Destroy session after running api tests"
jenkins-bot [Tue, 16 Dec 2014 21:10:56 +0000 (21:10 +0000)]
Merge "Destroy session after running api tests"

9 years agoMerge "Normalize "\r" newlines in preSaveTransform"
jenkins-bot [Tue, 16 Dec 2014 21:07:50 +0000 (21:07 +0000)]
Merge "Normalize "\r" newlines in preSaveTransform"

9 years agoMove Test files under same folder structure where class is (/includes/)
umherirrender [Mon, 8 Dec 2014 19:29:30 +0000 (20:29 +0100)]
Move Test files under same folder structure where class is (/includes/)

Change-Id: I95f1aa6f0ed2cc3306aa6e588a11f359854315c1

9 years agoDestroy session after running api tests
umherirrender [Tue, 9 Dec 2014 20:35:40 +0000 (21:35 +0100)]
Destroy session after running api tests

ApiLogin and ApiCreateAccount calling wfSetupSession, which leaks a
session over the test.
The test RequestContextText needs a clear session to work, so the api
tests should avoid leaking the session.
Doing this in the ApiTestCase because some tests calling ApiLogin over
FauxRequest and that also starts a session.

Change-Id: Icf5cb4d4a2c24c96698cac5bf32147c0c9149ef3

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 16 Dec 2014 20:39:15 +0000 (20:39 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Move advanced search inputs back into the form"
jenkins-bot [Tue, 16 Dec 2014 20:35:31 +0000 (20:35 +0000)]
Merge "Move advanced search inputs back into the form"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 16 Dec 2014 20:32:35 +0000 (21:32 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibc0afaa9fdc8383545aac46f5b886c20a594a697

9 years agoMove advanced search inputs back into the form
Rob Moen [Tue, 16 Dec 2014 19:34:40 +0000 (11:34 -0800)]
Move advanced search inputs back into the form

Follow up to Ic6ec29817ab7deadc6bc7125f8b4cd16686baa04

Bug: T78553
Change-Id: I6c8892e7742bac730154a66ab2bbb9c37ef3af9d

9 years agoMinor clean up of release notes
Timo Tijhof [Tue, 16 Dec 2014 19:03:16 +0000 (19:03 +0000)]
Minor clean up of release notes

* Consistently use 'Git' when referring to the system (not 'git').
  https://github.com/git/git/blob/v2.1.3/Documentation/CodingGuidelines#L483-L486

* Remove angle brackets from a few urls. This is pseudo-wikitext.
  And even as plain text, it only seems confusing. Most other
  urls here, and in HISTORY, don't have it either.

* Remove version numbers from the "External libraries" message.
  We generally announce upgrades in the "New features" section.
  Having to keep this section up to date as we upgrade libraries
  seems unnecessary.

Change-Id: I4a8a75193cf6723ae734067f5d91ffa75692b5fd

9 years agoMerge "Update RELEASE-NOTES for wikimedia/cdb package rename"
jenkins-bot [Tue, 16 Dec 2014 18:42:26 +0000 (18:42 +0000)]
Merge "Update RELEASE-NOTES for wikimedia/cdb package rename"

9 years agoMerge "Deprecate wfErrorLog"
jenkins-bot [Tue, 16 Dec 2014 18:36:57 +0000 (18:36 +0000)]
Merge "Deprecate wfErrorLog"

9 years agoUpdate RELEASE-NOTES for wikimedia/cdb package rename
Kunal Mehta [Tue, 16 Dec 2014 18:31:13 +0000 (10:31 -0800)]
Update RELEASE-NOTES for wikimedia/cdb package rename

Change-Id: Ic71087e3b72566771b184bbe31bf766886401ffc

9 years agoMerge "Create a generic UDP transport class"
jenkins-bot [Tue, 16 Dec 2014 18:01:28 +0000 (18:01 +0000)]
Merge "Create a generic UDP transport class"

9 years agoDeprecate wfErrorLog
Bryan Davis [Mon, 15 Dec 2014 23:12:57 +0000 (16:12 -0700)]
Deprecate wfErrorLog

When a logging service other than MWLoggerLegacySpi is used, the
behavior of wfErrorLog is not guaranteed.

Change-Id: I8543bfd556aa752665f7a3daa855d3c2f7fc8956

9 years agoMerge "Revert "SECURITY: Do not show log action if revdeleted" and fix UI message"
jenkins-bot [Mon, 15 Dec 2014 22:56:59 +0000 (22:56 +0000)]
Merge "Revert "SECURITY: Do not show log action if revdeleted" and fix UI message"

9 years agoCreate a generic UDP transport class
Bryan Davis [Mon, 15 Dec 2014 22:05:13 +0000 (15:05 -0700)]
Create a generic UDP transport class

Code moved from MWLoggerLegacyLogger::emit(), which was formerly
in wfErrorLog().

Bug: T74572
Bug: T78599
Change-Id: I9e0e63d41bed6ccb468f3a9f1d52f156acc355a8

9 years agoNormalize "\r" newlines in preSaveTransform
Brad Jorsch [Mon, 15 Dec 2014 21:59:42 +0000 (16:59 -0500)]
Normalize "\r" newlines in preSaveTransform

The behavior of the different preprocessors differs when given \r or
\r\n newlines. We already normalize the latter here, so may as well do
the former here too.

Bug: T78488
Change-Id: Id6390f64a73ea01088729f25d79103388c1fe7e8

9 years agoFixing wikitable border formatting in shared.css
kaldari [Mon, 15 Dec 2014 21:46:02 +0000 (13:46 -0800)]
Fixing wikitable border formatting in shared.css

Order of parameters was wrong.

Change-Id: I55671add3b35aaa3a78dc7d8c6ec01bae90f0724

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 15 Dec 2014 20:53:51 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9709428a8db4ec79a2471ff8ec835d186995c82c

9 years agoEditPage: Don't warn if the page already redirects to itself
Kevin Israel [Fri, 12 Dec 2014 07:49:46 +0000 (02:49 -0500)]
EditPage: Don't warn if the page already redirects to itself

Follows-up 02660685708747d5.

Also improved the wording of the "selfredirect" message.

Change-Id: I89a4647c03ccc31db4812dedac107869b2721833

9 years agoSkin: handle invalid titles gracefully
Niklas Laxström [Sat, 6 Dec 2014 09:50:10 +0000 (10:50 +0100)]
Skin: handle invalid titles gracefully

Linker::link throws a notice if given null instead of title. Title
is constructed based on messages, so it can easily be null.

Change-Id: I5451135966cbb3bbd09d2568cec6b936f3b88aa3

9 years agoMessageCache: Improve GlobalTitleFail log message
Kunal Mehta [Mon, 15 Dec 2014 18:32:38 +0000 (10:32 -0800)]
MessageCache: Improve GlobalTitleFail log message

Same as 18d952dbcb6c7

Change-Id: Iabb1eb7481026cfdf0610b0125d5b577febcc0f4

9 years agoAPI: Don't use an empty LinkBatch in ApiOpenSearch, part 2.
Brad Jorsch [Mon, 15 Dec 2014 16:04:57 +0000 (11:04 -0500)]
API: Don't use an empty LinkBatch in ApiOpenSearch, part 2.

While Ie4609b08 took care of the empty $titles case, we get the same
problem if $titles is non-empty but contains only Special-namespace
titles.

Bug: T78074
Change-Id: Ic6572628e1da9953ef8212e49d4944e94d799f44

9 years agoMerge "Fix prefix search for special pages"
jenkins-bot [Mon, 15 Dec 2014 16:45:25 +0000 (16:45 +0000)]
Merge "Fix prefix search for special pages"

9 years agoFix prefix search for special pages
Nik Everett [Fri, 12 Dec 2014 22:24:01 +0000 (17:24 -0500)]
Fix prefix search for special pages

Prefix search for special pages was returning only the first match.

Change-Id: I5849696de76ca588f7e626d7da319b8bddb3dce9

9 years agoFollowup cf5f641: pass $params by reference again
Roan Kattouw [Mon, 15 Dec 2014 15:34:21 +0000 (16:34 +0100)]
Followup cf5f641: pass $params by reference again

&$params was changed to $params, but hooks.txt still documents
this parameter as being passed by reference, and VipsScaler expects this.

Giuseppe and I suspect this may be what's causing the HHVM segfaults
we're seeing in beta labs.

Change-Id: Ib018f23bc44c247aefc277a0c75ff8577f309ab4

9 years agoMerge "Made StashEdit log a bit less verbose"
jenkins-bot [Mon, 15 Dec 2014 15:24:25 +0000 (15:24 +0000)]
Merge "Made StashEdit log a bit less verbose"

9 years agoMerge "Add better error message for files which exceeds $wgMaxImageArea"
jenkins-bot [Mon, 15 Dec 2014 08:58:23 +0000 (08:58 +0000)]
Merge "Add better error message for files which exceeds $wgMaxImageArea"

9 years agoMerge "Explaining why user groups are sometimes returned by getRestrictions"
jenkins-bot [Mon, 15 Dec 2014 08:34:53 +0000 (08:34 +0000)]
Merge "Explaining why user groups are sometimes returned by getRestrictions"

9 years agoAdd better error message for files which exceeds $wgMaxImageArea
umherirrender [Wed, 25 Jun 2014 19:30:08 +0000 (21:30 +0200)]
Add better error message for files which exceeds $wgMaxImageArea

Added a TransformTooBigImageAreaError to allow setting an extra message.
Added also size-*pixel messages to show the value of $wgMaxImageArea
with some formatting.

This error is still throwing for all files, to fix bug T34387 this needs
a follow up with a proper check. I am not sure, if a File::isLocal() is
okay, because files from a DBForeignRepo maybe transformed on the same
server, so the check needs to be done also for this. For APIForeignRepo
the check is done on the foreign server.

Change-Id: Ieba12e424c8bddb1961a30d3f9ea5c8ff241abb5

9 years agoMerge "SpecialBlockList: Remove unused message 'infiniteblock' in formatValue()"
jenkins-bot [Mon, 15 Dec 2014 03:06:44 +0000 (03:06 +0000)]
Merge "SpecialBlockList: Remove unused message 'infiniteblock' in formatValue()"

9 years agoSpecialBlockList: Remove unused message 'infiniteblock' in formatValue()
umherirrender [Sun, 14 Dec 2014 11:32:02 +0000 (12:32 +0100)]
SpecialBlockList: Remove unused message 'infiniteblock' in formatValue()

Change-Id: I24bf357386366e1bbe3ec1e5463b7b6bba9df0e8

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 14 Dec 2014 21:00:01 +0000 (22:00 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6a7a02bb4f5a4f6be8d5af9a8bba62cd0e5d20e4

9 years agoEscape parentheses message on watchlist pages
Niklas Laxström [Sat, 6 Dec 2014 09:48:23 +0000 (10:48 +0100)]
Escape parentheses message on watchlist pages

Change-Id: Ie9943d7da81d16fcd95558f681af68ef9d392bfe

9 years agoExplaining why user groups are sometimes returned by getRestrictions
kaldari [Fri, 12 Dec 2014 22:24:54 +0000 (14:24 -0800)]
Explaining why user groups are sometimes returned by getRestrictions

Title::getRestrictions is assumed to return user rights, but in most
real contexts it actually returns user groups. This is super
confusing and has caused serious permission bugs. Adding an
explanation to the function comments.

Change-Id: I58013ba5e553d1feecacf6bfef066e1569fcc236

9 years agoCorrect documentation for $wgResourceModuleSkinStyles
Bartosz Dziewoński [Sat, 13 Dec 2014 19:19:05 +0000 (20:19 +0100)]
Correct documentation for $wgResourceModuleSkinStyles

Change-Id: I56195b2193477f8f7ff2b56b241702b0dbd7de0c

9 years agoMinor spelling comment fix
Yuri Astrakhan [Sun, 14 Dec 2014 00:44:38 +0000 (03:44 +0300)]
Minor spelling comment fix

Change-Id: Ic56f4e73e56e6dca4825c93b0a95f4d9de835fd4

9 years agoLocalisationCache: Use file_get_contents instead of DOMDocument::load
This, that and the other [Wed, 26 Nov 2014 09:02:09 +0000 (20:02 +1100)]
LocalisationCache: Use file_get_contents instead of DOMDocument::load

DOMDocument::load fails to load the plurals data during the import
process.

This is a work-around for https://bugs.php.net/bug.php?id=64938. This
bug only rears its head when using Special:Import, because that is
essentially the only place in MediaWiki where we fiddle with
libxml_disable_entity_loader.

Bug: T58439
Change-Id: Idcb4ab1cef2a7b080543e7cc1cee5464fc476456

9 years agoMade StashEdit log a bit less verbose
Aaron Schulz [Sun, 14 Dec 2014 00:46:48 +0000 (16:46 -0800)]
Made StashEdit log a bit less verbose

Change-Id: Ib1272862efa5518854533af8bf28df97f37f350e

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 13 Dec 2014 21:02:54 +0000 (22:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie0f2b699f277133fcb6c6e4005784a7087c65437

9 years agoMerge "Apply coding conventions for JavaScript"
jenkins-bot [Sat, 13 Dec 2014 19:37:49 +0000 (19:37 +0000)]
Merge "Apply coding conventions for JavaScript"

9 years agoMerge "Get to the point about howto download Vector :p"
Bartosz Dziewoński [Sat, 13 Dec 2014 18:14:39 +0000 (18:14 +0000)]
Merge "Get to the point about howto download Vector :p"

9 years agoMerge "skins: Update .gitignore"
Bartosz Dziewoński [Sat, 13 Dec 2014 17:54:43 +0000 (17:54 +0000)]
Merge "skins: Update .gitignore"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 13 Dec 2014 00:51:52 +0000 (01:51 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I5021f4e172b346279df2bed793ab619bf59a519c

9 years agoConvert more wfRunHooks() --> Hooks::run()
Kunal Mehta [Fri, 12 Dec 2014 22:47:31 +0000 (14:47 -0800)]
Convert more wfRunHooks() --> Hooks::run()

Change-Id: I1b1e3cb6871721fc05dda881a8020c9a5d30a514

9 years agoMerge "GlobalFunctions: Fix 'Undefined index' notice in wfBacktrace"
jenkins-bot [Fri, 12 Dec 2014 21:44:36 +0000 (21:44 +0000)]
Merge "GlobalFunctions: Fix 'Undefined index' notice in wfBacktrace"

9 years agoMerge "Special pages: Change some wfMessage to $this->msg"
jenkins-bot [Fri, 12 Dec 2014 21:39:28 +0000 (21:39 +0000)]
Merge "Special pages: Change some wfMessage to $this->msg"

9 years agoGlobalFunctions: Fix 'Undefined index' notice in wfBacktrace
Bartosz Dziewoński [Fri, 12 Dec 2014 21:30:36 +0000 (22:30 +0100)]
GlobalFunctions: Fix 'Undefined index' notice in wfBacktrace

Notice: Undefined index: line in
/var/www/wiki/includes/GlobalFunctions.php on line 1840

Caused by fc2e6df64ffabe9236b8b5eee43d3d89e235670a, previous versions
used isset here.

Change-Id: Ie9434f09e0905346ace19909fb316d47c75e0440

9 years agoSpecial pages: Change some wfMessage to $this->msg
umherirrender [Fri, 12 Dec 2014 21:24:01 +0000 (22:24 +0100)]
Special pages: Change some wfMessage to $this->msg

Change-Id: I797a791c0e6738857fbd01bacff088c777e91461

9 years agoMerge "Removed some unnecessary code in LocalFileDeleteBatch"
jenkins-bot [Fri, 12 Dec 2014 21:18:30 +0000 (21:18 +0000)]
Merge "Removed some unnecessary code in LocalFileDeleteBatch"

9 years agoMerge "Do not require that a Monolog handler has a formatter"
jenkins-bot [Fri, 12 Dec 2014 21:16:09 +0000 (21:16 +0000)]
Merge "Do not require that a Monolog handler has a formatter"

9 years agoMerge "resources: Switch OOjs UI from the 'Apex' to the 'MediaWiki' theme"
jenkins-bot [Fri, 12 Dec 2014 21:13:59 +0000 (21:13 +0000)]
Merge "resources: Switch OOjs UI from the 'Apex' to the 'MediaWiki' theme"

9 years agoMerge "Resources: Split oojs-ui module styling into oojs-ui.styles"
jenkins-bot [Fri, 12 Dec 2014 21:13:55 +0000 (21:13 +0000)]
Merge "Resources: Split oojs-ui module styling into oojs-ui.styles"

9 years agoMerge "Add dependency upon oojs/ui's PHP port"
jenkins-bot [Fri, 12 Dec 2014 21:13:51 +0000 (21:13 +0000)]
Merge "Add dependency upon oojs/ui's PHP port"

9 years agoMerge "Guard against empty integerPart in Language::commafy"
jenkins-bot [Fri, 12 Dec 2014 21:07:01 +0000 (21:07 +0000)]
Merge "Guard against empty integerPart in Language::commafy"

9 years agoresources: Switch OOjs UI from the 'Apex' to the 'MediaWiki' theme
James D. Forrester [Fri, 5 Dec 2014 22:10:28 +0000 (14:10 -0800)]
resources: Switch OOjs UI from the 'Apex' to the 'MediaWiki' theme

Bug: T78054
Change-Id: I712b066a8cd70e1ef81a4e43e24801fe1750b3a4

9 years agoResources: Split oojs-ui module styling into oojs-ui.styles
James D. Forrester [Thu, 4 Dec 2014 02:11:28 +0000 (18:11 -0800)]
Resources: Split oojs-ui module styling into oojs-ui.styles

Change-Id: I56e7802c58ccf546c83901382abd8fcbe370fd0a

9 years agoAdd dependency upon oojs/ui's PHP port
Kunal Mehta [Sat, 22 Nov 2014 01:54:37 +0000 (17:54 -0800)]
Add dependency upon oojs/ui's PHP port

Depends upon Ibca93b05 in mediawiki/vendor.

Change-Id: Ibca93b05623377dc645a28ddd337027e53983552

9 years agoGuard against empty integerPart in Language::commafy
Bryan Davis [Fri, 12 Dec 2014 20:54:30 +0000 (13:54 -0700)]
Guard against empty integerPart in Language::commafy

Fixes:
    Notice: Undefined index: 0 in languages/Language.php on line 3348

Change-Id: I1a00f3af95d3b9b0fd3ad3cc690358fe5b90f58f

9 years agoMerge "Update OOjs UI to v0.5.0"
jenkins-bot [Fri, 12 Dec 2014 20:52:02 +0000 (20:52 +0000)]
Merge "Update OOjs UI to v0.5.0"

9 years agoMerge "Pass config to UsercreateTemplate/UserloginTemplate"
jenkins-bot [Fri, 12 Dec 2014 20:31:25 +0000 (20:31 +0000)]
Merge "Pass config to UsercreateTemplate/UserloginTemplate"

9 years agoDo not require that a Monolog handler has a formatter
Bryan Davis [Fri, 12 Dec 2014 20:29:35 +0000 (13:29 -0700)]
Do not require that a Monolog handler has a formatter

Not all handlers require a formatter.

Change-Id: Ifb31aa278d4e90b7fa3a2b7bf3b20173b8345afd

9 years agoUpdate OOjs UI to v0.5.0
James D. Forrester [Fri, 12 Dec 2014 20:22:29 +0000 (12:22 -0800)]
Update OOjs UI to v0.5.0

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.5.0/History.md

Change-Id: I8503e846b8d240facb7a579952104285d7f9a7fc

9 years agoPass config to UsercreateTemplate/UserloginTemplate
umherirrender [Fri, 12 Dec 2014 20:14:36 +0000 (21:14 +0100)]
Pass config to UsercreateTemplate/UserloginTemplate

Avoids:
QuickTemplate::__construct was called with no Config instance passed to
it

Change-Id: Ibfa1885dbe5609f1458dc3022dd367eb17b614b1

9 years agoMerge "Check hasTitle() in RequestContext::setWikiPage()"
jenkins-bot [Fri, 12 Dec 2014 19:58:28 +0000 (19:58 +0000)]
Merge "Check hasTitle() in RequestContext::setWikiPage()"

9 years agoCheck hasTitle() in RequestContext::setWikiPage()
Kunal Mehta [Fri, 12 Dec 2014 19:17:55 +0000 (11:17 -0800)]
Check hasTitle() in RequestContext::setWikiPage()

Calling getTitle() right away can lead to reading from
$wgTitle, so check with hasTitle() first.

This avoids a globaltitlefail in ApiEditPage.

Change-Id: I749cc33dd4f1fd6bc7598be34f37e591d822c3f2

9 years agoLog to DBPerformance when queries affect many rows
Aaron Schulz [Wed, 10 Dec 2014 00:25:28 +0000 (16:25 -0800)]
Log to DBPerformance when queries affect many rows

Change-Id: If82b596187b638888760f800bba2fea20fc7ae8a

9 years agoMerge "Always set a title on images when provided"
jenkins-bot [Fri, 12 Dec 2014 19:25:00 +0000 (19:25 +0000)]
Merge "Always set a title on images when provided"

9 years agoAlways set a title on images when provided
Jackmcbarn [Sun, 10 Aug 2014 22:35:37 +0000 (18:35 -0400)]
Always set a title on images when provided

If an image has a title but isn't linked, set the title on the image
itself rather than not setting it at all.

Bug: T23454
Change-Id: I6302246cf28c84ade805a6a7d4a5e131b6f42e86

9 years agoAdd more context to globaltitlefail logs
Kunal Mehta [Fri, 12 Dec 2014 19:04:33 +0000 (11:04 -0800)]
Add more context to globaltitlefail logs

Currently stuff like:
 MessageCache::parse called by Message::toString/Message::parseText/MessageCache::parse with no title set.

is showing up in the logs, and is totally useless.

Change-Id: I0ac3ca906c5a67e19974e3434d0e929e6b27fbb2

9 years agoMerge "Typo fixes and non-code tweaks"
jenkins-bot [Fri, 12 Dec 2014 17:39:24 +0000 (17:39 +0000)]
Merge "Typo fixes and non-code tweaks"

9 years agoTypo fixes and non-code tweaks
Ricordisamoa [Fri, 12 Dec 2014 08:41:27 +0000 (08:41 +0000)]
Typo fixes and non-code tweaks

Skipped replacements:
* prefered → preferred
* prolly → probably

Skipped files:
* resources/lib/jquery.ui/jquery.ui.mouse.js
* resources/lib/jquery/jquery.form.js

Change-Id: Ib7923f362ddfca1b892bf5d601785d6b5aa5d44c

9 years agoMerge "Remove obsolete note from Title->canExist()"
jenkins-bot [Fri, 12 Dec 2014 17:33:27 +0000 (17:33 +0000)]
Merge "Remove obsolete note from Title->canExist()"

9 years agoApply coding conventions for JavaScript
Fomafix [Fri, 12 Dec 2014 07:12:43 +0000 (07:12 +0000)]
Apply coding conventions for JavaScript

Change-Id: I1ab432ec54e82b05b7c096baa5d4e56dce11aaa9

9 years agomw.loader: Guard against Object.prototype keys as module names
Fomafix [Mon, 8 Dec 2014 20:18:33 +0000 (20:18 +0000)]
mw.loader: Guard against Object.prototype keys as module names

This avoids conflicts where we confuse an Object method for a
registered module.

Change-Id: I1b1c2db355f0c698be4a5fe797daa55dedc25258

9 years agoMerge "Cleaned up LoadBalancer::getConnection"
jenkins-bot [Fri, 12 Dec 2014 02:47:39 +0000 (02:47 +0000)]
Merge "Cleaned up LoadBalancer::getConnection"

9 years agoFix case insensitive string comparison for http header names
Sergio Santoro [Sat, 2 Aug 2014 11:29:57 +0000 (13:29 +0200)]
Fix case insensitive string comparison for http header names

As of RFC 2616 sec 4.2, http header names are case insensitive.

Change-Id: Ib72df2572f5a9c825c5b3ad7735126f3687aad79

9 years agoAvoid blocking on ChronologyProtecter check in LoadBalancer::getConnection()
Aaron Schulz [Wed, 10 Dec 2014 07:56:46 +0000 (23:56 -0800)]
Avoid blocking on ChronologyProtecter check in LoadBalancer::getConnection()

Change-Id: Iccf324d87d117972cc6321b2abf1ff101d98fa65

9 years agocomposer.json: Update issues link to point to bugs.mediawiki.org
Kunal Mehta [Thu, 11 Dec 2014 20:54:59 +0000 (12:54 -0800)]
composer.json: Update issues link to point to bugs.mediawiki.org

Change-Id: I67f4403f1797a38bc3f5d7b190d7f84f6fdf457c

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 11 Dec 2014 22:27:53 +0000 (23:27 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I0d198f282e5db225f16d172a25c7375f48b033f4

9 years agoMerge "Update README from [[mw:README]]"
jenkins-bot [Thu, 11 Dec 2014 22:03:30 +0000 (22:03 +0000)]
Merge "Update README from [[mw:README]]"

9 years agoFix ProfilerStandard sorting and a profile error
Tim Starling [Fri, 5 Dec 2014 04:45:29 +0000 (15:45 +1100)]
Fix ProfilerStandard sorting and a profile error

* Sort $this->collated even if collateOnly is set. Also I don't think
  arsort works that way.
* Fix a profiling error in every DB query, which was due to the two
  scoped profiling sections being destroyed in the wrong order.

Change-Id: I6af05f37a5c0391acfa80d54ecbca7a08ad81250

9 years agoFix parenthesis placement in multi-line condition
Tim Starling [Thu, 11 Dec 2014 03:54:37 +0000 (14:54 +1100)]
Fix parenthesis placement in multi-line condition

After talking with the folks in #mediawiki-core, I decided that I can
put up with it, under protest, on the basis that it's arguably
consistent with PSR-2.

Change-Id: I5f0c0f8f0172674797970d306efe6439ce1c2b67

9 years agoEnforce spaces around magic links (RFC, PMID, and ISBN).
C. Scott Ananian [Fri, 16 May 2014 00:19:10 +0000 (17:19 -0700)]
Enforce spaces around magic links (RFC, PMID, and ISBN).

Ensure that there is a \b boundary before and after RFC, PMID, and ISBN
links.  (Previously we enforced \b boundaries only before free external
links and after ISBN links.)  Consistency is a good thing!

In addition:
* \b is not a PHP escape sequence, so you don't need to write \\b inside
  a string.
* \b before the numeric part of an ISBN is pointless: by the structure
  of the regexp there will always be a space on the left and a word
  character (a digit) on the right.

Bug: 65278
Change-Id: Ic315b988091a5c7530a8285b9249804db72e55db

9 years agoMerge "Stash edit when user idles"
jenkins-bot [Thu, 11 Dec 2014 02:23:10 +0000 (02:23 +0000)]
Merge "Stash edit when user idles"

9 years agoStash edit when user idles
Ori Livneh [Wed, 10 Dec 2014 05:13:44 +0000 (21:13 -0800)]
Stash edit when user idles

Try to anticipate edit submissions earlier by looking for pauses in keyboard
input, on the assumption that users often take a few moments to look over an
edit before submitting it to the server.

Change-Id: Ib2de3f15b93e5d32c66a03363e98606412d5d53b

9 years agoMerge "ResourceLoaderImageModule: Allow use on mobile"
jenkins-bot [Wed, 10 Dec 2014 23:40:48 +0000 (23:40 +0000)]
Merge "ResourceLoaderImageModule: Allow use on mobile"

9 years agoResourceLoaderImageModule: Allow use on mobile
jdlrobson [Wed, 10 Dec 2014 23:31:48 +0000 (15:31 -0800)]
ResourceLoaderImageModule: Allow use on mobile

Change-Id: Ic7913aa1a1e1fb8d3742503cbe8a6cb3427fc826

9 years agoFix check for function wddx_deserialize in tests for hhvm
umherirrender [Wed, 10 Dec 2014 20:09:36 +0000 (21:09 +0100)]
Fix check for function wddx_deserialize in tests for hhvm

The @requires just works for other tests, not for php functions.

This fixed a failure for the hhvm test server:
1) ApiFormatWddxTest::testValidSyntax
Failed asserting that null is of type "array".

Change-Id: Iadd8238ce62d4803cdf56508886ad016f8ac8f1d

9 years agoMerge "Adding aliases for speacial pages in Hebrew"
jenkins-bot [Wed, 10 Dec 2014 21:40:12 +0000 (21:40 +0000)]
Merge "Adding aliases for speacial pages in Hebrew"

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 10 Dec 2014 20:49:37 +0000 (20:49 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 10 Dec 2014 20:48:26 +0000 (21:48 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id102078400328a8f1032b03e926e56645adf00b2

9 years agoFix type hint to match php docs
Mark A. Hershberger [Wed, 10 Dec 2014 20:00:45 +0000 (15:00 -0500)]
Fix type hint to match php docs

From http://php.net/manual/en/function.posix-isatty.php

bool posix_isatty ( mixed $fd )

Determines if the file descriptor fd refers to a valid terminal type device.

fd

    The file descriptor, which is expected to be either a file
    resource or an integer. An integer will be assumed to be a file
    descriptor that can be passed directly to the underlying system
    call.

    In almost all cases, you will want to provide a file resource.

Change-Id: Ief19ac1f09e0a955c8f5d5af28b87b8e8d427a2e

9 years agoLanguage: wfRunHooks() --> Hooks::run()
Kunal Mehta [Wed, 10 Dec 2014 20:29:24 +0000 (12:29 -0800)]
Language: wfRunHooks() --> Hooks::run()

Follows up I8ee996f237fd111873a

Change-Id: I0ffc5903c96219676b9bcb46928fd72bb7133927

9 years agoReplace wfRunHooks calls with direct Hooks::run calls
Aaron Schulz [Tue, 9 Dec 2014 07:23:30 +0000 (23:23 -0800)]
Replace wfRunHooks calls with direct Hooks::run calls

* This avoids the overhead of an extra function call

Change-Id: I8ee996f237fd111873ab51965bded3d91e61e4dd

9 years agoMerge "API edit: allow ConfirmEdit to use the merged parse"
jenkins-bot [Wed, 10 Dec 2014 20:22:05 +0000 (20:22 +0000)]
Merge "API edit: allow ConfirmEdit to use the merged parse"

9 years agoAdding aliases for speacial pages in Hebrew
eranroz [Wed, 10 Dec 2014 20:06:13 +0000 (22:06 +0200)]
Adding aliases for speacial pages in Hebrew

Change-Id: If5e4a535862f40dc7a87527fe525f1fb2f1fe2c1

9 years agoMerge "Fix case of various newFromID/newFromId functions"
jenkins-bot [Wed, 10 Dec 2014 19:47:44 +0000 (19:47 +0000)]
Merge "Fix case of various newFromID/newFromId functions"