lhc/web/wiklou.git
9 years agoMerge "API: Fix list=allusers with multiple values for augroup"
jenkins-bot [Fri, 12 Sep 2014 17:27:02 +0000 (17:27 +0000)]
Merge "API: Fix list=allusers with multiple values for augroup"

9 years agoMerge "Properly deprecate srprop=score|hasrelated"
jenkins-bot [Fri, 12 Sep 2014 16:38:50 +0000 (16:38 +0000)]
Merge "Properly deprecate srprop=score|hasrelated"

9 years agoMerge "Remove "related" searches"
jenkins-bot [Fri, 12 Sep 2014 16:38:48 +0000 (16:38 +0000)]
Merge "Remove "related" searches"

9 years agoProperly deprecate srprop=score|hasrelated
Chad Horohoe [Wed, 10 Sep 2014 20:16:12 +0000 (13:16 -0700)]
Properly deprecate srprop=score|hasrelated

Logs stats on usage, output param descriptions for callers.

Change-Id: I000b91ff4d81dc1563231cd3ae0b56952b9574fd

9 years agoRemove "related" searches
Chad Horohoe [Wed, 10 Sep 2014 19:22:04 +0000 (12:22 -0700)]
Remove "related" searches

Poorly documented and never used anywhere properly.

- No core search backend supports it.
- MWSearch implements it but we've never turned it on.
- SolrStore copies MWSearch but it doesn't even work.
- CirrusSearch doesn't bother because it's silly.

Change-Id: I8b052e8e772030fba6c361fdb2775b10a7f7a15a

9 years agoAPI: Fix list=allusers with multiple values for augroup
Brad Jorsch [Sat, 6 Sep 2014 19:25:11 +0000 (15:25 -0400)]
API: Fix list=allusers with multiple values for augroup

The existing query only works with a single value for augroup, or mostly
if it's combined with auprop=groups or auprop=rights (since most users
don't have every possible group).

When used with multiple values for augroup, it will raise an error if it
happens to encounter enough users who have more than one of the
specified groups. And further, it will lead to repeated groups for these
users if combined with auprop=groups or auprop=rights.

To avoid both these issues, let's use EXISTS instead of a JOIN to test
augroup. While auexcludegroup doesn't have this problem, we may as well
make the same change there, too. And doing that, there's no reason to
continue with an error when both augroup and auexcludegroup are used.

Bug: 70496
Change-Id: Ia7086ce87012c22651ac4c7a3f75558347276226

9 years agoUpdate OOjs UI to v0.1.0-pre (bd008e8aed)
Roan Kattouw [Thu, 11 Sep 2014 23:10:13 +0000 (16:10 -0700)]
Update OOjs UI to v0.1.0-pre (bd008e8aed)

New changes:
845287a Update OOjs to v1.1.1
f7d11f7 Make popups position themselves correctly when dimensions change

Change-Id: I16ae22e6a921666de5b7ada7d7750621eb3ca5a7

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 11 Sep 2014 20:47:37 +0000 (22:47 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ief6252f5235622a08d6c0c8f41ce4c0a49e15d9e

9 years agoSpecialListgrouprights: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 23:13:49 +0000 (16:13 -0700)]
SpecialListgrouprights: Use Config instead of globals

Change-Id: I4c8e48adab856de4e3b736b6ae0366588fb82bc5

9 years agoMerge "API: Deprecate binary sortkey input in ApiQueryCategoryMembers"
jenkins-bot [Thu, 11 Sep 2014 18:41:27 +0000 (18:41 +0000)]
Merge "API: Deprecate binary sortkey input in ApiQueryCategoryMembers"

9 years agoMerge "HTMLFormFieldCloner: Make sure the delete and create buttons have a parent"
jenkins-bot [Thu, 11 Sep 2014 18:09:54 +0000 (18:09 +0000)]
Merge "HTMLFormFieldCloner: Make sure the delete and create buttons have a parent"

9 years agoMerge "Remove term from search results info"
jenkins-bot [Thu, 11 Sep 2014 17:16:26 +0000 (17:16 +0000)]
Merge "Remove term from search results info"

