umherirrender [Fri, 31 Oct 2014 10:54:44 +0000 (11:54 +0100)]
Split doc for $wgHKDFSecret/$wgHKDFAlgorithm in DefaultSettings.php
Each variable should have it own doc block.
Change-Id: Ided1073fddc17e80ddbc556c5f88c422d77cf120
jenkins-bot [Thu, 30 Oct 2014 23:23:47 +0000 (23:23 +0000)]
Merge "API: Fix simplified continuation module skipping"
Chad Horohoe [Thu, 30 Oct 2014 22:18:22 +0000 (15:18 -0700)]
Remove collateOnly() from ProfilerStandard and subclasses
All implementations had this set to true, so remove the needless
abstraction and function calls. Child classes that do want to
differentiate here can just set the member variable on construction.
Change-Id: I81a4e6605bdec1fc1a977b5aa1ee1c5853d5ca5b
jenkins-bot [Thu, 30 Oct 2014 22:42:00 +0000 (22:42 +0000)]
Merge "Import.php: Use Config instead of globals"
Chad Horohoe [Thu, 30 Oct 2014 18:55:11 +0000 (11:55 -0700)]
Remove ProfileMwprof
An interesting experiment, but it was never completely fleshed out
and represents an anti-pattern as the only class that doesn't follow
the Profiler -> ProfilerStandard inheritance.
Since we want to refactor this to split profiling and profiling output
we need this unused but difficult to refactor code gone.
Maybe in the future after things are refactored and someone has the
time or inclination this could be dusted off again.
Change-Id: I1fd8813894e1fe88652b0c17b5ad8f42666bf776
Translation updater bot [Thu, 30 Oct 2014 21:13:26 +0000 (21:13 +0000)]
Merge "Localisation updates from https://translatewiki.net."
jenkins-bot [Thu, 30 Oct 2014 21:09:23 +0000 (21:09 +0000)]
Merge "mediawiki.api: Transform arrays with join('|') in query parameters"
Translation updater bot [Thu, 30 Oct 2014 21:03:56 +0000 (22:03 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I44200ac58db6e3a43bf305b9ec16039af7cfb960
jenkins-bot [Thu, 30 Oct 2014 20:09:54 +0000 (20:09 +0000)]
Merge "Fixed spacing"
jenkins-bot [Thu, 30 Oct 2014 20:06:27 +0000 (20:06 +0000)]
Merge "Fully replace Title::moveTo() with MovePage"
jenkins-bot [Thu, 30 Oct 2014 19:56:02 +0000 (19:56 +0000)]
Merge "Add LinkBatch to Special:LinkSearch"
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
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
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
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
Kunal Mehta [Thu, 30 Oct 2014 17:56:08 +0000 (17:56 +0000)]
Merge "Require PHP >= 5.3.3"
jenkins-bot [Thu, 30 Oct 2014 17:46:30 +0000 (17:46 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (
da4b0d5c14)"
Brad Jorsch [Thu, 30 Oct 2014 17:30:45 +0000 (13:30 -0400)]
API: Fix simplified continuation module skipping
The simplified continuation includes a continuation parameter to
indicate when the prop/list/meta modules are complete, so it can skip
executing them.
But if someone submitted a malformed value for 'continue', it might
decide that the generator was complete but still try to uselessly
execute the prop modules.
Bug: 72764
Change-Id: I6af24e5d4f30e64782fb7dd1c2211ebdd4ec2317
Kunal Mehta [Fri, 24 Oct 2014 01:21:50 +0000 (18:21 -0700)]
Require PHP >= 5.3.3
Bug: T839
Change-Id: Iac827ef8505ff0653a40e45d759b0f79619351ee
umherirrender [Thu, 30 Oct 2014 16:50:19 +0000 (17:50 +0100)]
Fixed spacing
- Changed spaces to tabs for indentation
- space after 'function'/'if'
- Added/Removed space after parenthesis/brackets/end of line
- Removed space after cast
Change-Id: I0e8e6a19b84b5e1308b632a0266cb78f688494ee
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
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"
jenkins-bot [Thu, 30 Oct 2014 08:43:15 +0000 (08:43 +0000)]
Merge "Support for message function in confirmCloseWindow"
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
umherirrender [Fri, 26 Sep 2014 18:47:42 +0000 (20:47 +0200)]
Add LinkBatch to Special:LinkSearch
When building the result list, each link results in a database query.
The select is on the page table, so it is known, that each page exists,
but using Linker::linkKnown does not prepare the link for stubthreshold
or redirect marker.
Change-Id: I8f73d398f510f252ac8d5a0fd04ccb0feaf79cc4
jenkins-bot [Thu, 30 Oct 2014 00:17:07 +0000 (00:17 +0000)]
Merge "Fix creating non-parameterized hashes in ParameterizedPassword"
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
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
jenkins-bot [Wed, 29 Oct 2014 20:58:57 +0000 (20:58 +0000)]
Merge "resourceloader: Add support for delivering templates"
Translation updater bot [Wed, 29 Oct 2014 20:37:18 +0000 (21:37 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I7ffe726ba42ee3e2ab55cc9088017c84348ed9c9
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
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
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
Mark Holmquist [Wed, 29 Oct 2014 18:30:54 +0000 (13:30 -0500)]
Support for message function in confirmCloseWindow
Change-Id: Iffe106cfc5430aaeb2c56b83316116b2c5dd5835
jenkins-bot [Wed, 29 Oct 2014 17:40:53 +0000 (17:40 +0000)]
Merge "Add more detailed upload stash error messages"
Southparkfan [Wed, 29 Oct 2014 17:12:45 +0000 (13:12 -0400)]
Fix spelling mistake: s/databses/database
Change-Id: Id532b3724792eff5849813888533c251b99edc82
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
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
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
saper [Sun, 5 Oct 2014 23:52:19 +0000 (01:52 +0200)]
mediawiki.api: Transform arrays with join('|') in query parameters
Bug: 64570
Change-Id: Ie8ea48712dc7b726266e25080b2931aebe659f0d
jenkins-bot [Tue, 28 Oct 2014 21:41:19 +0000 (21:41 +0000)]
Merge "Deprecate internal ORMTable::unprefixFieldName(s)"
jenkins-bot [Tue, 28 Oct 2014 20:46:44 +0000 (20:46 +0000)]
Merge "CoreTagHooks: 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
Kunal Mehta [Sat, 11 Oct 2014 05:43:02 +0000 (22:43 -0700)]
Fully replace Title::moveTo() with MovePage
* AbortMove hook is removed in favor of two more specificly focused
hooks: MovePageCheckPermissions and MovePageIsValidMove.
** MovePageIsValidMove is for extensions to specify whether a page
cannot be moved for technical reasons, and should not be
overridden.
** MovePageCheckPermissions is for checking whether the given user
is allowed to make the move.
* Title::moveNoAuth() deprecated
* Title::moveTo() deprecated
* Title::isValidMoveOperation() broken down into
MovePage::isValidMove() and MovePage::checkPermissions().
* Title::getTitleProtection() is now public, and returns
unprefixed fields
Change-Id: Ic5026384b92a0d68d628397ffe1de6e5b6183f02
jenkins-bot [Tue, 28 Oct 2014 17:30:55 +0000 (17:30 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (
deccd11549)"
jenkins-bot [Tue, 28 Oct 2014 17:30:52 +0000 (17:30 +0000)]
Merge "Localisation 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
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
jenkins-bot [Tue, 28 Oct 2014 15:15:55 +0000 (15:15 +0000)]
Merge "ApiHelp: Fix PHP notice when "wrap" parameter is provided"
Translation updater bot [Tue, 28 Oct 2014 14:08:16 +0000 (15:08 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I24b13302922d658dc555df91bd1a460027f7f76d
jenkins-bot [Tue, 28 Oct 2014 08:52:21 +0000 (08:52 +0000)]
Merge "Update plural data to CLDR 26"
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
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
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"
jenkins-bot [Mon, 27 Oct 2014 21:00:49 +0000 (21:00 +0000)]
Merge "Maintenance script to clean up mismatched user names in ipblocks"
jenkins-bot [Mon, 27 Oct 2014 19:59:03 +0000 (19:59 +0000)]
Merge "Use Parser::OT_PREPROCESS class const"
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
jenkins-bot [Mon, 27 Oct 2014 19:17:13 +0000 (19:17 +0000)]
Merge "Validate 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
Translation updater bot [Mon, 27 Oct 2014 18:33:41 +0000 (19:33 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I1cecca3a0fe4c99a1ecfca9ac3c7178801812086
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
jenkins-bot [Mon, 27 Oct 2014 17:59:06 +0000 (17:59 +0000)]
Merge "Replace a few more logical operators"
jenkins-bot [Mon, 27 Oct 2014 17:56:11 +0000 (17:56 +0000)]
Merge "SqlBagOStuff: reuse code of parent class"
jenkins-bot [Mon, 27 Oct 2014 17:51:39 +0000 (17:51 +0000)]
Merge "Tweaked some of the default LockManager ttls"
jenkins-bot [Mon, 27 Oct 2014 17:16:57 +0000 (17:16 +0000)]
Merge "API: Standardize usage of "ID" in docs"
jenkins-bot [Mon, 27 Oct 2014 17:08:04 +0000 (17:08 +0000)]
Merge "Make $wgMWLoggerDefaultSpi more expressive"
Brad Jorsch [Mon, 27 Oct 2014 16:51:29 +0000 (12:51 -0400)]
API: Standardize usage of "ID" in docs
Change-Id: I6c0571ceb836d35159964ead4abef09113230a68
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
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
jenkins-bot [Mon, 27 Oct 2014 00:11:25 +0000 (00:11 +0000)]
Merge "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."
jenkins-bot [Mon, 27 Oct 2014 00:10:37 +0000 (00:10 +0000)]
Merge "Add mediawiki.userSuggest to Special:UserRights"
Translation updater bot [Sun, 26 Oct 2014 19:48:29 +0000 (20:48 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ieacc0d6d4d0ca696d91d3358a4d2415ed7d37659
Siebrand Mazeland [Sun, 26 Oct 2014 18:03:59 +0000 (19:03 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I7d8ecd624b63c3323afd159600d8cca3806a7760
Siebrand Mazeland [Sun, 26 Oct 2014 17:56:17 +0000 (18:56 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I1c1be5f954c274bb2479cd7068d32562db05b670
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
Translation updater bot [Sat, 25 Oct 2014 20:06:57 +0000 (22:06 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I4136dd569abb9273398730442102867e7c7d6969
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
jenkins-bot [Sat, 25 Oct 2014 00:30:57 +0000 (00:30 +0000)]
Merge "Fix ("
Kunal Mehta [Sat, 25 Oct 2014 00:15:12 +0000 (17:15 -0700)]
Fix (
See <http://xkcd.com/859/>
Change-Id: I21113b158159d9a8a14045da87581937f71f42e3
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
jenkins-bot [Fri, 24 Oct 2014 22:23:36 +0000 (22:23 +0000)]
Merge "Add Oracle version of update-keys.sql"
jenkins-bot [Fri, 24 Oct 2014 22:23:20 +0000 (22:23 +0000)]
Merge "Add deprecated note to SkinTemplate"
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
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
Translation updater bot [Fri, 24 Oct 2014 19:49:18 +0000 (21:49 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I47cd4a8a02e237d3933691264ae82b050e48e341
jenkins-bot [Fri, 24 Oct 2014 18:47:29 +0000 (18:47 +0000)]
Merge "FormatJson::stripComments"
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
jenkins-bot [Fri, 24 Oct 2014 17:01:58 +0000 (17:01 +0000)]
Merge "Allow search to return matching category"
jenkins-bot [Fri, 24 Oct 2014 16:46:08 +0000 (16:46 +0000)]
Merge "Remove useless sleep() in JobQueueTest"
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
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
Reedy [Fri, 24 Oct 2014 10:26:14 +0000 (11:26 +0100)]
or -> ||
Change-Id: Ic591f06f70c68bb2912b7f028f7f988eb658375d
Aaron Schulz [Fri, 24 Oct 2014 05:19:19 +0000 (22:19 -0700)]
Tweaked some of the default LockManager ttls
Change-Id: Ic2c58ef02dc686f38840fe974a9d2858cd15c019
jenkins-bot [Fri, 24 Oct 2014 01:29:24 +0000 (01:29 +0000)]
Merge "MessagesSv.php: Also remove lies"
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
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
jenkins-bot [Thu, 23 Oct 2014 22:25:22 +0000 (22:25 +0000)]
Merge "Swap and for &&"
jenkins-bot [Thu, 23 Oct 2014 22:24:09 +0000 (22:24 +0000)]
Merge "MessagesNds_nl.php: Remove lies"
jenkins-bot [Thu, 23 Oct 2014 21:25:24 +0000 (21:25 +0000)]
Merge "resourceloader: Add ResourceLoaderContext::getUserObj and replace use of $wgUser"