lhc/web/wiklou.git
9 years agoMerge "Add anchor "mw-oldid" for beginning of page content in diff view"
jenkins-bot [Wed, 4 Mar 2015 10:22:58 +0000 (10:22 +0000)]
Merge "Add anchor "mw-oldid" for beginning of page content in diff view"

9 years agoAdd anchor "mw-oldid" for beginning of page content in diff view
Federico Leva [Fri, 16 Jan 2015 22:50:34 +0000 (23:50 +0100)]
Add anchor "mw-oldid" for beginning of page content in diff view

* #top, #mw-content-text and others exist, but all point to the
  beginning of the diff, not of the actual page content.
* Pick mw- prefix and technical but familiar related name, in
  the hope it's not confusing nor too hard to remember.
* Lowercase letters, similar to #top, #footer, #file etc. were also
  considered and discard, inspired to usual names:
  https://www.wikidata.org/wiki/Q10966628

Bug: T4313
Change-Id: Ia90f2541327480535e9943ac30bfa19791a19620

9 years agoMerge "Remove unused alias/layer of test abstraction wfShellMaintenanceCmd()"
jenkins-bot [Wed, 4 Mar 2015 06:48:14 +0000 (06:48 +0000)]
Merge "Remove unused alias/layer of test abstraction wfShellMaintenanceCmd()"

9 years agoMerge "Moved some JobQueueAggregator logic out of JobQueueGroup"
jenkins-bot [Wed, 4 Mar 2015 06:16:51 +0000 (06:16 +0000)]
Merge "Moved some JobQueueAggregator logic out of JobQueueGroup"

9 years agoRemove unused alias/layer of test abstraction wfShellMaintenanceCmd()
Chad Horohoe [Wed, 4 Mar 2015 06:15:52 +0000 (22:15 -0800)]
Remove unused alias/layer of test abstraction wfShellMaintenanceCmd()

Change-Id: I28d303f9b89ffad052d06eb2dbb9e6f8cfaeea24

9 years agoMerge "Removed obsolete "containsOldMagic" code"
jenkins-bot [Wed, 4 Mar 2015 06:02:04 +0000 (06:02 +0000)]
Merge "Removed obsolete "containsOldMagic" code"

9 years agoMoved some JobQueueAggregator logic out of JobQueueGroup
Aaron Schulz [Mon, 16 Feb 2015 23:34:53 +0000 (15:34 -0800)]
Moved some JobQueueAggregator logic out of JobQueueGroup

Change-Id: I28ba1a25db225d4cf5f503a6c0f4405f13118151

9 years agoMerge "Delay language conversion cache construction until needed"
jenkins-bot [Wed, 4 Mar 2015 05:49:35 +0000 (05:49 +0000)]
Merge "Delay language conversion cache construction until needed"

9 years agoMerge "Removed overzealous caching from JobQueueFederated"
jenkins-bot [Wed, 4 Mar 2015 05:48:38 +0000 (05:48 +0000)]
Merge "Removed overzealous caching from JobQueueFederated"

9 years agoMerge "Profile all external HTTP requests from MW"
jenkins-bot [Wed, 4 Mar 2015 05:39:36 +0000 (05:39 +0000)]
Merge "Profile all external HTTP requests from MW"

9 years agoMerge "Made master connection expectations actually work"
jenkins-bot [Wed, 4 Mar 2015 05:26:49 +0000 (05:26 +0000)]
Merge "Made master connection expectations actually work"

9 years agoDelay language conversion cache construction until needed
Chad Horohoe [Wed, 4 Mar 2015 05:10:57 +0000 (21:10 -0800)]
Delay language conversion cache construction until needed

Instead of instantiating this on every single request. Removes
wfGetLangConverterCacheStorage() and $wgLangConvMemc which were
otherwise unused.

Change-Id: Ic500944a92c2a94bc649e1b492c33714d81dca00

9 years agoMerge "Allow profiling of Http requests"
jenkins-bot [Wed, 4 Mar 2015 05:02:47 +0000 (05:02 +0000)]
Merge "Allow profiling of Http requests"