9 years agoHTMLFormFieldCloner: Make sure the delete and create buttons have a parent
Kunal Mehta [Thu, 11 Sep 2014 16:47:26 +0000 (09:47 -0700)]
HTMLFormFieldCloner: Make sure the delete and create buttons have a parent

Also fix the type in documentation.

Change-Id: I0fee2dbb9dd1db157acfba2063a2e4e40152cddf

9 years agoAPI: Deprecate binary sortkey input in ApiQueryCategoryMembers
Brad Jorsch [Thu, 11 Sep 2014 14:46:33 +0000 (10:46 -0400)]
API: Deprecate binary sortkey input in ApiQueryCategoryMembers

Depending on what method is being used to encode the binary sortkeys,
it's very possible that sending a binary value will be mangled by
WebRequest's UTF-8 normalization.

Rather than trying to fight it, let's just do what should have been done
in the first place when r86257 changed sortkey output to hex-encoded.
Too bad now we have to deprecate the old params and add
differently-named new ones instead of piggybacking on the original
breaking change.

Bug: 70690
Change-Id: I5a031e980967cbe574dddc261d56604cecc7147a

9 years agoClean Resources.php for phpcs
Amir E. Aharoni [Thu, 11 Sep 2014 09:36:44 +0000 (12:36 +0300)]
Clean Resources.php for phpcs

Change-Id: I138527fd235fc65a7ee10338681a6cf83abddfdd

9 years agoClarify "mustposttoken" API error message
MZMcBride [Thu, 11 Sep 2014 01:22:17 +0000 (21:22 -0400)]
Clarify "mustposttoken" API error message

Bug: 70656
Change-Id: Id30e54472299bc3998644914eca4e19e9429fd2b

9 years agoUpdate OOjs to v1.1.1
James D. Forrester [Thu, 11 Sep 2014 00:43:02 +0000 (17:43 -0700)]
Update OOjs to v1.1.1

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.1.1/History.md

Change-Id: I2a78dcd147def3b02314c176e51accb2cefe872e

9 years agoRemove term from search results info
Chad Horohoe [Wed, 10 Sep 2014 22:27:37 +0000 (15:27 -0700)]
Remove term from search results info

In surveying other search engines, nobody returns this extra information
and clutters their search results. The information is already available
in the <input> box as well as various context clues (like your actual
results).

Change-Id: Iea21a203731331ca31ced786fb7c0011bd4932eb

