lhc/web/wiklou.git
9 years agotest: Check banana status for includes/api/i18n/* too
James D. Forrester [Wed, 29 Oct 2014 20:07:10 +0000 (13:07 -0700)]
test: Check banana status for includes/api/i18n/* too

Change-Id: I9244130eea50abe200abd06a4576a001067919f1

9 years agoUse MWLogger logging for legacy logging methods
Bryan Davis [Fri, 21 Mar 2014 05:01:24 +0000 (23:01 -0600)]
Use MWLogger logging for legacy logging methods

Send wfDebug, wfDebugLog, wfLogDBError and wfLogDBError log messages to
the new MWLogger PSR-3 logger subsystem. Compatibility with the historic
logging operations of wfLogDBError are provided by MWLoggerLegacyLogger
and the MWLoggerLegacySpi logger factory.

Requires the MWLogger system introduced in I5c82299 and the Composer
managed libraries from Ie667944.

Change-Id: I1e5596d590144fbfdfd5f18bc42cf1ef0dbcac12

9 years agoMerge "Add more detailed upload stash error messages"
jenkins-bot [Wed, 29 Oct 2014 17:40:53 +0000 (17:40 +0000)]
Merge "Add more detailed upload stash error messages"

9 years agoFix spelling mistake: s/databses/database
Southparkfan [Wed, 29 Oct 2014 17:12:45 +0000 (13:12 -0400)]
Fix spelling mistake: s/databses/database

Change-Id: Id532b3724792eff5849813888533c251b99edc82

9 years agoAPI: Fix access on getExamplesMessages
Brad Jorsch [Tue, 28 Oct 2014 17:17:02 +0000 (13:17 -0400)]
API: Fix access on getExamplesMessages

ApiBase declares it protected, but for some reason I had made it public
in all subclasses.

Change-Id: I8a50d4f47e66c7f09137968d3941dc5cdc1d28e4

9 years agoSwitch to LOCK IN SHARE MODE in recordUpload2()
Aaron Schulz [Sun, 19 Oct 2014 02:47:22 +0000 (19:47 -0700)]
Switch to LOCK IN SHARE MODE in recordUpload2()

* We just need the latest data; the advisory locking in lock()
  already manages mutual exclusion.

Change-Id: I9af7a892b2dcafd30149332b0084f61d117c9cad

9 years agoRemove back-compat profiling configuration
Chad Horohoe [Wed, 29 Oct 2014 00:20:39 +0000 (17:20 -0700)]
Remove back-compat profiling configuration

This old style was deprecated like 3 or 4 releases ago

Change-Id: Ic61424aacb376151019a08ade214fea655d82a3f

9 years agoMerge "Deprecate internal ORMTable::unprefixFieldName(s)"
jenkins-bot [Tue, 28 Oct 2014 21:41:19 +0000 (21:41 +0000)]
Merge "Deprecate internal ORMTable::unprefixFieldName(s)"

9 years agoMerge "CoreTagHooks: Use parse() for output to HTML rather than text()"
jenkins-bot [Tue, 28 Oct 2014 20:46:44 +0000 (20:46 +0000)]
Merge "CoreTagHooks: Use parse() for output to HTML rather than text()"

9 years agoCoreTagHooks: Use parse() for output to HTML rather than text()
Bartosz Dziewoński [Tue, 28 Oct 2014 19:57:47 +0000 (20:57 +0100)]
CoreTagHooks: Use parse() for output to HTML rather than text()

Change-Id: I9f28afe185a24883fb575dd6df8a23c4ab233b64

9 years agoMerge "Update OOjs UI to v0.1.0-pre (deccd11549)"
jenkins-bot [Tue, 28 Oct 2014 17:30:55 +0000 (17:30 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (deccd11549)"

9 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Tue, 28 Oct 2014 17:30:52 +0000 (17:30 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Oct 2014 17:22:52 +0000 (18:22 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I56c63f14f34232741d1f6a3bdb3b64b2cd45e609

9 years agoUpdate OOjs UI to v0.1.0-pre (deccd11549)
James D. Forrester [Tue, 28 Oct 2014 16:52:31 +0000 (09:52 -0700)]
Update OOjs UI to v0.1.0-pre (deccd11549)

New changes:
be1f468 Localisation updates from https://translatewiki.net.
de6d500 Localisation updates from https://translatewiki.net.
049b28f Localisation updates from https://translatewiki.net.
a926d7d Fix a number of documentation syntax issues throughout the codebase
df625c4 Use primary colours for progress bar
d721cc1 Localisation updates from https://translatewiki.net.
c3aa4e1 [BREAKING CHANGE] Apply font-size: 0.8em; to non-isolated windows too
140509d [BREAKING CHANGE] If no $overlay is specified, default to this.$element
deccd11 Localisation updates from https://translatewiki.net.

Change-Id: Idf1f1c047dd414edc8cb80a6187055fc811dc95e

9 years agoMerge "ApiHelp: Fix PHP notice when "wrap" parameter is provided"
jenkins-bot [Tue, 28 Oct 2014 15:15:55 +0000 (15:15 +0000)]
Merge "ApiHelp: Fix PHP notice when "wrap" parameter is provided"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Oct 2014 14:08:16 +0000 (15:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I24b13302922d658dc555df91bd1a460027f7f76d

9 years agoMerge "Update plural data to CLDR 26"
jenkins-bot [Tue, 28 Oct 2014 08:52:21 +0000 (08:52 +0000)]
Merge "Update plural data to CLDR 26"

9 years agoApiHelp: Fix PHP notice when "wrap" parameter is provided
Kevin Israel [Tue, 28 Oct 2014 06:48:49 +0000 (02:48 -0400)]
ApiHelp: Fix PHP notice when "wrap" parameter is provided

An incorrect variable name was used, so the "help" property of
the "help" object in the output was merely encoded as null.

Change-Id: Ia1a8c8ad4515e216998d4975aad3555f87d24380

9 years agodocs/database.txt: Don't mention $wgAntiLockFlags
Kevin Israel [Tue, 28 Oct 2014 03:32:22 +0000 (23:32 -0400)]
docs/database.txt: Don't mention $wgAntiLockFlags

Setting was removed in 12757b50f8da and is no longer used
on the Wikimedia cluster.

Change-Id: I0a6e0c029d3246f7a5a229411e66949469ab941e

9 years agoMerge "HTMLForm: Only apply cloner click event to form elements, not containing divs"
jenkins-bot [Mon, 27 Oct 2014 21:38:03 +0000 (21:38 +0000)]
Merge "HTMLForm: Only apply cloner click event to form elements, not containing divs"

9 years agoMerge "Maintenance script to clean up mismatched user names in ipblocks"
jenkins-bot [Mon, 27 Oct 2014 21:00:49 +0000 (21:00 +0000)]
Merge "Maintenance script to clean up mismatched user names in ipblocks"

9 years agoMerge "Use Parser::OT_PREPROCESS class const"
jenkins-bot [Mon, 27 Oct 2014 19:59:03 +0000 (19:59 +0000)]
Merge "Use Parser::OT_PREPROCESS class const"

9 years agoAdd more detailed upload stash error messages
Mark Holmquist [Fri, 24 Oct 2014 19:33:05 +0000 (14:33 -0500)]
Add more detailed upload stash error messages

There are seven (used) error types in the stash class, and we umbrella'd
them all into one error message, which is mighty silly. This should give
us more information.

Also added to the mw.Api.errors list so UploadWizard can handle them.

Change-Id: I79bf0c29a4cef19363d111cc1128e35256ae572a

9 years agoMerge "Validate cmstarthexsortkey/cmendhexsortkey to be valid hex"
jenkins-bot [Mon, 27 Oct 2014 19:17:13 +0000 (19:17 +0000)]
Merge "Validate cmstarthexsortkey/cmendhexsortkey to be valid hex"

9 years agoValidate cmstarthexsortkey/cmendhexsortkey to be valid hex
umherirrender [Sun, 26 Oct 2014 09:19:31 +0000 (10:19 +0100)]
Validate cmstarthexsortkey/cmendhexsortkey to be valid hex

Avoids: Warning: pack(): Type H: illegal hex digit N in
\includes\api\ApiQueryCategoryMembers.php on line 146

Bug: 40809
Change-Id: I1dd732ccec8e6991d0ceac443226f5c7e59fd853

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 27 Oct 2014 18:33:41 +0000 (19:33 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1cecca3a0fe4c99a1ecfca9ac3c7178801812086

9 years agoHTMLForm: Only apply cloner click event to form elements, not containing divs
Brad Jorsch [Mon, 27 Oct 2014 17:59:40 +0000 (13:59 -0400)]
HTMLForm: Only apply cloner click event to form elements, not containing divs

Bug: 72568
Change-Id: I6bca511fdb183632bbe55707cbb7c3e9c55788fa

9 years agoMerge "Replace a few more logical operators"
jenkins-bot [Mon, 27 Oct 2014 17:59:06 +0000 (17:59 +0000)]
Merge "Replace a few more logical operators"

9 years agoMerge "SqlBagOStuff: reuse code of parent class"
jenkins-bot [Mon, 27 Oct 2014 17:56:11 +0000 (17:56 +0000)]
Merge "SqlBagOStuff: reuse code of parent class"

9 years agoMerge "Tweaked some of the default LockManager ttls"
jenkins-bot [Mon, 27 Oct 2014 17:51:39 +0000 (17:51 +0000)]
Merge "Tweaked some of the default LockManager ttls"

9 years agoMerge "API: Standardize usage of "ID" in docs"
jenkins-bot [Mon, 27 Oct 2014 17:16:57 +0000 (17:16 +0000)]
Merge "API: Standardize usage of "ID" in docs"

9 years agoMerge "Make $wgMWLoggerDefaultSpi more expressive"
jenkins-bot [Mon, 27 Oct 2014 17:08:04 +0000 (17:08 +0000)]
Merge "Make $wgMWLoggerDefaultSpi more expressive"

9 years agoAPI: Standardize usage of "ID" in docs
Brad Jorsch [Mon, 27 Oct 2014 16:51:29 +0000 (12:51 -0400)]
API: Standardize usage of "ID" in docs

Change-Id: I6c0571ceb836d35159964ead4abef09113230a68

9 years agoMaintenance script to clean up mismatched user names in ipblocks
Brad Jorsch [Mon, 27 Oct 2014 14:29:55 +0000 (10:29 -0400)]
Maintenance script to clean up mismatched user names in ipblocks

For blocks with ipb_user non-zero, the ipb_address field is supposed to
match user_name. But due to various bugs over the years, this doesn't
hold true.

Due to those old bugs, we also have rows with the same ipb_user (and
ipb_auto and ipb_anon_only, since those only apply to IP blocks) but
different ipb_address. Those also need cleaning up, both to prevent
a unique constraint violation and to stop errors in ApiQueryAllUsers.

Bug: 34014
Bug: 72560
Change-Id: I519078ec011dbd0043811a78c3f913792a4df7fe

9 years agoUpdate plural data to CLDR 26
Santhosh Thottingal [Mon, 22 Sep 2014 10:16:07 +0000 (15:46 +0530)]
Update plural data to CLDR 26

* The updates include incompatible changes for plural forms in Russian,
  Prussian, Tagalog, Manx and several languages that fall back to Russian.
  In addition there are minor changes for other languages.
* Test cases were updated to reflect these changes.

Bug: 62861
Change-Id: I7cce477925330fe5bbf51a8470060dc1223981d0

9 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Mon, 27 Oct 2014 00:11:25 +0000 (00:11 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Mon, 27 Oct 2014 00:11:00 +0000 (00:11 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Add mediawiki.userSuggest to Special:UserRights"
jenkins-bot [Mon, 27 Oct 2014 00:10:37 +0000 (00:10 +0000)]
Merge "Add mediawiki.userSuggest to Special:UserRights"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 26 Oct 2014 19:48:29 +0000 (20:48 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ieacc0d6d4d0ca696d91d3358a4d2415ed7d37659

9 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Sun, 26 Oct 2014 18:03:59 +0000 (19:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7d8ecd624b63c3323afd159600d8cca3806a7760

9 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Sun, 26 Oct 2014 17:56:17 +0000 (18:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1c1be5f954c274bb2479cd7068d32562db05b670

9 years agoMake $wgMWLoggerDefaultSpi more expressive
Bryan Davis [Thu, 23 Oct 2014 03:53:14 +0000 (21:53 -0600)]
Make $wgMWLoggerDefaultSpi more expressive

Allow $wgMWLoggerDefaultSpi to specify a more expressive object creation
by introducing a new ObjectFactory class which can process an array of
instructions to call either an object constructor or a factory method
with an array of arguments. This allows removal of the
$wgMWLoggerMonologSpiConfig global variable in favor of configuration
using $wgMWLoggerDefaultSpi.

New classes introduced:
; ObjectFactory
: Construct objects from configuration instructions.

Change-Id: If56cce5dcb1ad5712e238d6e2dab809a351f79be

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 25 Oct 2014 20:06:57 +0000 (22:06 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4136dd569abb9273398730442102867e7c7d6969

9 years agoSqlBagOStuff: reuse code of parent class
Sergio Santoro [Sat, 25 Oct 2014 17:26:21 +0000 (19:26 +0200)]
SqlBagOStuff: reuse code of parent class

It'll be easier to change the time threshold (currently 10 years)
in the future.

Change-Id: I24005148d40c47905d5b20cfd506decef2ae447e

9 years agoMerge "Fix ("
jenkins-bot [Sat, 25 Oct 2014 00:30:57 +0000 (00:30 +0000)]
Merge "Fix ("

9 years agoFix (
Kunal Mehta [Sat, 25 Oct 2014 00:15:12 +0000 (17:15 -0700)]
Fix (

See <http://xkcd.com/859/>

Change-Id: I21113b158159d9a8a14045da87581937f71f42e3

9 years agoMake "View/restore X deleted edits" check permissions per title
Brian Wolff [Fri, 24 Oct 2014 22:40:42 +0000 (19:40 -0300)]
Make "View/restore X deleted edits" check permissions per title

This will ensure the prompt is shown for people who have
viewdeletedfile from f7aac5ae.

Change-Id: I6379413c8da01bcb878da8fbe77278bfc38529bc

9 years agoMerge "Add Oracle version of update-keys.sql"
jenkins-bot [Fri, 24 Oct 2014 22:23:36 +0000 (22:23 +0000)]
Merge "Add Oracle version of update-keys.sql"

9 years agoMerge "Add deprecated note to SkinTemplate"
jenkins-bot [Fri, 24 Oct 2014 22:23:20 +0000 (22:23 +0000)]
Merge "Add deprecated note to SkinTemplate"

9 years agomediawiki.ui: Add 'background-color: inherit' to match 'color: inherit'
Bartosz Dziewoński [Thu, 23 Oct 2014 08:50:09 +0000 (10:50 +0200)]
mediawiki.ui: Add 'background-color: inherit' to match 'color: inherit'

I'm torn on whether we should do this, or just remove 'color: inherit'.

Bug: 72192
Change-Id: Ie19e0ab03cd2e577a1c4527b083215c92b421a44

9 years agoAdd deprecated note to SkinTemplate
Florianschmidtwelzow [Fri, 24 Oct 2014 20:25:42 +0000 (22:25 +0200)]
Add deprecated note to SkinTemplate

Like mentioned in todo. Planned with 1.20, but now officially deprecated
since 1.25.

Change-Id: I2eabb642151f7e7ff05b52ff6718e78931604828

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 24 Oct 2014 19:49:18 +0000 (21:49 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I47cd4a8a02e237d3933691264ae82b050e48e341

9 years agoMerge "FormatJson::stripComments"
jenkins-bot [Fri, 24 Oct 2014 18:47:29 +0000 (18:47 +0000)]
Merge "FormatJson::stripComments"

9 years agoUse Parser::OT_PREPROCESS class const
umherirrender [Fri, 24 Oct 2014 18:40:19 +0000 (20:40 +0200)]
Use Parser::OT_PREPROCESS class const

Instead of the global const

Change-Id: Ica9a3fdd0a48bb3c71ebb2b84933149a9f275fac

9 years agoMerge "Allow search to return matching category"
jenkins-bot [Fri, 24 Oct 2014 17:01:58 +0000 (17:01 +0000)]
Merge "Allow search to return matching category"

9 years agoMerge "Remove useless sleep() in JobQueueTest"
jenkins-bot [Fri, 24 Oct 2014 16:46:08 +0000 (16:46 +0000)]
Merge "Remove useless sleep() in JobQueueTest"

9 years agoReplace a few more logical operators
Kevin Israel [Fri, 24 Oct 2014 14:42:19 +0000 (10:42 -0400)]
Replace a few more logical operators

Changed all remaining uses of 'and' (T_LOGICAL_AND) and 'or'
(T_LOGICAL_OR) except those in includes/libs/lessc.inc.php.

In maintenance/generateSitemap.php, also slightly cleaned up
touched code:

* Inlined GenerateSitemap::init_path().
* Removed the redundant `$fspath && !is_dir( $fspath )` check.
* Return a nonzero exit code if wfMkdirParents() fails.

There are still uses of 'xor' (T_LOGICAL_XOR) in the following
files, which I left as-is:

* includes/Export.php
* includes/htmlform/HTMLCheckField.php
* includes/Autopromote.php
* maintenance/importDump.php
* maintenance/backup.inc

Change-Id: I73cb20da989e90b52782e7499f633debd5ad265d

9 years agoRemove useless sleep() in JobQueueTest
Antoine Musso [Wed, 22 Oct 2014 21:22:10 +0000 (23:22 +0200)]
Remove useless sleep() in JobQueueTest

I noticed JobQueueTest::testRootDeduplication takes ~ 6.5 seconds, which
is due to the test method using sleep(1) and being passed the provider
provider_queueLists which yields six items.

The reason is to have the array returned by Job::newRootJobParams() to
have an incread value for 'rootJobTimestamp'.  Instead, just copy the
previous array of parameters and increment the UNIX timestamp and
converting back to TS_MW format.

Change-Id: I75066df73f9f92e56b89eb6d928c41e949a2d6a9

9 years agoor -> ||
Reedy [Fri, 24 Oct 2014 10:26:14 +0000 (11:26 +0100)]
or -> ||

Change-Id: Ic591f06f70c68bb2912b7f028f7f988eb658375d

9 years agoTweaked some of the default LockManager ttls
Aaron Schulz [Fri, 24 Oct 2014 05:19:19 +0000 (22:19 -0700)]
Tweaked some of the default LockManager ttls

Change-Id: Ic2c58ef02dc686f38840fe974a9d2858cd15c019

9 years agoMerge "MessagesSv.php: Also remove lies"
jenkins-bot [Fri, 24 Oct 2014 01:29:24 +0000 (01:29 +0000)]
Merge "MessagesSv.php: Also remove lies"

9 years agoAllow search to return matching category
Nik Everett [Fri, 24 Oct 2014 00:15:18 +0000 (20:15 -0400)]
Allow search to return matching category

Will be used by Cirrus.

Change-Id: I60e6b19d3b59ebf9bb45cc61d16936dfc7e4c708

9 years agoMessagesSv.php: Also remove lies
Bartosz Dziewoński [Thu, 23 Oct 2014 22:36:39 +0000 (00:36 +0200)]
MessagesSv.php: Also remove lies

Follow-up to I10a8d82e. Grepping for '#!!#' shows no more hits.

Change-Id: I6732ae869fd320645b46d65e588c9d38fde9d4f4

9 years agoMerge "Swap and for &&"
jenkins-bot [Thu, 23 Oct 2014 22:25:22 +0000 (22:25 +0000)]
Merge "Swap and for &&"

9 years agoMerge "MessagesNds_nl.php: Remove lies"
jenkins-bot [Thu, 23 Oct 2014 22:24:09 +0000 (22:24 +0000)]
Merge "MessagesNds_nl.php: Remove lies"

9 years agoMerge "resourceloader: Add ResourceLoaderContext::getUserObj and replace use of ...
jenkins-bot [Thu, 23 Oct 2014 21:25:24 +0000 (21:25 +0000)]
Merge "resourceloader: Add ResourceLoaderContext::getUserObj and replace use of $wgUser"

9 years agoresourceloader: Add ResourceLoaderContext::getUserObj and replace use of $wgUser
Kunal Mehta [Sat, 4 Oct 2014 10:22:07 +0000 (03:22 -0700)]
resourceloader: Add ResourceLoaderContext::getUserObj and replace use of $wgUser

Introduces ResourceLoaderContext::getUserObj(), which gets
a (possibly cached) User object for the context's username.

Use this instead of the $wgUser global.

Change-Id: Ifd9f634db145381625ab68067ae67791a3f494b8

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 23 Oct 2014 21:02:24 +0000 (23:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I584e1192dfbd55f3bde191e0e46ac2c45bf2e013

9 years agoMessagesNds_nl.php: Remove lies
Bartosz Dziewoński [Thu, 23 Oct 2014 20:29:02 +0000 (22:29 +0200)]
MessagesNds_nl.php: Remove lies

Not true since r107313.

Change-Id: I10a8d82e1c1f632811c9e476c16434fd14041bc1

9 years agoSwap and for &&
Chad Horohoe [Thu, 23 Oct 2014 20:03:14 +0000 (13:03 -0700)]
Swap and for &&

Change-Id: I7821a62586cc2d2f929fb3d7d5046958a70efbd0

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 23 Oct 2014 19:53:34 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I947dce01c22c2037f5940e5bcc83a14340f700a8

9 years agoRefactor hook handling in ResourceLoaderTest
umherirrender [Wed, 15 Oct 2014 15:05:04 +0000 (17:05 +0200)]
Refactor hook handling in ResourceLoaderTest

No need to set a global $wgHooks, just set it for the current test.

Change-Id: Ic3e82608efa617a5a7f7c31365d748222bc6d6da

9 years agoMerge "Avoid running of hooks when running MWTimestampTest"
jenkins-bot [Thu, 23 Oct 2014 19:18:20 +0000 (19:18 +0000)]
Merge "Avoid running of hooks when running MWTimestampTest"

9 years agoMerge "Respect $wgApiFrameOptions in formatted API output mode"
jenkins-bot [Thu, 23 Oct 2014 18:24:48 +0000 (18:24 +0000)]
Merge "Respect $wgApiFrameOptions in formatted API output mode"

9 years agoMerge "Fix bypassing hooks in TextContentTest"
jenkins-bot [Thu, 23 Oct 2014 18:05:02 +0000 (18:05 +0000)]
Merge "Fix bypassing hooks in TextContentTest"

9 years agoMerge "Fix setting hooks in ApiQueryTest"
jenkins-bot [Thu, 23 Oct 2014 17:56:57 +0000 (17:56 +0000)]
Merge "Fix setting hooks in ApiQueryTest"

9 years agoMerge "Use mergeMwGlobalArrayValue in AutoLoaderTest::setUp"
jenkins-bot [Thu, 23 Oct 2014 17:56:02 +0000 (17:56 +0000)]
Merge "Use mergeMwGlobalArrayValue in AutoLoaderTest::setUp"

9 years agoMerge "Use mergeMwGlobalArrayValue in LocalisationCacheTest"
jenkins-bot [Thu, 23 Oct 2014 17:55:59 +0000 (17:55 +0000)]
Merge "Use mergeMwGlobalArrayValue in LocalisationCacheTest"

9 years agoMerge "Use mergeMwGlobalArrayValue in ApiOptionsTest"
jenkins-bot [Thu, 23 Oct 2014 17:55:51 +0000 (17:55 +0000)]
Merge "Use mergeMwGlobalArrayValue in ApiOptionsTest"

9 years agoMerge "Use setMwGlobals in UserTest::testPasswordExpire"
jenkins-bot [Thu, 23 Oct 2014 17:55:20 +0000 (17:55 +0000)]
Merge "Use setMwGlobals in UserTest::testPasswordExpire"

9 years agoMerge "Use setMwGlobals in TitleTest::testGetPageViewLanguage"
jenkins-bot [Thu, 23 Oct 2014 17:53:00 +0000 (17:53 +0000)]
Merge "Use setMwGlobals in TitleTest::testGetPageViewLanguage"

9 years agoAvoid running of hooks when running MWTimestampTest
umherirrender [Wed, 15 Oct 2014 14:51:43 +0000 (16:51 +0200)]
Avoid running of hooks when running MWTimestampTest

Bug: 55886
Change-Id: I91e1dfeb1cddb158318ac178264e5acaf0a16215

9 years agoFix bypassing hooks in TextContentTest
umherirrender [Wed, 15 Oct 2014 15:09:30 +0000 (17:09 +0200)]
Fix bypassing hooks in TextContentTest

Save the whole global $wgHooks with the default way instead of just a
hook in a own variable.

Change-Id: Ie796f7a53ee38e0dc07f5b026134bbdcb8c9fd53

9 years agoUse mergeMwGlobalArrayValue in LocalisationCacheTest
umherirrender [Wed, 15 Oct 2014 15:39:27 +0000 (17:39 +0200)]
Use mergeMwGlobalArrayValue in LocalisationCacheTest

Change-Id: I8cfe494d159101306c699169dd224c3bea65c753

9 years agoUse mergeMwGlobalArrayValue in ApiOptionsTest
umherirrender [Wed, 15 Oct 2014 15:47:58 +0000 (17:47 +0200)]
Use mergeMwGlobalArrayValue in ApiOptionsTest

Change-Id: Ic0a9ceab9e8fad7c408e32ba110a3543ef28b59e

9 years agoMerge "Add hook to extract namespace in prefix search"
jenkins-bot [Thu, 23 Oct 2014 17:39:14 +0000 (17:39 +0000)]
Merge "Add hook to extract namespace in prefix search"

9 years agoRespect $wgApiFrameOptions in formatted API output mode
Brian Wolff [Thu, 23 Oct 2014 01:49:54 +0000 (22:49 -0300)]
Respect $wgApiFrameOptions in formatted API output mode

This restores the pre- d25cb992 behaviour. Apparently UploadWizard's
flickr module relies on this (Which seems rather wrong, but
regardless I still think api handling of $wgApiFrameOptions should
extend to the "fm" modes.)

Note: If $wgBreakFrames is true, then frames will still be broken.
Although this is a change from prior behaviour, it makes sense
to me that $wgBreakFrames would not allow the human readable output
of the API be frammed.

Bug: 72340
Change-Id: Ia61a4698f7044acfcd7339207590d9333f4100cb

9 years agoAvoid implicit Message::toString in InfoAction
umherirrender [Fri, 26 Sep 2014 13:42:36 +0000 (15:42 +0200)]
Avoid implicit Message::toString in InfoAction

Call explicit escape to show which message format is used.

Change-Id: I725f7ab394c275ad68a0b816b841c9b6b8bc325c

9 years agoAPI: Include ApiMain construction in api.php try-catch block
Brad Jorsch [Wed, 22 Oct 2014 21:26:40 +0000 (17:26 -0400)]
API: Include ApiMain construction in api.php try-catch block

If the User language is accessed from ApiMain::__construct on a request
via OAuth and the authorization headers weren't valid, the
UsageException was not being handled.

Further, the code setting $wgLang in that constructor should be using
the language just set on the local context, not the main request
context.

Bug: 72384
Change-Id: I90900dc4a8aea22c67c0c05b38128d5dbb044f07

9 years agoTweak 'destructive' use case in style guide
Matthew Flaschen [Thu, 23 Oct 2014 04:57:32 +0000 (00:57 -0400)]
Tweak 'destructive' use case in style guide

Bug: 71856
Change-Id: Ib69e0496ac768d4385d653073547f9482cd9641a

9 years agoRestore next link to Special:AllPages
MZMcBride [Thu, 23 Oct 2014 03:38:32 +0000 (23:38 -0400)]
Restore next link to Special:AllPages

This commit is a follow-up to 9ffa5fc.

Bug: 69951
Change-Id: If244ebd656bf1537e671fd986edc39bcc01bb9b5

9 years agojquery.textSelection: Add ability to register custom implementation
Derk-Jan Hartman [Mon, 28 Jul 2014 20:28:29 +0000 (22:28 +0200)]
jquery.textSelection: Add ability to register custom implementation

At times we replace the textarea with a different implementation, for
instance in the former iframe code of WikiEditor and now in CodeEditor.

Obviously only one implementation of this API can be in control at a
time, but in order to disable/enable which one exactly is currently
determined by the existence of function in the core WikiEditor
context. This is a remnant of when this code was still in WikiEditor.

I added two commands, "register" and "unregister", that take an object
that has alternative function implementations for one or more commands.

Bug: 29328
Change-Id: I14492572f7eb9bbd1af68872dbfef5159126f107

9 years agoUpdate OOjs UI to v0.1.0-pre (40de4dabe6)
James D. Forrester [Wed, 22 Oct 2014 23:42:29 +0000 (16:42 -0700)]
Update OOjs UI to v0.1.0-pre (40de4dabe6)

New changes:
849a687 Mute text color of accelerators in tool groups
40de4da Remind people to run composer install

Change-Id: I91c369da9170b6561906d27d193ce42b02ade021

9 years agoAdd hook to extract namespace in prefix search
Nik Everett [Wed, 22 Oct 2014 20:00:03 +0000 (16:00 -0400)]
Add hook to extract namespace in prefix search

This will allow extensions (namely CirrusSearch) to match namespaces using
their own rules if core can't find the namespace on its own.

Bug: 62322
Change-Id: I17337cd8ce90190bd335c9159e9d3bbb39ba89cd

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 22 Oct 2014 19:38:19 +0000 (21:38 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9a5331518171f1ffc807226fd585aacdf60b5eb4

9 years agoMerge "Made JobRunner wait for all applicable slaves, not just the main cluster"
jenkins-bot [Wed, 22 Oct 2014 18:58:38 +0000 (18:58 +0000)]
Merge "Made JobRunner wait for all applicable slaves, not just the main cluster"

9 years agoMade JobRunner wait for all applicable slaves, not just the main cluster
Aaron Schulz [Tue, 21 Oct 2014 21:41:34 +0000 (14:41 -0700)]
Made JobRunner wait for all applicable slaves, not just the main cluster

Change-Id: Ib610684fd3d9b76ea13fe585a290983c071b88f4

9 years agoExpose job metadata in showJobs and the jobs log
Aaron Schulz [Tue, 21 Oct 2014 22:07:39 +0000 (15:07 -0700)]
Expose job metadata in showJobs and the jobs log

* This means that redis job UUIDs now show up in these places

Change-Id: Icea168de7e1590bfe275646bc2ccbb7151f032ae

9 years agoOptimized wfWaitForSlaves() to get the master positions for all LBs first
Aaron Schulz [Wed, 22 Oct 2014 17:56:36 +0000 (10:56 -0700)]
Optimized wfWaitForSlaves() to get the master positions for all LBs first

Change-Id: I4a4aa6a3f68ace85dcbfb73e982a16c62e21e6ed

9 years agoMerge "Move tests into separate ResourceLoaderFileModuleTest"
jenkins-bot [Wed, 22 Oct 2014 17:44:59 +0000 (17:44 +0000)]
Merge "Move tests into separate ResourceLoaderFileModuleTest"