9 years agoProfile all external HTTP requests from MW
Chad Horohoe [Fri, 27 Feb 2015 17:08:06 +0000 (09:08 -0800)]
Profile all external HTTP requests from MW

Change-Id: Ie980b080da2ef21ec7d9fc32f1accc55710de140

9 years agoAllow profiling of Http requests
Chad Horohoe [Fri, 27 Feb 2015 16:35:22 +0000 (08:35 -0800)]
Allow profiling of Http requests

Http::get/set/request() now all take a new $caller parameter
which is like $fname in databases. Pass it __METHOD__ so all
of your external requests can be grouped together in profiling.

Change-Id: Ibad219452903a9678378044595cff1231bf605d8

9 years agoShorten long lines in UserRightsProxy.php to make phpcs pass
Amir E. Aharoni [Tue, 3 Mar 2015 18:29:54 +0000 (20:29 +0200)]
Shorten long lines in UserRightsProxy.php to make phpcs pass

Change-Id: Ib9c2b2ed4bdfe895764a3af6444e48522f4808d7

9 years agoShorten long lines in User.php to make phpcs pass
Amir E. Aharoni [Tue, 3 Mar 2015 18:29:40 +0000 (20:29 +0200)]
Shorten long lines in User.php to make phpcs pass

Change-Id: Id0938687439d046b98d7b3a4b7666ff7ae41760a

9 years agoAllow dumping raw xhprof data for consumption by xhprof GUI
Stanislav Malyshev [Tue, 3 Mar 2015 23:17:02 +0000 (15:17 -0800)]
Allow dumping raw xhprof data for consumption by xhprof GUI

Change-Id: Iab90cef1c61b92ffc6d46a6bc93a03cf7bc2adb9

9 years agoMerge "resourceloader: Implement '$pages' parameter to ResourceLoaderWikiModule const...
jenkins-bot [Tue, 3 Mar 2015 22:52:22 +0000 (22:52 +0000)]
Merge "resourceloader: Implement '$pages' parameter to ResourceLoaderWikiModule constructor"

9 years agoMerge "mediawiki.user: Check crypto.getRandomValues before use"
jenkins-bot [Tue, 3 Mar 2015 22:50:30 +0000 (22:50 +0000)]
Merge "mediawiki.user: Check crypto.getRandomValues before use"

9 years agoMerge "Shorten long lines in MovePage.php to make phpcs pass"
jenkins-bot [Tue, 3 Mar 2015 22:32:12 +0000 (22:32 +0000)]
Merge "Shorten long lines in MovePage.php to make phpcs pass"

9 years agomediawiki.user: Check crypto.getRandomValues before use
umherirrender [Tue, 3 Mar 2015 18:21:51 +0000 (19:21 +0100)]
mediawiki.user: Check crypto.getRandomValues before use

Firefox in version 16 implements crypto, but not function
getRandomValues, which causes a JavaScript error.

Bug: T91378
Change-Id: If4320e83af74bb1e90cc16d739d143a4bac7471b

9 years agoMerge "Shorten long lines in Linker.php to make phpcs pass"
jenkins-bot [Tue, 3 Mar 2015 22:17:09 +0000 (22:17 +0000)]
Merge "Shorten long lines in Linker.php to make phpcs pass"

9 years agoMerge "Shorten long lines in Html.php to make phpcs pass"
jenkins-bot [Tue, 3 Mar 2015 22:16:42 +0000 (22:16 +0000)]
Merge "Shorten long lines in Html.php to make phpcs pass"

9 years agoMerge "Shorten long lines and use consistent tabs in DefaultSettings.php"
jenkins-bot [Tue, 3 Mar 2015 22:16:39 +0000 (22:16 +0000)]
Merge "Shorten long lines and use consistent tabs in DefaultSettings.php"

9 years agoShorten long lines in MovePage.php to make phpcs pass
Amir E. Aharoni [Tue, 3 Mar 2015 18:29:04 +0000 (20:29 +0200)]
Shorten long lines in MovePage.php to make phpcs pass

Change-Id: I4b6b2975f8e2b9508f0a78fb176093974c935cf1

