lhc/web/wiklou.git
9 years agoAdd executable rights for executable (bash) files
Southparkfan [Thu, 30 Oct 2014 19:00:50 +0000 (15:00 -0400)]
Add executable rights for executable (bash) files

I hope these are the last ones.

Change-Id: I281531d8f90932b2cb4a8a99554d4b80607fbaee

9 years agoAPI: Add doc warning to ApiPageSet::populateFromQueryResult
Brad Jorsch [Thu, 30 Oct 2014 17:23:09 +0000 (13:23 -0400)]
API: Add doc warning to ApiPageSet::populateFromQueryResult

The cause of bug 72764 was an extension misusing
ApiPageSet::populateFromQueryResult(). Add a warning in the docs for
that method about proper usage.

Bug: 72764
Change-Id: I5b0a069d796f7f41ab0b16048d7b3d6600207383

9 years agochmod 755 bash & Perl files, chmod 644 .css file
Southparkfan [Fri, 24 Oct 2014 18:12:46 +0000 (14:12 -0400)]
chmod 755 bash & Perl files, chmod 644 .css file

Bug: 71972
Change-Id: I16d6ffde113838fc431bffaf00be1574d5a0303a

9 years agoAPI: Actually use api-help-param-no-description
Brad Jorsch [Tue, 28 Oct 2014 17:23:34 +0000 (13:23 -0400)]
API: Actually use api-help-param-no-description

If $description is array( '' ), that should still trigger display of the
message.

Change-Id: Ifeb62d3c139e457ad6cfaddadc2a99d39f99948f

9 years agoMerge "Require PHP >= 5.3.3"
Kunal Mehta [Thu, 30 Oct 2014 17:56:08 +0000 (17:56 +0000)]
Merge "Require PHP >= 5.3.3"

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

9 years agoRequire PHP >= 5.3.3
Kunal Mehta [Fri, 24 Oct 2014 01:21:50 +0000 (18:21 -0700)]
Require PHP >= 5.3.3

Bug: T839
Change-Id: Iac827ef8505ff0653a40e45d759b0f79619351ee

9 years agoParse 'upload_source_url' message on SpecialUpload
Marius Hoch [Tue, 28 Oct 2014 20:30:34 +0000 (21:30 +0100)]
Parse 'upload_source_url' message on SpecialUpload

Commons wants to use wikitext over there:
https://commons.wikimedia.org/wiki/MediaWiki:Upload_source_url

Change-Id: I7625fb58388de901b93744aa6d21de433f671483

9 years agoMerge "Add a note when the return value was added to mediawiki.loader.using"
jenkins-bot [Thu, 30 Oct 2014 09:05:51 +0000 (09:05 +0000)]
Merge "Add a note when the return value was added to mediawiki.loader.using"

9 years agoMerge "Support for message function in confirmCloseWindow"
jenkins-bot [Thu, 30 Oct 2014 08:43:15 +0000 (08:43 +0000)]
Merge "Support for message function in confirmCloseWindow"

9 years agoAdd a note when the return value was added to mediawiki.loader.using
Niklas Laxström [Thu, 30 Oct 2014 07:59:24 +0000 (08:59 +0100)]
Add a note when the return value was added to mediawiki.loader.using

Change-Id: I090b0cdb7be57d6cd93318ee28cab434a0d484f4

9 years agoMerge "Fix creating non-parameterized hashes in ParameterizedPassword"
jenkins-bot [Thu, 30 Oct 2014 00:17:07 +0000 (00:17 +0000)]
Merge "Fix creating non-parameterized hashes in ParameterizedPassword"

9 years agoUpdate OOjs UI to v0.1.0-pre (da4b0d5c14)
James D. Forrester [Thu, 30 Oct 2014 00:10:22 +0000 (17:10 -0700)]
Update OOjs UI to v0.1.0-pre (da4b0d5c14)

New changes:
e830a4d Conf for doxygen based PHP doc
80ecf60 Semiautomatically compare and synchronise JS and PHP docs
521fa21 Move 'readOnly' from InputWidget to TextInputWidget
9130eb3 OoUiTag: HTML-escape everything by default
0488141 Generate and run a JS/PHP comparison test suite
c552fea ButtonInputWidget: Explicitly disallow setting value when using <input/>
ab69d96 Apex, MediaWiki themes: Move colour definitions into LESS variables
d3367bb Turn FieldLayout into a <label/>
8a38c10 Provide abstract getLookupCacheItemFromData in LookupInputWidget
da4b0d5 Set input/menu widgets to have a max-width expanding to 100% rather than hard-coded

Change-Id: Id3e280a03fc305dc5cb706bc1208246275d169cb

9 years agoFixed possible db error log spam when cluster=* in wfWaitForSlaves()
Aaron Schulz [Wed, 29 Oct 2014 23:36:55 +0000 (16:36 -0700)]
Fixed possible db error log spam when cluster=* in wfWaitForSlaves()

Change-Id: Idd385cddb0fa9f56bddc46d41ae584ca65bc45ed

9 years agoMerge "resourceloader: Add support for delivering templates"
jenkins-bot [Wed, 29 Oct 2014 20:58:57 +0000 (20:58 +0000)]
Merge "resourceloader: Add support for delivering templates"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 29 Oct 2014 20:37:18 +0000 (21:37 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7ffe726ba42ee3e2ab55cc9088017c84348ed9c9

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 agoresourceloader: Add support for delivering templates
jdlrobson [Fri, 10 Oct 2014 00:07:14 +0000 (17:07 -0700)]
resourceloader: Add support for delivering templates

A base ResourceLoaderModule::getTemplates() exists for subclasses
to override. An implementation is provided for ResourceLoaderFileModule.

For file modules, templates can be specified in the following manner:

'example' => array(
'templates' => array(
'bar' => 'templates/foo.html',
),
'scripts' => 'example.js',
),

The delivery system is template language agnostic, and currently
only supports "compiling" plain HTML templates.

This also adds template support to the following modules as a POC:
* mediawiki.feedback
* mediawiki.action.view.postEdit
* mediawiki.special.upload

Works with $wgResourceLoaderStorageEnabled

Change-Id: Ia0c5c8ec960aa6dff12c9626cee41ae9a3286b76

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 agoSupport for message function in confirmCloseWindow
Mark Holmquist [Wed, 29 Oct 2014 18:30:54 +0000 (13:30 -0500)]
Support for message function in confirmCloseWindow

Change-Id: Iffe106cfc5430aaeb2c56b83316116b2c5dd5835

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