9 years agoMerge "Disable JavaScript for MSIE7 users, update tests accordingly"
jenkins-bot [Wed, 10 Sep 2014 20:56:59 +0000 (20:56 +0000)]
Merge "Disable JavaScript for MSIE7 users, update tests accordingly"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 10 Sep 2014 20:48:17 +0000 (22:48 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9b3a5891bac18ec36541b13836a957fdcefec5d5

9 years agoMerge "Don't cast SpecialPageFactory::$list to an object"
jenkins-bot [Wed, 10 Sep 2014 20:22:42 +0000 (20:22 +0000)]
Merge "Don't cast SpecialPageFactory::$list to an object"

9 years agoMerge "Fix column alias in sql on ApiQueryAllUsers.php"
jenkins-bot [Wed, 10 Sep 2014 20:02:27 +0000 (20:02 +0000)]
Merge "Fix column alias in sql on ApiQueryAllUsers.php"

9 years agoMerge "TitleTest: Break secure and split test into two tests with providers"
jenkins-bot [Wed, 10 Sep 2014 20:01:36 +0000 (20:01 +0000)]
Merge "TitleTest: Break secure and split test into two tests with providers"

9 years agoMerge "Under HHVM, measure resources for the thread, not calling process"
jenkins-bot [Wed, 10 Sep 2014 19:20:03 +0000 (19:20 +0000)]
Merge "Under HHVM, measure resources for the thread, not calling process"

9 years agoDon't cast SpecialPageFactory::$list to an object
Reedy [Wed, 10 Sep 2014 18:45:43 +0000 (19:45 +0100)]
Don't cast SpecialPageFactory::$list to an object

Callers insisde SpecialPageFactory using it as an object updated.

All other callers in extensions et al iterate over the array.

Bug: 67596
Change-Id: Ic917c7d87d5b316b4a2b2bde5932325ff67cf372

9 years agoUnder HHVM, measure resources for the thread, not calling process
Ori Livneh [Thu, 4 Sep 2014 23:56:20 +0000 (16:56 -0700)]
Under HHVM, measure resources for the thread, not calling process

As of <https://github.com/facebook/hhvm/commit/0f98cab>, it is possible to
call getrusage( [ int $who = 0 ] ) with $who = 2 to request resource usage
info for the current thread (RUSAGE_THERAD), rather than the calling process
(RUSAGE_SELF). (Earlier versions of HHVM return RUSAGE_SELF data unless $who
is 1.)

PHP5 code can assume that each request is handled in a dedicated subprocess,
but the same is not true of HHVM, which is multi-threaded. Therefore, to get
resource usage data for the current request context, it is necessary to ask
for RUSAGE_THREAD rather than RUSAGE_SELF.

To do this, introduce a new global function in Profiler.php: wfGetRusage().
It is defined there and not in GlobalFunctions.php so that it can be used early
in WebStart.php.

Bug: 70227
Change-Id: Ibe9598ecdfc0f6c434f8b3c7a94f06a7b2fcca23

9 years agoFix column alias in sql on ApiQueryAllUsers.php
umherirrender [Wed, 10 Sep 2014 18:41:14 +0000 (20:41 +0200)]
Fix column alias in sql on ApiQueryAllUsers.php

PostgreSQL needs explicit AS, so using the array syntax, which produce
the correct sql.

Change-Id: I9588678af955f260df628c6355bf0865f894c224

9 years agoMerge "Show the revision list immediately on "umerge" log action links"
jenkins-bot [Wed, 10 Sep 2014 18:05:50 +0000 (18:05 +0000)]
Merge "Show the revision list immediately on "umerge" log action links"

9 years agoMerge "Do deletion updates after commit."
jenkins-bot [Wed, 10 Sep 2014 17:54:54 +0000 (17:54 +0000)]
Merge "Do deletion updates after commit."

9 years agoMerge "Remove JSONContentHandler::$contentClass"
jenkins-bot [Wed, 10 Sep 2014 17:53:22 +0000 (17:53 +0000)]
Merge "Remove JSONContentHandler::$contentClass"

9 years agoDo deletion updates after commit.
daniel [Wed, 10 Sep 2014 17:40:25 +0000 (19:40 +0200)]
Do deletion updates after commit.

WikiPage::doDeleteArticleReal now triggers secondary data updates
(link tables, etc) only after the deletion proper is committed.
This is consistent with the way doEditContent applies secondary
data updates, and avoids nested transactions (e.g. by one of the
updates using a retry loop).

Change-Id: Ie4d96f77d210c9953104a0e6fb11ea8ed348c42a

9 years agoUpdate OOjs UI to v0.1.0-pre (f9c217dfa4)
James D. Forrester [Wed, 10 Sep 2014 17:25:43 +0000 (10:25 -0700)]
Update OOjs UI to v0.1.0-pre (f9c217dfa4)

New changes:
720debe PopupWidget: Toggle clipping -after- updating dimensions

Change-Id: I77f667b1eadc49096f2312a55157c070376be61e

9 years agoMerge "Ignore duplicate key errors in update-keys.sql"
jenkins-bot [Wed, 10 Sep 2014 17:20:10 +0000 (17:20 +0000)]
Merge "Ignore duplicate key errors in update-keys.sql"

9 years agoMerge "Add release notes for Iac37a2369"
jenkins-bot [Wed, 10 Sep 2014 17:04:34 +0000 (17:04 +0000)]
Merge "Add release notes for Iac37a2369"

9 years agoAdd release notes for Iac37a2369
Kunal Mehta [Wed, 10 Sep 2014 16:56:21 +0000 (09:56 -0700)]
Add release notes for Iac37a2369

Change-Id: I986448d862bd1023440ff85a912e3d7267a3579f

9 years agoAvoid a fatal error in maintenance/cleanupTitles.php
Alexandre Emsenhuber [Mon, 8 Sep 2014 18:54:53 +0000 (20:54 +0200)]
Avoid a fatal error in maintenance/cleanupTitles.php

Title::makeTitleSafe() can return null; so only call
exists() if an object was returned, and otherwise behave
the same way as if the page existed: use another name.

Change-Id: I75ea5c5b25fa5fdf6646a177a5fbccc0dbff9b47

9 years agoMerge "Merge mediawiki.legacy.upload into mediawiki.special.upload"
jenkins-bot [Wed, 10 Sep 2014 16:46:09 +0000 (16:46 +0000)]
Merge "Merge mediawiki.legacy.upload into mediawiki.special.upload"

9 years agoMerge "Added DatabaseBase::selectRowCount() method"
jenkins-bot [Wed, 10 Sep 2014 14:52:28 +0000 (14:52 +0000)]
Merge "Added DatabaseBase::selectRowCount() method"

9 years agoMerge "Fix malformed UTF-8 going to query profiler"
jenkins-bot [Wed, 10 Sep 2014 11:45:48 +0000 (11:45 +0000)]
Merge "Fix malformed UTF-8 going to query profiler"

9 years agoMerge "Maintenance: Add an easy way to access Config instances"
jenkins-bot [Wed, 10 Sep 2014 11:32:11 +0000 (11:32 +0000)]
Merge "Maintenance: Add an easy way to access Config instances"

9 years agoMerge "StatCounter: Use Config instead of globals"
jenkins-bot [Wed, 10 Sep 2014 10:07:57 +0000 (10:07 +0000)]
Merge "StatCounter: Use Config instead of globals"

9 years agoMaintenance: Add an easy way to access Config instances
Kunal Mehta [Thu, 7 Aug 2014 20:57:14 +0000 (21:57 +0100)]
Maintenance: Add an easy way to access Config instances

Change-Id: I97d50c624e988c70bb2ac0da4fc33957ce3cf524

9 years agoStatCounter: Use Config instead of globals
Kunal Mehta [Wed, 10 Sep 2014 00:18:00 +0000 (17:18 -0700)]
StatCounter: Use Config instead of globals

Change-Id: I5b2281291c907ce543e8aa0400b0bda3bf253579

9 years agoMerge "Apply vform styling to HTMLForm buttons"
jenkins-bot [Wed, 10 Sep 2014 00:05:32 +0000 (00:05 +0000)]
Merge "Apply vform styling to HTMLForm buttons"

9 years agoSpecialUpload: Use Config instead of global
Florian [Fri, 1 Aug 2014 14:56:29 +0000 (16:56 +0200)]
SpecialUpload: Use Config instead of global

Bug: 69188
Change-Id: I40f6e17aea365b88ba5c445580f445c3b03d0f31

9 years agoAdd padding to printfooter
Amir E. Aharoni [Tue, 9 Sep 2014 20:04:30 +0000 (23:04 +0300)]
Add padding to printfooter

Without padding it sticks too close to the categories
and to the article text.

Change-Id: I04cbd1daed470f33b8212f10622736fd17525ddd

9 years agoMerge "Language: s/error_log/wfWarn/"
jenkins-bot [Tue, 9 Sep 2014 19:50:03 +0000 (19:50 +0000)]
Merge "Language: s/error_log/wfWarn/"

9 years agoMerge "UploadFromUrlTest: Don't reference skins/common/ (via bits.wm.o)"
jenkins-bot [Tue, 9 Sep 2014 19:43:08 +0000 (19:43 +0000)]
Merge "UploadFromUrlTest: Don't reference skins/common/ (via bits.wm.o)"

9 years agoDeprecate defunct Skin::getCommonStylePath()
Bartosz Dziewoński [Tue, 9 Sep 2014 15:26:23 +0000 (17:26 +0200)]
Deprecate defunct Skin::getCommonStylePath()

Change-Id: I5e4b870363ff885a4625c2d059048e85395fd159

9 years agoMerge "Fix undefined argument in OldChangesList"
jenkins-bot [Tue, 9 Sep 2014 14:30:29 +0000 (14:30 +0000)]
Merge "Fix undefined argument in OldChangesList"

9 years agoFix undefined argument in OldChangesList
aude [Sat, 6 Sep 2014 16:40:52 +0000 (18:40 +0200)]
Fix undefined argument in OldChangesList

Bug: 70407
Change-Id: I17bbaeaf7c9cae51e33c859867ef3a3199b68a43

9 years agoPass OutputPage to SkinTemplateGetLanguageLink hook.
daniel [Tue, 9 Sep 2014 10:34:24 +0000 (12:34 +0200)]
Pass OutputPage to SkinTemplateGetLanguageLink hook.

Hook handlers should have access to the OutputPage object,
so they can use information stored there for generating
language links. This is needed to allow efficient generation
of "badges" by the Wikibase extension.

Change-Id: Ic479e2fa5cc3a4d663e478858caee2742e6805b9

9 years agoMerge "Add linkTrail for Central Kurdish (ckb)"
jenkins-bot [Tue, 9 Sep 2014 06:23:45 +0000 (06:23 +0000)]
Merge "Add linkTrail for Central Kurdish (ckb)"

9 years agoMerge "Add content-not-allowed-here to API message map"
jenkins-bot [Tue, 9 Sep 2014 05:10:06 +0000 (05:10 +0000)]
Merge "Add content-not-allowed-here to API message map"

9 years agoUpdate OOjs UI to v0.1.0-pre (1c5e409ab1)
James D. Forrester [Tue, 9 Sep 2014 01:20:42 +0000 (18:20 -0700)]
Update OOjs UI to v0.1.0-pre (1c5e409ab1)

New changes:
83193e5 Make tools wrapper display inline so tools wrap around actions
1c5e409 Add backgrounds and borders to dropdowns in Minerva

Change-Id: I93e35c207042fe5efdc3e01498405c9ec606c67a

9 years agoAdd content-not-allowed-here to API message map
Alex Monk [Tue, 9 Sep 2014 01:16:04 +0000 (02:16 +0100)]
Add content-not-allowed-here to API message map

So we don't get 'Unknown error: "content-not-allowed-here"'

Bug: 70593
Change-Id: Ibde9eb45c798a7b3abef088f7abd78c926d13031

9 years agoCurlHttpRequest: Check library version, not CURLOPT_REDIR_PROTOCOLS
Kevin Israel [Mon, 8 Sep 2014 22:15:09 +0000 (18:15 -0400)]
CurlHttpRequest: Check library version, not CURLOPT_REDIR_PROTOCOLS

This works around <https://github.com/facebook/hhvm/issues/3702>.
We don't actually use the constant, so checking the library version
should suffice.

Bug: 70570
Change-Id: I732d8f7eb2908bae10100594f693cf7a63f8b5b1

9 years agoMerge "Update OOjs UI to v0.1.0-pre (cc3c62607c)"
jenkins-bot [Mon, 8 Sep 2014 20:39:23 +0000 (20:39 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (cc3c62607c)"

9 years agoIgnore duplicate key errors in update-keys.sql
Max Semenik [Mon, 8 Sep 2014 19:16:02 +0000 (12:16 -0700)]
Ignore duplicate key errors in update-keys.sql

Otherwise, reinstalls can fail.

Change-Id: Ie4f7f73152a055f9a8d69970c22795433f564b26

9 years agoAdd linkTrail for Central Kurdish (ckb)
Calak [Mon, 8 Sep 2014 19:21:33 +0000 (19:21 +0000)]
Add linkTrail for Central Kurdish (ckb)

Like other RTL wikis; Persian (fa) and Arabic (ar)

Change-Id: I42125730fa5f5415963d91eb8042a1a079b4f7b7

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Mon, 8 Sep 2014 19:17:22 +0000 (19:17 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Html: Don't accept paths relative to skins/common/images/ in infoBox()"
jenkins-bot [Mon, 8 Sep 2014 19:15:51 +0000 (19:15 +0000)]
Merge "Html: Don't accept paths relative to skins/common/images/ in infoBox()"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 8 Sep 2014 19:15:49 +0000 (21:15 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id20ad6471e08b3582bc93cb25999530daa003a53

9 years agoMerge "CategoryFinder: give parent category tree an accessor"
jenkins-bot [Mon, 8 Sep 2014 19:05:51 +0000 (19:05 +0000)]
Merge "CategoryFinder: give parent category tree an accessor"

9 years agoHtml: Don't accept paths relative to skins/common/images/ in infoBox()
Bartosz Dziewoński [Fri, 5 Sep 2014 18:17:40 +0000 (20:17 +0200)]
Html: Don't accept paths relative to skins/common/images/ in infoBox()

There are no files worth referencing there anymore.

No usages found in extensions, only one usage in core already didn't
depend on that behavior.

Change-Id: If1fd68a3a7355c8195fd2aad86e7584a5772bd4c

9 years agoMerge "When getting remote config, if the caller requested a single setting without...
jenkins-bot [Mon, 8 Sep 2014 18:48:05 +0000 (18:48 +0000)]
Merge "When getting remote config, if the caller requested a single setting without an array, always do that"

9 years agoUpdate OOjs UI to v0.1.0-pre (cc3c62607c)
James D. Forrester [Mon, 8 Sep 2014 18:26:16 +0000 (11:26 -0700)]
Update OOjs UI to v0.1.0-pre (cc3c62607c)

New changes:
cc3c626 Make help button for FieldLayout frameless again

Change-Id: Ic6fecd07b680a544e165e2813fc92360d18ad2bf

9 years agoMerge "Don't let LTR usernames jumble RTL watchlists"
jenkins-bot [Mon, 8 Sep 2014 18:03:17 +0000 (18:03 +0000)]
Merge "Don't let LTR usernames jumble RTL watchlists"

9 years agoFix indentation in ParserOutput.php
Brad Jorsch [Mon, 8 Sep 2014 15:00:14 +0000 (11:00 -0400)]
Fix indentation in ParserOutput.php

Looks like someone's IDE indenter malfunctioned in Ibe3e88fa.

Change-Id: I328c1485e53568bb7005a8ba00ed5cf6ffe2633b

9 years agoMerge "API: created a new api to flag messages as read"
jenkins-bot [Mon, 8 Sep 2014 15:20:30 +0000 (15:20 +0000)]
Merge "API: created a new api to flag messages as read"

9 years agoMerge "Chunked upload result should consistently have a "stage" value for "Poll""
jenkins-bot [Mon, 8 Sep 2014 15:16:53 +0000 (15:16 +0000)]
Merge "Chunked upload result should consistently have a "stage" value for "Poll""

9 years agoDon't let LTR usernames jumble RTL watchlists
Amir E. Aharoni [Mon, 8 Sep 2014 15:06:33 +0000 (18:06 +0300)]
Don't let LTR usernames jumble RTL watchlists

Adding unicode-bidi: embed isolates them from other
fields like time, title, summary etc.

This is particularly relevant to showing Wikidata changes.

Change-Id: I5c3f53318fcbfed75b0df9e24e5ff8636c0fea4b

9 years agoMerge "Make the PHP code snippet in SkinFallbackTemplate explicitly ltr"
jenkins-bot [Mon, 8 Sep 2014 14:36:16 +0000 (14:36 +0000)]
Merge "Make the PHP code snippet in SkinFallbackTemplate explicitly ltr"

9 years agoMerge "$wgAuth is no longer a stub object"
jenkins-bot [Mon, 8 Sep 2014 13:41:45 +0000 (13:41 +0000)]
Merge "$wgAuth is no longer a stub object"

9 years agoAdd @covers tags to ApiModuleManagerTest
Kunal Mehta [Mon, 8 Sep 2014 09:03:06 +0000 (02:03 -0700)]
Add @covers tags to ApiModuleManagerTest

Change-Id: Iaac773576a663d2f426632ad95f94b3556ef15b2

9 years agoAdd ApiModuleManager::getClassName()
Kunal Mehta [Fri, 15 Aug 2014 22:45:16 +0000 (15:45 -0700)]
Add ApiModuleManager::getClassName()

In cases where an extension has multiple API modules that
have the same exact factory requirements, it would let them
use the same factory function and check with the module manager
what the class name to construct should be. This is already possible
using getNamesWithClasses, but this makes it much more
straightforward.

Change-Id: I889e3e6f15907896a8df376913125d903debe984

9 years ago$wgAuth is no longer a stub object
Kunal Mehta [Wed, 13 Aug 2014 22:40:01 +0000 (15:40 -0700)]
$wgAuth is no longer a stub object

Follows-up Icb36e47a

Change-Id: I92031c905cd61cc31eae34c90f2ce49a8f84ba8b

9 years agoChunked upload result should consistently have a "stage" value for "Poll"
Gilles Dubuc [Fri, 5 Sep 2014 07:31:00 +0000 (09:31 +0200)]
Chunked upload result should consistently have a "stage" value for "Poll"

Change-Id: If9c2b215c43eef002482695701182c471f8bb450
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/855

9 years agoUpdate Moment.js from 2.8.1 to 2.8.3
paladox [Sat, 6 Sep 2014 12:54:30 +0000 (12:54 +0000)]
Update Moment.js from 2.8.1 to 2.8.3

Project site
* http://momentjs.com
* https://github.com/moment/moment/

File source
* https://github.com/moment/moment/tree/2.8.3

Changelog
* https://github.com/moment/moment/blob/2.8.3/CHANGELOG.md

Difference between 2.8.1 and 2.8.3

1.8.3

Bugfixes:
* #1801 proper pluralization for Arabic
* #1833 improve spm integration
* #1871 fix zone bug caused by Firefox 24
* #1882 Use hh:mm in Czech
* #1883 Fix 2.8.0 regression in duration as conversions
* #1890 Faster travis builds
* #1892 Faster isBefore/After/Same
* #1848 Fix flaky month diffs
* #1895 Fix 2.8.0 regression in moment.utc with format array
* #1896 Support setting invalid instance locale (noop)
* #1897 Support moment([str]) in addition to moment([int])

1.8.2

Minor bugfixes:
* #1874 use  Object.prototype.hasOwnProperty  instead of obj.hasOwnProperty  (ie8 bug)
* #1873 add  duration#toString()
* #1859 better month/weekday names in norwegian
* #1812 meridiem parsing for greek
* #1804 spanish del -> de
* #1800 korean LT improvement

Change-Id: I60595e8ea41e136c7afee12ad3702ecec6dd4aef

9 years agoMerge "resourceloader: Only store sources' load.php urls"
jenkins-bot [Sun, 7 Sep 2014 23:10:33 +0000 (23:10 +0000)]
Merge "resourceloader: Only store sources' load.php urls"

9 years agoMerge "Warn about bug 44011"
jenkins-bot [Sun, 7 Sep 2014 22:28:21 +0000 (22:28 +0000)]
Merge "Warn about bug 44011"

9 years agoMerge "Article: Don't hardcode <img> tags on redirect page"
jenkins-bot [Sun, 7 Sep 2014 21:36:03 +0000 (21:36 +0000)]
Merge "Article: Don't hardcode <img> tags on redirect page"

9 years agoMerge "Move mediawiki.png to assets/ directory"
jenkins-bot [Sun, 7 Sep 2014 21:26:50 +0000 (21:26 +0000)]
Merge "Move mediawiki.png to assets/ directory"

9 years agoMerge "Move file type icons to new assets/ directory"
jenkins-bot [Sun, 7 Sep 2014 21:26:00 +0000 (21:26 +0000)]
Merge "Move file type icons to new assets/ directory"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 7 Sep 2014 19:30:51 +0000 (21:30 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5e83ff26f39d55131aceb150cb814e073c243d1e

9 years agoWarn about bug 44011
Jackmcbarn [Sun, 7 Sep 2014 15:08:20 +0000 (11:08 -0400)]
Warn about bug 44011

Add a note to the documentation for $wgURLProtocols warning about
bug #44011.

Change-Id: Ifc8a1efefb862173c897796395532fda8300439f

9 years agoRemove JSONContentHandler::$contentClass
Kunal Mehta [Tue, 2 Sep 2014 00:57:24 +0000 (17:57 -0700)]
Remove JSONContentHandler::$contentClass

Was deprecated in I70f1a3291.

Change-Id: I92d0fae344e158b9c46f2297c78a2e65fc3516db

9 years agoWhen getting remote config, if the caller requested a single setting without an array...
Alex Monk [Sat, 6 Sep 2014 21:42:02 +0000 (22:42 +0100)]
When getting remote config, if the caller requested a single setting without an array, always do that

Even if it comes from the cache. See Idfec62d5 review comments for PS43.

Change-Id: I67ceef7fec61b7f37728f120354bd886018d244e

9 years agoAPI: created a new api to flag messages as read
Petr Bena [Tue, 26 Aug 2014 13:06:12 +0000 (15:06 +0200)]
API: created a new api to flag messages as read

New api is called "ClearHasMsg" and does nothing but erase a new message
flag from currently logged in user.

This is useful for tools that can read the new messages using some api, or some
other way (loading the text using different session, preload the text using a
buffer where it's unrevealed later if user actually did read it, or closed the
application before), so it can be useful in situations when you need to flag new
messages as read in a different time than that when you actually read them.

Bug: 64238
Change-Id: Ife575711c32bb8e3bcac789de4a6b37e1888d032

9 years agoMerge "Article: Localize alt text of redirect icon"
jenkins-bot [Sat, 6 Sep 2014 12:54:30 +0000 (12:54 +0000)]
Merge "Article: Localize alt text of redirect icon"

9 years agoMake the PHP code snippet in SkinFallbackTemplate explicitly ltr
Amir E. Aharoni [Sat, 6 Sep 2014 12:46:56 +0000 (15:46 +0300)]
Make the PHP code snippet in SkinFallbackTemplate explicitly ltr

Change-Id: If03a72706b94663b38a41f778a046b2fc325f260

9 years agoMimeMagic: Use Config instead of globals
Kunal Mehta [Sat, 23 Aug 2014 08:13:19 +0000 (01:13 -0700)]
MimeMagic: Use Config instead of globals

Change-Id: I07d1420deddeb886c714d7e2c99f8b456573a07f

9 years agomediawiki.ui: Correct documentation numbering in form component
Prateek Saxena [Sat, 6 Sep 2014 11:20:43 +0000 (16:50 +0530)]
mediawiki.ui: Correct documentation numbering in form component

Change-Id: I38d5df1fe9122080168dce7060be53bdb4963e99

9 years agoUpdate OOjs UI to v0.1.0-pre (72f047e5d8)
James D. Forrester [Sat, 6 Sep 2014 00:15:09 +0000 (17:15 -0700)]
Update OOjs UI to v0.1.0-pre (72f047e5d8)

New changes:
72f047e Followup 67f83f1: fall back to empty string to avoid 'undefined'

Change-Id: Ieb49700a48e2a2c7b00fec551e96ed7830dc3f01

9 years agoMerge "mw.Debug.profile: Tweak support check to handle PhantomJS"
jenkins-bot [Fri, 5 Sep 2014 23:28:20 +0000 (23:28 +0000)]
Merge "mw.Debug.profile: Tweak support check to handle PhantomJS"

9 years agoMerge "img_auth: fix mismatched profiling"
jenkins-bot [Fri, 5 Sep 2014 23:17:12 +0000 (23:17 +0000)]
Merge "img_auth: fix mismatched profiling"

9 years agoMerge "resourceloader: Pass a Config to the ResourceLoader constructor"
jenkins-bot [Fri, 5 Sep 2014 23:06:31 +0000 (23:06 +0000)]
Merge "resourceloader: Pass a Config to the ResourceLoader constructor"

9 years agoimg_auth: fix mismatched profiling
Chad Horohoe [Fri, 5 Sep 2014 23:04:42 +0000 (16:04 -0700)]
img_auth: fix mismatched profiling

Change-Id: Iab2ed48ef00e55dcf5313b9c2a94ffdca2fdb790

9 years agoresourceloader: Pass a Config to the ResourceLoader constructor
Kunal Mehta [Sat, 23 Aug 2014 06:18:20 +0000 (23:18 -0700)]
resourceloader: Pass a Config to the ResourceLoader constructor

Instead of relying on the default being main, which is deprecated.

Change-Id: I200e2c2dc922ae1fa5fa68d449403d0287e41786

9 years agomw.Debug.profile: Tweak support check to handle PhantomJS
Matthew Flaschen [Fri, 11 Jul 2014 04:40:40 +0000 (00:40 -0400)]
mw.Debug.profile: Tweak support check to handle PhantomJS

* Latest PhantomJS (1.9.7) supports Array.prototype.map,
  Array.prototype.reduce, Array.prototype.filter, and
  document.createElementNS, but not Function.prototype.bind
* Check all of these in the init function, and if they're available
  continue (unless there's no profiling data) and initialize
  this.createSvgElement (previously done inline)
* Accordingly, rename buildRequiresES5 to buildRequiresBrowserFeatures
  and tweak message

Change-Id: If464b1093ec445afbb6c6b8c230e0e2669ad8c5c