9 years agoShorten long lines in Linker.php to make phpcs pass
Amir E. Aharoni [Tue, 3 Mar 2015 18:28:08 +0000 (20:28 +0200)]
Shorten long lines in Linker.php to make phpcs pass

Change-Id: Ia3376560dfd321252babc2ac3edd88764a16bce1

9 years agoAPI: Add caution to docs for ApiBase::getCustomPrinter
Brad Jorsch [Tue, 3 Mar 2015 21:46:14 +0000 (16:46 -0500)]
API: Add caution to docs for ApiBase::getCustomPrinter

Change-Id: I37737cfd65fffa4f19ad35d3443e881acc4918db

9 years agoMerge "Removed old HTMLCacheUpdateJob b/c code"
jenkins-bot [Tue, 3 Mar 2015 21:46:50 +0000 (21:46 +0000)]
Merge "Removed old HTMLCacheUpdateJob b/c code"

9 years agoShorten long lines in Html.php to make phpcs pass
Amir E. Aharoni [Tue, 3 Mar 2015 18:27:51 +0000 (20:27 +0200)]
Shorten long lines in Html.php to make phpcs pass

Change-Id: I5060b510105aa08f1cb4804e2c33d8e1b00ef390

9 years agoMerge "Fix and re-enable Dumps' checkpoint tests"
jenkins-bot [Tue, 3 Mar 2015 21:35:38 +0000 (21:35 +0000)]
Merge "Fix and re-enable Dumps' checkpoint tests"

9 years agoMerge "Allow to set stub read buffer size for TextPassDumper"
jenkins-bot [Tue, 3 Mar 2015 21:35:34 +0000 (21:35 +0000)]
Merge "Allow to set stub read buffer size for TextPassDumper"

9 years agoShorten long lines and use consistent tabs in DefaultSettings.php
Amir E. Aharoni [Tue, 3 Mar 2015 18:27:27 +0000 (20:27 +0200)]
Shorten long lines and use consistent tabs in DefaultSettings.php

To make phpcs pass.

Change-Id: Iff20470d1db409ed91577058204d0254c461ba76

9 years agoMade master connection expectations actually work
Aaron Schulz [Tue, 3 Mar 2015 21:18:18 +0000 (13:18 -0800)]
Made master connection expectations actually work

Bug: \96T86862
Change-Id: If918904c6c02ea83473dfaf34dfc2787ab610c6f

9 years agoMerge "Removed pointless memcached JobQueueAggregator class"
jenkins-bot [Tue, 3 Mar 2015 20:56:02 +0000 (20:56 +0000)]
Merge "Removed pointless memcached JobQueueAggregator class"

9 years agoRemoved pointless memcached JobQueueAggregator class
Aaron Schulz [Mon, 16 Feb 2015 22:41:31 +0000 (14:41 -0800)]
Removed pointless memcached JobQueueAggregator class

* On a basic/default install there is only a single wiki
  and nothing uses this. Larger wikis would want to use redis.

Change-Id: Ie5bf1a644ae60b2c6ca72b165fa5510113717611

9 years agoMerge "Made JobRunner bail sooner for bogus job --type parameters"
jenkins-bot [Tue, 3 Mar 2015 20:42:20 +0000 (20:42 +0000)]
Merge "Made JobRunner bail sooner for bogus job --type parameters"

9 years agoRemoved old HTMLCacheUpdateJob b/c code
Aaron Schulz [Sun, 15 Feb 2015 22:02:48 +0000 (14:02 -0800)]
Removed old HTMLCacheUpdateJob b/c code

* Also supports simple per-title jobs now

Change-Id: I9c976cdf93b8d1e171988722adc3695935ac43e0

9 years agoMade JobRunner bail sooner for bogus job --type parameters
Aaron Schulz [Tue, 3 Mar 2015 20:20:12 +0000 (12:20 -0800)]
Made JobRunner bail sooner for bogus job --type parameters

Change-Id: I1259682b8a6543e76f1c9a4d99324b457115a277

9 years agomediawiki.feedback: Set the message input to be autosized
Bartosz Dziewoński [Tue, 3 Mar 2015 18:57:29 +0000 (19:57 +0100)]
mediawiki.feedback: Set the message input to be autosized

It's tiny!

Change-Id: I82f689d2cc51500cb3c19300e3b14e14eb71ecb1

9 years agoMerge "Refactoring mw.Feedback to work with OOUI elements"
jenkins-bot [Tue, 3 Mar 2015 18:39:03 +0000 (18:39 +0000)]
Merge "Refactoring mw.Feedback to work with OOUI elements"

9 years agoResources.php: Simplify dependencies to single modules
Fomafix [Tue, 3 Mar 2015 15:53:49 +0000 (15:53 +0000)]
Resources.php: Simplify dependencies to single modules

Change-Id: Icaa81662243259f166a28e3b6bb5b8ac6fea4bb3

9 years agoShorten long lines in Language.php to make phpcs pass
Amir E. Aharoni [Tue, 3 Mar 2015 08:55:08 +0000 (10:55 +0200)]
Shorten long lines in Language.php to make phpcs pass

Change-Id: Ied04ebc64cd5a6e54bd0c3de5845342ec89d4d1c

9 years agoresourceloader: Implement '$pages' parameter to ResourceLoaderWikiModule constructor
Kunal Mehta [Tue, 21 Oct 2014 00:43:26 +0000 (17:43 -0700)]
resourceloader: Implement '$pages' parameter to ResourceLoaderWikiModule constructor

This makes it easier for subclasses to use ResourceLoaderWikiModule. Currently
many subclasses of this simply need to override the getPages() method.

UserModule and SiteModule keep their getPages override due to the set of pages
being dependent on context.

Change-Id: I388531398671afacfec36c6c5746d72267b5bdac

9 years agoMerge "resourceloader: Clean up UserModule to be more like UserGroupsModule"
jenkins-bot [Tue, 3 Mar 2015 17:11:59 +0000 (17:11 +0000)]
Merge "resourceloader: Clean up UserModule to be more like UserGroupsModule"

9 years agoMerge "Text color for quiet buttons should not be lightened"
jenkins-bot [Tue, 3 Mar 2015 17:02:13 +0000 (17:02 +0000)]
Merge "Text color for quiet buttons should not be lightened"

9 years agoresourceloader: Clean up UserModule to be more like UserGroupsModule
Timo Tijhof [Sun, 1 Mar 2015 15:25:39 +0000 (16:25 +0100)]
resourceloader: Clean up UserModule to be more like UserGroupsModule

Change-Id: Ic988c36c034b2862e6404bb6b6b7fe24d171fef1

9 years agoMerge "API: Handle invalid titles in action=feedwatchlist"
jenkins-bot [Tue, 3 Mar 2015 16:59:15 +0000 (16:59 +0000)]
Merge "API: Handle invalid titles in action=feedwatchlist"

9 years agoRevert "Made insertMessageBlob use (start|end)Atomic in case DBO_TRX is off"
Krinkle [Tue, 3 Mar 2015 15:59:45 +0000 (15:59 +0000)]
Revert "Made insertMessageBlob use (start|end)Atomic in case DBO_TRX is off"

Per T91399.

This reverts commit 80a3a30d6a90b21f68cca4dfe5b3623cb9e5e7fc.

Change-Id: I2aacfbac2ab25a4662d6bee544e3f953770dc925

9 years agoAPI: Handle invalid titles in action=feedwatchlist
Brad Jorsch [Tue, 3 Mar 2015 15:10:20 +0000 (10:10 -0500)]
API: Handle invalid titles in action=feedwatchlist

When new interwiki prefixes or the like get added, it can cause existing
watchlist entries to become invalid. Let's handle this more gracefully than
"Fatal error: Call to a member function getFullURL() on a non-object".

Bug: T44274
Change-Id: I9476fa7a86aaae810b8c0c2da08a9317451a0bdf

9 years agoMerge "mediawiki.user: Simplify extension of mw.user"
jenkins-bot [Tue, 3 Mar 2015 10:07:26 +0000 (10:07 +0000)]
Merge "mediawiki.user: Simplify extension of mw.user"

9 years agoAdd explicit array cast in Language::getGenderNsText
umherirrender [Sat, 21 Feb 2015 09:58:01 +0000 (10:58 +0100)]
Add explicit array cast in Language::getGenderNsText

Similiar to r102414

Bug: T43194
Change-Id: I868b31b3862539d4782912d5b6e5d3ce5d9b4f60

9 years agoMerge "Add hook EnhancedChangesList::getLogText"
jenkins-bot [Tue, 3 Mar 2015 04:15:19 +0000 (04:15 +0000)]
Merge "Add hook EnhancedChangesList::getLogText"

9 years agoMade insertMessageBlob use (start|end)Atomic in case DBO_TRX is off
Aaron Schulz [Thu, 26 Feb 2015 21:13:36 +0000 (13:13 -0800)]
Made insertMessageBlob use (start|end)Atomic in case DBO_TRX is off

Change-Id: I6b730e8b4a6cb2d4a82a0cf471c7625ccfd08a0e

9 years agoMerge "Populate User::$idCacheByName in User::loadFromRow() if possible"
jenkins-bot [Tue, 3 Mar 2015 03:03:30 +0000 (03:03 +0000)]
Merge "Populate User::$idCacheByName in User::loadFromRow() if possible"

9 years agoMerge "Make sure hash_hmac() always works even if no secret key"
jenkins-bot [Tue, 3 Mar 2015 02:54:00 +0000 (02:54 +0000)]
Merge "Make sure hash_hmac() always works even if no secret key"

9 years agoAdd hook EnhancedChangesList::getLogText
Matthias Mullie [Thu, 26 Feb 2015 13:10:22 +0000 (14:10 +0100)]
Add hook EnhancedChangesList::getLogText

Enhanced RC generates these "(3 changes | history)" links for
every block of grouped recentchanges. That changes-link links
to a diff page.

For Flow, that is all wrong: we have different ids (not integers),
on a different page (&curid=&oldid=&diff= means nothing). Even
the concept of a "diff" page seems wrong here for us - a new post
is not part of some document that can be diffed.
In short: we'll want to generate a different link, and we'll need
a hook to let us change them.

Meanwhile also split the code that generates those links into a
separate method.

Bug: T72513
Change-Id: Ib32fb9552b80f9581d89b3b47da6e5d32e3d84a3

9 years agoMake "name" a required value of extension.json in the schema
Kunal Mehta [Tue, 3 Mar 2015 00:37:38 +0000 (16:37 -0800)]
Make "name" a required value of extension.json in the schema

The code considers it to be required, so indicate that in the schema as well.

Change-Id: I9c1a279d5675eb10210a3dba5a15fe169619d719

9 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 3 Mar 2015 00:20:48 +0000 (00:20 +0000)]
Merge "Sync up with Parsoid parserTests."

9 years agoText color for quiet buttons should not be lightened
kaldari [Mon, 2 Mar 2015 23:20:22 +0000 (15:20 -0800)]
Text color for quiet buttons should not be lightened

This is part of the effort to synchronize button styles between
MediaWiki UI and OOjs UI. According to the designers, the text
colors for quiet buttons should be the raw non-quiet equivalent
button background colors (not lightened).

Bug: T88449
Change-Id: Ib6ff7167a62c03d0b0427a7161d396e11e173046

9 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Mon, 2 Mar 2015 22:53:01 +0000 (17:53 -0500)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 7608aeabdc1e47ce3dbfffd3ded85eecad647260

Change-Id: I4cb8f04b9d7988e5138c8f040fadeb0b7a9348f9

9 years agoPopulate User::$idCacheByName in User::loadFromRow() if possible
Kunal Mehta [Mon, 2 Mar 2015 22:52:25 +0000 (14:52 -0800)]
Populate User::$idCacheByName in User::loadFromRow() if possible

Change-Id: I4c7dab517ca6b7adcdec0c945e21d6be0b7b7d66

9 years agoClarified RequestContext doc comment
Aaron Schulz [Thu, 26 Feb 2015 21:27:05 +0000 (13:27 -0800)]
Clarified RequestContext doc comment

Change-Id: Ibb2a30634b192f4bc77e0b6b1afebc65b2ed3ec9

9 years agoMerge "Explicitly mark HTMLCacheUpdateJob jobs that are recursive for clarity"
jenkins-bot [Mon, 2 Mar 2015 21:16:21 +0000 (21:16 +0000)]
Merge "Explicitly mark HTMLCacheUpdateJob jobs that are recursive for clarity"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 2 Mar 2015 20:46:49 +0000 (21:46 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib5e92f58763d20ad7f75b3631ebd1db2b1a79ffe

9 years agoMerge "Hide section anchor links from screen readers using aria-hidden"
Brion VIBBER [Mon, 2 Mar 2015 20:27:30 +0000 (20:27 +0000)]
Merge "Hide section anchor links from screen readers using aria-hidden"

9 years agoMerge "Made SqlBagOStuff avoid tripping TransactionProfiler"
Chad [Mon, 2 Mar 2015 20:21:41 +0000 (20:21 +0000)]
Merge "Made SqlBagOStuff avoid tripping TransactionProfiler"

9 years agoMerge "$timeout was optional in Http::get()"
jenkins-bot [Mon, 2 Mar 2015 20:04:34 +0000 (20:04 +0000)]
Merge "$timeout was optional in Http::get()"

9 years agoMerge "Moved JobQueueFederated partition exceptions to their own log"
jenkins-bot [Mon, 2 Mar 2015 19:45:24 +0000 (19:45 +0000)]
Merge "Moved JobQueueFederated partition exceptions to their own log"

9 years ago$timeout was optional in Http::get()
Gilles Dubuc [Mon, 2 Mar 2015 19:25:29 +0000 (20:25 +0100)]
$timeout was optional in Http::get()

Change-Id: I6cd2918412395d1d5f811f0d47bb080f22b598ec

9 years agoMoved JobQueueFederated partition exceptions to their own log
Aaron Schulz [Mon, 2 Mar 2015 19:15:40 +0000 (11:15 -0800)]
Moved JobQueueFederated partition exceptions to their own log

Change-Id: If495e9b1a631b587cb3b8d83974837eef1d2d4c6

9 years agoMerge "Remove $timeout parameter from Http::get()"
jenkins-bot [Mon, 2 Mar 2015 18:53:37 +0000 (18:53 +0000)]
Merge "Remove $timeout parameter from Http::get()"

9 years agoMerge "installer: Remove unused references to wgResourceLoaderMaxQueryLength"
jenkins-bot [Mon, 2 Mar 2015 18:33:05 +0000 (18:33 +0000)]
Merge "installer: Remove unused references to wgResourceLoaderMaxQueryLength"

9 years agoRemove $timeout parameter from Http::get()
Chad Horohoe [Fri, 27 Feb 2015 16:48:21 +0000 (08:48 -0800)]
Remove $timeout parameter from Http::get()

It is inconsistent with request() and post() and there's a couple
of mistaken usages in core and extensions that think they have the
same signature.

Change-Id: I834278639a3648edec7bcb57db7bb61f456d2a92

9 years agoAPI: paraminfo html strings shouldn't include unnecessary <p>s
Brad Jorsch [Thu, 5 Feb 2015 17:11:14 +0000 (12:11 -0500)]
API: paraminfo html strings shouldn't include unnecessary <p>s

If the output is a single paragraph, there's not really a need for
explicit <p> tags around it.

Bug: T84995
Change-Id: I4406121fe0ec099c4a4ade849ef495edad90c2ad

9 years agoHide section anchor links from screen readers using aria-hidden
Bartosz Dziewoński [Mon, 2 Mar 2015 09:16:29 +0000 (10:16 +0100)]
Hide section anchor links from screen readers using aria-hidden

Hide from screen readers, as it is inside a heading (the programs use
headings to navigate, so the symbol is being read during navigation).
Pending T13555 being fixed.

See <https://phabricator.wikimedia.org/T18691#1076371> and
<https://phabricator.wikimedia.org/T18691#1076857> for reasoning.

Bug: T18691
Change-Id: I736cb7f52d5ce37eb7e8d3a3648ffd0bd40f2c83

9 years agoAllow a lonely "-" as positional argument
daniel [Wed, 18 Feb 2015 17:55:27 +0000 (18:55 +0100)]
Allow a lonely "-" as positional argument

Change-Id: I658988c8f955103d6bc4bd1047819a37de0d505d

9 years agoMerge "resourceloader: Let $wgUseSiteCss protect MediaWiki:Print.css as well"
jenkins-bot [Sun, 1 Mar 2015 23:49:03 +0000 (23:49 +0000)]
Merge "resourceloader: Let $wgUseSiteCss protect MediaWiki:Print.css as well"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 1 Mar 2015 20:38:12 +0000 (21:38 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iee49f1dd94d5cc94647b7b47277aee2625db56e1

9 years agoresourceloader: Let $wgUseSiteCss protect MediaWiki:Print.css as well
Timo Tijhof [Sun, 1 Mar 2015 15:21:12 +0000 (16:21 +0100)]
resourceloader: Let $wgUseSiteCss protect MediaWiki:Print.css as well

Follows-up 12a9f0564d1af13.

Change-Id: Id67f98e9d624191d69def262763dbba33050606f

9 years agoAdd composer lint, phpcs, and test commands
Kunal Mehta [Tue, 6 Jan 2015 18:47:25 +0000 (10:47 -0800)]
Add composer lint, phpcs, and test commands

lint uses jakub-onderka/php-parallel-lint to check the syntax of the provided
PHP files or directories.

phpcs uses the MediaWiki codesniffer standard to check the provided files or
directories.

test runs both lint and phpcs together. phpunit is not included at this time
because our phpunit tests require a database to be set up and are very very
slow.

Example usage:
  composer lint .  # Lint all files
  composer phpcs includes/FooBar.php  # Check code style of one file
  composer test extensions/FooBar  # Lint and check an extension

Change-Id: I3c7ac7a02668776de6400ac268f37e7e6b35a3c6

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 28 Feb 2015 20:43:26 +0000 (21:43 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id79fa4748516563b5c8429e08e7edce047b97963

9 years agoMerge "refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()"
jenkins-bot [Sat, 28 Feb 2015 19:58:03 +0000 (19:58 +0000)]
Merge "refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()"

9 years agoinstaller: Remove unused references to wgResourceLoaderMaxQueryLength
Timo Tijhof [Sat, 28 Feb 2015 17:25:33 +0000 (18:25 +0100)]
installer: Remove unused references to wgResourceLoaderMaxQueryLength

* Added in 40e18e45343.
* Removed in 648bed9f839 (r87494).

The latter left the Installer::values array still populating this
variable eventhough it was no longer used in the generators output.

The example in overrides.php is also outdated as modifying this
variable there would have no effect.

Change-Id: I0c86e94a004c034702c5fcd83257c0f4c3d15a57

9 years agoMerge "LivePreview: Wrap content preview with mw-content-*"
jenkins-bot [Sat, 28 Feb 2015 14:47:53 +0000 (14:47 +0000)]
Merge "LivePreview: Wrap content preview with mw-content-*"

9 years agoAvoid access to array key that does not exist
physikerwelt [Fri, 27 Feb 2015 21:53:56 +0000 (16:53 -0500)]
Avoid access to array key that does not exist

Accessing an array element that is not set
causes a PHP notice. This change first, checks if the
array key is present.

Bug: T91127
Change-Id: I468a95851e6acdb8186a06b0a2ac73499cc4611f

9 years agoMerge "Escape messages 'word-separator' and 'parentheses' in InfoAction"
jenkins-bot [Sat, 28 Feb 2015 11:28:54 +0000 (11:28 +0000)]
Merge "Escape messages 'word-separator' and 'parentheses' in InfoAction"

9 years agorefreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()
Kevin Israel [Sat, 28 Feb 2015 09:54:48 +0000 (04:54 -0500)]
refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()

Instead of exiting the do...while loop only once a query returns zero
rows, exit whenever fewer rows than the batch size are returned. This
could save quite a bit of time when the highest nonexistent page_id
found is a relatively low one.

Follows-up 40e300b8273d.

Bug: T44180
Change-Id: I14d2d48c2405fcc0bd05a3181ba6293caef5298c

9 years agoMerge "Gracefully handle redirects in SpecialMyLanguage"
jenkins-bot [Sat, 28 Feb 2015 01:06:30 +0000 (01:06 +0000)]
Merge "Gracefully handle redirects in SpecialMyLanguage"

9 years agoMake sure hash_hmac() always works even if no secret key
kaldari [Fri, 27 Feb 2015 22:40:29 +0000 (14:40 -0800)]
Make sure hash_hmac() always works even if no secret key

Otherwise a fatal error is possible.

Change-Id: Icda96bac3e75f424be068cdad30ad618b503a8e1

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 27 Feb 2015 20:33:56 +0000 (21:33 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I853bf0e029de0348e1ecdcd5cfa624cb12a68947

9 years agoMerge "Made ConfigException extend Exception"
jenkins-bot [Fri, 27 Feb 2015 20:03:25 +0000 (20:03 +0000)]
Merge "Made ConfigException extend Exception"

9 years agoMade ConfigException extend Exception
Aaron Schulz [Fri, 27 Feb 2015 19:24:15 +0000 (11:24 -0800)]
Made ConfigException extend Exception

Change-Id: Ic63c9cbfcb653a2fb39445a3b6ec4b88d8084d7a

9 years agobuild: Work around jshint failure for global JSON object
Roan Kattouw [Fri, 27 Feb 2015 19:04:52 +0000 (11:04 -0800)]
build: Work around jshint failure for global JSON object

jshint is now failing with errors about how it doesn't
recognize the global 'JSON' object, even though we have
browser:true set. This worked in 2.6.0 but broke in 2.6.1.

Other people have reported similar but different problems with
jshint: https://github.com/jshint/jshint/issues/2213 .
It looks like 2.6.1 is a seriously broken release, but we
can't work around it in package.json because grunt-contrib-jshint
depends on 2.6.*, assuming that point releases are backwards
compatible. Which they should be.

Change-Id: I85bcf1c97f2f8c82e139ebf2f1b6c4248b72f45e

9 years agoUpdate OOjs UI to v0.8.2
James D. Forrester [Fri, 27 Feb 2015 18:09:37 +0000 (13:09 -0500)]
Update OOjs UI to v0.8.2

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

Change-Id: Ie6722b1aae1970d628a82c491c8d525768d01925

9 years agoMade SqlBagOStuff avoid tripping TransactionProfiler
Aaron Schulz [Thu, 26 Feb 2015 23:41:50 +0000 (15:41 -0800)]
Made SqlBagOStuff avoid tripping TransactionProfiler

* Set a custom profiler with no expectations to avoid tripping
  the "0 write" expection. This avoids useless log entries.

Change-Id: Iac849a729eb36b1a8affb0dbc8b8c195fab4b03a

9 years agoMerge "installer: Use HTTPS links for licenses"
jenkins-bot [Fri, 27 Feb 2015 17:42:50 +0000 (17:42 +0000)]
Merge "installer: Use HTTPS links for licenses"

9 years agoMerge "refreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()"
Aaron Schulz [Fri, 27 Feb 2015 17:37:20 +0000 (17:37 +0000)]
Merge "refreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()"

9 years agoMerge "Fix fatal "Call to setExpectation() on non-object" in MediaWiki::main()"
jenkins-bot [Fri, 27 Feb 2015 16:43:32 +0000 (16:43 +0000)]
Merge "Fix fatal "Call to setExpectation() on non-object" in MediaWiki::main()"

9 years agoMerge "Fix testGetCanonicalName PHPUnit test:"
jenkins-bot [Fri, 27 Feb 2015 16:18:13 +0000 (16:18 +0000)]
Merge "Fix testGetCanonicalName PHPUnit test:"