lhc/web/wiklou.git
9 years agoMerge "Reduce outages due to master DB problems in doViewUpdates"
jenkins-bot [Wed, 15 Apr 2015 00:41:05 +0000 (00:41 +0000)]
Merge "Reduce outages due to master DB problems in doViewUpdates"

9 years agoMerge "mediawiki.loader: Remove optional params in mw.loader.implement tests"
jenkins-bot [Tue, 14 Apr 2015 22:19:50 +0000 (22:19 +0000)]
Merge "mediawiki.loader: Remove optional params in mw.loader.implement tests"

9 years agoMerge "Don't bother buffering a counter update with a delta of zero."
jenkins-bot [Tue, 14 Apr 2015 22:00:11 +0000 (22:00 +0000)]
Merge "Don't bother buffering a counter update with a delta of zero."

9 years agoMerge "Displaying protection expiry date and time in action=info"
jenkins-bot [Tue, 14 Apr 2015 21:46:31 +0000 (21:46 +0000)]
Merge "Displaying protection expiry date and time in action=info"

9 years agoDon't bother buffering a counter update with a delta of zero.
Ori Livneh [Tue, 14 Apr 2015 18:51:26 +0000 (11:51 -0700)]
Don't bother buffering a counter update with a delta of zero.

Counter updates with a delta of zero don't do anything, so there's no point in
sending them over the wire.

Change-Id: Iae82ee9c9a8544c94abfcbdf944bd713687dce9d

9 years agoFix link to Special:RevisionDelete in newer log revdel logs
Alex Monk [Tue, 14 Apr 2015 19:50:12 +0000 (20:50 +0100)]
Fix link to Special:RevisionDelete in newer log revdel logs

Bug: T96049
Change-Id: I6817ac13e776a3e6fa766c3996173b5da02f54de
Follows-up: Ic149960f797d05fd088fa014390d791e3ae08687

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 14 Apr 2015 19:40:40 +0000 (21:40 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I29bea8f29d49d43dc501daf22ba6d572be7901b0

9 years agoMerge "Clean up handling of 'infinity'"
jenkins-bot [Tue, 14 Apr 2015 18:57:16 +0000 (18:57 +0000)]
Merge "Clean up handling of 'infinity'"

9 years agoUploadForm: Don't set a null context
Mark Holmquist [Tue, 14 Apr 2015 18:23:20 +0000 (11:23 -0700)]
UploadForm: Don't set a null context

Breaking Special:Specialpages on master now.

Bug: T96057
Change-Id: Ieb21b4d07af2dc8ea18016568c98b78e390ac2d5

9 years agoReduce outages due to master DB problems in doViewUpdates
Aaron Schulz [Mon, 13 Apr 2015 23:50:34 +0000 (16:50 -0700)]
Reduce outages due to master DB problems in doViewUpdates

Change-Id: Ie28e8dcfc3bc402b3119d9cf43612acab2af1004

9 years agoMerge "Handle missing returnto on Special:ChangePassword/ConfirmEmail"
jenkins-bot [Tue, 14 Apr 2015 15:09:59 +0000 (15:09 +0000)]
Merge "Handle missing returnto on Special:ChangePassword/ConfirmEmail"

9 years agoMerge "API: Add license info to API help output"
jenkins-bot [Tue, 14 Apr 2015 03:56:20 +0000 (03:56 +0000)]
Merge "API: Add license info to API help output"

9 years agoMerge "Avoid edit stash log spam for bots"
Aaron Schulz [Tue, 14 Apr 2015 00:34:58 +0000 (00:34 +0000)]
Merge "Avoid edit stash log spam for bots"

9 years agoMerge "Made WatchedItem use Revision::getTimestampFromId"
Aaron Schulz [Mon, 13 Apr 2015 23:01:53 +0000 (23:01 +0000)]
Merge "Made WatchedItem use Revision::getTimestampFromId"

9 years agoMerge "Avoid using local main page title in JobSpecification"
Aaron Schulz [Mon, 13 Apr 2015 22:32:32 +0000 (22:32 +0000)]
Merge "Avoid using local main page title in JobSpecification"

9 years agoMerge "Made job factory() callers use Title::makeTitle"
jenkins-bot [Mon, 13 Apr 2015 22:16:11 +0000 (22:16 +0000)]
Merge "Made job factory() callers use Title::makeTitle"

9 years agoMerge "wikibits: Mark importScript/importStylesheet utilities as deprecated"
jenkins-bot [Mon, 13 Apr 2015 22:08:44 +0000 (22:08 +0000)]
Merge "wikibits: Mark importScript/importStylesheet utilities as deprecated"

9 years agoAvoid using local main page title in JobSpecification
Aaron Schulz [Mon, 13 Apr 2015 21:50:40 +0000 (14:50 -0700)]
Avoid using local main page title in JobSpecification

* They may not work well on the wiki that runs the jobs

Bug: T92789
Change-Id: I496974b11bd865ede9dd6d2cd534e0abdd7fa3f7

9 years agoMade WatchedItem use Revision::getTimestampFromId
Aaron Schulz [Mon, 13 Apr 2015 19:18:31 +0000 (12:18 -0700)]
Made WatchedItem use Revision::getTimestampFromId

Change-Id: I3a895a69e8f4678b82a4e50f70d6bfc4df932d74

9 years agoMade job factory() callers use Title::makeTitle
Aaron Schulz [Mon, 13 Apr 2015 21:21:30 +0000 (14:21 -0700)]
Made job factory() callers use Title::makeTitle

* The titles are not from user input and this simplifies the code

Change-Id: I067049cca5661b387076f0c28bc0b71d22162a0f

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 13 Apr 2015 20:10:07 +0000 (22:10 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I0ed09090cdcf12ced0fe66f47045795f97a11b0b

9 years agoHandle missing returnto on Special:ChangePassword/ConfirmEmail
umherirrender [Mon, 13 Apr 2015 19:31:49 +0000 (21:31 +0200)]
Handle missing returnto on Special:ChangePassword/ConfirmEmail

A missing returnto results in a null passed to Title::newFromText which
gives a warning:
Notice: Title::newFromText: $text must be a string. This will throw an
InvalidArgumentException in future

Follow-Up: I2b36b7a3b96b37e29fe06f69c13a185b3ec592a7
Change-Id: I95e6023a2630cbae69f25d63611ebafb8b2bd74c

9 years agospecials: Clean up redirect special pages ($subpage can be null)
Timo Tijhof [Sat, 11 Apr 2015 12:57:55 +0000 (13:57 +0100)]
specials: Clean up redirect special pages ($subpage can be null)

$subpage being null is clearly documented in SpecialPage::run,
SpecialPage::execute, and most special page subclasses.

But all the redirect subclasses only copied part of the typehint,
making it look like it's always a string.

For SpecialMyLanguage, follows-up b1853bba0. Don't cast null to
empty string, and don't bother giving Title::newFromText an empty
string only to bail out with null again.

Also:
* Add visibility 'public' where missing.
* Add or correct relevant documentation comments.
* In SpecialMyRedirectPages, handle error first and avoid having
  final return inside a conditional; Remove redunant 'else'.

Change-Id: Ie3543f44011832b198bb3d3e32528b6a2868dee1

9 years agowikibits: Mark importScript/importStylesheet utilities as deprecated
Schnark [Sat, 11 Apr 2015 08:07:54 +0000 (08:07 +0000)]
wikibits: Mark importScript/importStylesheet utilities as deprecated

The global variable loadedScripts and the import functions from wikibits.js
have been deprecated since 1.17 [1].

The global loadedScripts is used to keep track which scripts have
been loaded through importScriptURI. To do this, it only needs to be
a local variable, not a global.

For scripts using the global to check whether a particular script
has been loaded, here are some possible substitutes:

* Use mw.loader.getState() for scripts loaded through ResourceLoader
  (which includes Gadgets).
* Use hooks (mw.hook) to communicate between the scripts.
* Use $( 'script[src="..."]' ).length to check whether a script with
  a specific URL has been loaded.
* Use $( 'script[src]' ) for a list of all scripts (excluding inline
  scripts), and filter it for whatever you are looking for.

The functions importScriptURI and importStylesheetURI are used to
load scripts and stylesheets resp. from a URI. Use mw.loader.load() instead.
Note that there are minor differences between the deprecated functions
and mw.loader.load(), see [1] for details.

The importScript and importStylesheet shortcuts have been deprecated as well.

[1] https://www.mediawiki.org/wiki/RL/LJS#wikibits.js

Change-Id: Icc87243a8213841bfe46e48a9c074301c241041c

9 years agoMerge "Change Language::timeanddate to userTimeAndDate in RevisionList"
jenkins-bot [Mon, 13 Apr 2015 16:49:36 +0000 (16:49 +0000)]
Merge "Change Language::timeanddate to userTimeAndDate in RevisionList"

9 years agoCorrected typos in function name unpackMetaData and getMetaData
Tony Thomas [Mon, 13 Apr 2015 04:43:36 +0000 (10:13 +0530)]
Corrected typos in function name unpackMetaData and getMetaData

Bug: T95873
Change-Id: I71dffaaed24c983ce07bc02f806294337ca086e2

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 12 Apr 2015 19:30:10 +0000 (21:30 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I27277eaf911553a14ed87622ca36a6212829a2b5

9 years agoMerge "Add page_restrictions to readlock in lockSearchindex"
jenkins-bot [Sun, 12 Apr 2015 18:32:19 +0000 (18:32 +0000)]
Merge "Add page_restrictions to readlock in lockSearchindex"

9 years agoMerge "Only need one check for is_dir"
jenkins-bot [Sun, 12 Apr 2015 18:29:36 +0000 (18:29 +0000)]
Merge "Only need one check for is_dir"

9 years agoUpdate OOjs UI to v0.9.8
Timo Tijhof [Sun, 12 Apr 2015 17:25:32 +0000 (18:25 +0100)]
Update OOjs UI to v0.9.8

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

Change-Id: I369a24f74c455cd42571718a7b0078fd24c5f25e

9 years agoAdd second param to Title::newFromText warning so that called from works correctly
Niklas Laxström [Fri, 10 Apr 2015 16:14:38 +0000 (18:14 +0200)]
Add second param to Title::newFromText warning so that called from works correctly

Change-Id: Ib977acb9abfcc6e07019013c6f9fc20ece16245d

9 years agoChange Language::timeanddate to userTimeAndDate in RevisionList
umherirrender [Sat, 17 Jan 2015 19:31:18 +0000 (20:31 +0100)]
Change Language::timeanddate to userTimeAndDate in RevisionList

This avois using $wgUser when formatting the timestamp

This was done in the overrides with
I30d88822d8ede5c138dd5403a998dd722f950bbe
The htmlspecialchars was added with
Ie1f16029020f980abba35d6322b89c95326f107b to the overrides.

Change-Id: Iaa12064502b343f0f47178f4848eed72662b422c

9 years agoMerge "installer: Clear module_deps cache in updater"
jenkins-bot [Sun, 12 Apr 2015 00:02:39 +0000 (00:02 +0000)]
Merge "installer: Clear module_deps cache in updater"

9 years agoMerge "Use Language::userTime in Preferences::datetimePreferences"
jenkins-bot [Sat, 11 Apr 2015 23:51:59 +0000 (23:51 +0000)]
Merge "Use Language::userTime in Preferences::datetimePreferences"

9 years agoMerge "Fix most of IPTest to use data providers"
jenkins-bot [Sat, 11 Apr 2015 23:50:34 +0000 (23:50 +0000)]
Merge "Fix most of IPTest to use data providers"

9 years agoMerge "Set context earlier in UploadForm::__construct"
jenkins-bot [Sat, 11 Apr 2015 23:47:00 +0000 (23:47 +0000)]
Merge "Set context earlier in UploadForm::__construct"

9 years agoinstaller: Clear module_deps cache in updater
Timo Tijhof [Fri, 10 Apr 2015 19:35:13 +0000 (20:35 +0100)]
installer: Clear module_deps cache in updater

Unless --nopurge is set in update.php, clear module_deps cache
tables.

We already clear the objectcache via purgeCache(), and
msg_resource and msg_resource_links via MessageBlobStore::clear().

The module_deps table should be included as well.

Bug: T37472
Change-Id: I7cb63bb39a62b7f5be3855d022a8c76e175e95b5

9 years agoMerge "Enable entity loader and handle errors nicely in WikiImporter constructor"
jenkins-bot [Sat, 11 Apr 2015 20:58:03 +0000 (20:58 +0000)]
Merge "Enable entity loader and handle errors nicely in WikiImporter constructor"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 11 Apr 2015 19:09:43 +0000 (21:09 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If81891b3a9bd94e4e60979f16798625a32b19640

9 years agoDisplay warning message in Special:ListFiles when invalid username entered
Tina Johnson [Thu, 19 Mar 2015 15:34:50 +0000 (21:04 +0530)]
Display warning message in Special:ListFiles when invalid username entered

A warning message is to be displayed when an invalid username
is entered in Special:ListFiles. This patch does the same

Bug: T72784
Change-Id: I35fef559db812d347af7a313778e25f775e1bfb6

9 years agoAvoid edit stash log spam for bots
Aaron Schulz [Sat, 11 Apr 2015 04:06:26 +0000 (21:06 -0700)]
Avoid edit stash log spam for bots

Change-Id: I2f9cc86794f8eee282c5efdbe96d4ff981b1977b

9 years agoEnable entity loader and handle errors nicely in WikiImporter constructor
This, that and the other [Tue, 13 Jan 2015 05:57:07 +0000 (16:57 +1100)]
Enable entity loader and handle errors nicely in WikiImporter constructor

Two issues being addressed here:
* Slightly friendlier message (instead of fatal) if libxml is not present
* Need to make sure the entity loader is enabled when opening XML documents

Also provide an error message when XMLReader::open fails, as otherwise,
the user sees cryptic errors from code that tries to use the (unopened)
XMLReader.

Bug: T45868
Bug: T86036
Change-Id: Ibcccce9f09f87b17c3093fd0c3c3ff74d7dc6cb7

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 10 Apr 2015 19:24:10 +0000 (21:24 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib5c98b70064d107f2299169a33cc1f4d43e35953

9 years agoMerge "debug: Add missing "use DateTimeZone" in LegacyLogger.php"
jenkins-bot [Fri, 10 Apr 2015 18:21:01 +0000 (18:21 +0000)]
Merge "debug: Add missing "use DateTimeZone" in LegacyLogger.php"

9 years agoMerge "Reorder backlinks indexes"
jenkins-bot [Fri, 10 Apr 2015 18:04:19 +0000 (18:04 +0000)]
Merge "Reorder backlinks indexes"

9 years agodebug: Add missing "use DateTimeZone" in LegacyLogger.php
Kunal Mehta [Fri, 10 Apr 2015 17:57:01 +0000 (10:57 -0700)]
debug: Add missing "use DateTimeZone" in LegacyLogger.php

Seen in fatal.log in production: ErrorException from line 264 of
/srv/mediawiki/php-1.26wmf1/includes/exception/MWExceptionHandler.php:
Fatal Error: Class undefined: MediaWiki\Logger\DateTimeZone

Bug: T95727
Change-Id: Icb303314caaef47ac767fbf593e92d09e818f147

9 years agoUse Language::userTime in Preferences::datetimePreferences
umherirrender [Thu, 29 Jan 2015 16:13:04 +0000 (17:13 +0100)]
Use Language::userTime in Preferences::datetimePreferences

This avoids the indirect use of $wgUser

Change-Id: I951f5c4399dff6bb17c04e20dd9a7f763027b873

9 years agoRemove unused "swap" global function
Kunal Mehta [Mon, 16 Mar 2015 07:30:41 +0000 (00:30 -0700)]
Remove unused "swap" global function

Deprecated in 26e1e083e8bfd4, unused since r12411.

Change-Id: If328f09114ac5a5d23a300d9b0bbcd7d67e051c8

9 years agomediawiki.loader: Remove optional params in mw.loader.implement tests
Timo Tijhof [Tue, 9 Dec 2014 02:15:28 +0000 (02:15 +0000)]
mediawiki.loader: Remove optional params in mw.loader.implement tests

Follows-up 1f393b6da8736c. Done in a separate change to ensure
those tests work both ways.

Change-Id: I7e185db56e36fdfbb88c2d0938cdf55881e8c313

9 years agoMerge "Switched RevDelList to using start/endAtomic()"
jenkins-bot [Fri, 10 Apr 2015 16:48:57 +0000 (16:48 +0000)]
Merge "Switched RevDelList to using start/endAtomic()"

9 years agoMerge "Made deleteTagEverywhere use start/endAtomic()"
jenkins-bot [Fri, 10 Apr 2015 16:48:54 +0000 (16:48 +0000)]
Merge "Made deleteTagEverywhere use start/endAtomic()"

9 years agoMerge "Made QueryPage::preprocessResults also use the vslow group"
jenkins-bot [Fri, 10 Apr 2015 16:48:51 +0000 (16:48 +0000)]
Merge "Made QueryPage::preprocessResults also use the vslow group"

9 years agoMerge "Made JobRunner avoid slave lag more aggressively"
jenkins-bot [Fri, 10 Apr 2015 16:48:46 +0000 (16:48 +0000)]
Merge "Made JobRunner avoid slave lag more aggressively"

9 years agoFix most of IPTest to use data providers
Chad Horohoe [Fri, 10 Apr 2015 16:03:58 +0000 (09:03 -0700)]
Fix most of IPTest to use data providers

Change-Id: I7a41af445549f6688c559adbc5f16bdb428dae60

9 years agophpdoc: make references to \MediaWiki\Logger\Spi fully qualified
Bryan Davis [Fri, 10 Apr 2015 15:58:43 +0000 (09:58 -0600)]
phpdoc: make references to \MediaWiki\Logger\Spi fully qualified

Change-Id: I4a5dbc3894ea175053e1238e7fc5de4c4cf085ca

9 years agoMerge "Replace use of assertType with assertInternalType and assertInstanceOf"
jenkins-bot [Fri, 10 Apr 2015 14:51:14 +0000 (14:51 +0000)]
Merge "Replace use of assertType with assertInternalType and assertInstanceOf"

9 years agoMerge "Removed SpecialStatistics query group; vslow is enough"
jenkins-bot [Fri, 10 Apr 2015 14:15:52 +0000 (14:15 +0000)]
Merge "Removed SpecialStatistics query group; vslow is enough"

9 years agoMade QueryPage::preprocessResults also use the vslow group
Aaron Schulz [Fri, 10 Apr 2015 09:31:35 +0000 (02:31 -0700)]
Made QueryPage::preprocessResults also use the vslow group

Change-Id: If5893ef9e2a18684c8cd1ce1b6149742b392a3c3

9 years agoMerge "Update namespaces for Luri (lrc) from translatewiki"
jenkins-bot [Fri, 10 Apr 2015 07:41:04 +0000 (07:41 +0000)]
Merge "Update namespaces for Luri (lrc) from translatewiki"

9 years agoMerge "Add fallback language for Luri (lrc) to Persian (fa)"
jenkins-bot [Fri, 10 Apr 2015 07:27:10 +0000 (07:27 +0000)]
Merge "Add fallback language for Luri (lrc) to Persian (fa)"

9 years agoMade JobRunner avoid slave lag more aggressively
Aaron Schulz [Fri, 10 Apr 2015 04:35:06 +0000 (21:35 -0700)]
Made JobRunner avoid slave lag more aggressively

Bug: T95501
Change-Id: Ibba6d2947638a17c86edcdaadf484c7aa45cd1c6

9 years agoAdd fallback language for Luri (lrc) to Persian (fa)
mjbmr [Sun, 5 Apr 2015 23:44:01 +0000 (23:44 +0000)]
Add fallback language for Luri (lrc) to Persian (fa)

It's an Iranian language and fallback was not added I think back in 2008.
It's required for the creation of the Luri Wikipedia.
All Iranian languages speakers are also native Persian.
It's already added for languages such as Baluchi (bgn), Bakhtiari (bqi),
Gilaki (glk) and Mazanderani (mzn).

I discussed this with the community as well.

Change-Id: Idf3ec73f9115343fde2e8240db867877122864de

9 years agoUpdate namespaces for Luri (lrc) from translatewiki
mjbmr [Fri, 10 Apr 2015 02:31:55 +0000 (02:31 +0000)]
Update namespaces for Luri (lrc) from translatewiki

Change-Id: I241af41f278e6e117bcabd74d114a546ca69fb87

9 years agoReduce begin/commit activity in startAtomic with DBO_TRX
Aaron Schulz [Thu, 9 Apr 2015 22:49:15 +0000 (15:49 -0700)]
Reduce begin/commit activity in startAtomic with DBO_TRX

Change-Id: I6c1334967aeff54fb18091c23749fcb0b49624b9

9 years agoMerge "Set time and date formats for ce"
jenkins-bot [Thu, 9 Apr 2015 19:00:42 +0000 (19:00 +0000)]
Merge "Set time and date formats for ce"

9 years agoMerge "Update special pages aliases for Westerm Baluchi (bgn) from translatewiki"
jenkins-bot [Thu, 9 Apr 2015 18:58:15 +0000 (18:58 +0000)]
Merge "Update special pages aliases for Westerm Baluchi (bgn) from translatewiki"

9 years agoSet time and date formats for ce
Niklas Laxström [Tue, 7 Apr 2015 13:42:19 +0000 (15:42 +0200)]
Set time and date formats for ce

Bug: T94665
Change-Id: I29b23d523785f49280c9d7add590340c31835e4d

9 years agoRemoved SpecialStatistics query group; vslow is enough
Aaron Schulz [Thu, 9 Apr 2015 18:39:15 +0000 (11:39 -0700)]
Removed SpecialStatistics query group; vslow is enough

Change-Id: I1841f5c64ebeeed7c3e54a11216add5c104ad69d

9 years agoSwitched RevDelList to using start/endAtomic()
Aaron Schulz [Thu, 9 Apr 2015 18:05:07 +0000 (11:05 -0700)]
Switched RevDelList to using start/endAtomic()

Change-Id: I2c950b558390e3fd9917414998f576e4e3b0593d

9 years agoMade deleteTagEverywhere use start/endAtomic()
Aaron Schulz [Thu, 9 Apr 2015 18:11:31 +0000 (11:11 -0700)]
Made deleteTagEverywhere use start/endAtomic()

Change-Id: I54b697bc8c0f84d49bfcc20ec2753e18d24bf988

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 9 Apr 2015 17:49:40 +0000 (19:49 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie915e0ffc24328785764b98bb47a5164162a2320

9 years agoMerge "Add @group Database tags to tests that need it"
jenkins-bot [Thu, 9 Apr 2015 15:28:23 +0000 (15:28 +0000)]
Merge "Add @group Database tags to tests that need it"

9 years agoMerge "Fixed ApiQueryBase::selectNamedDb() return value"
jenkins-bot [Thu, 9 Apr 2015 14:54:47 +0000 (14:54 +0000)]
Merge "Fixed ApiQueryBase::selectNamedDb() return value"

9 years agoHave phpunit.php exit with 1 in case it couldn't run the tests
Marius Hoch [Thu, 9 Apr 2015 08:32:59 +0000 (10:32 +0200)]
Have phpunit.php exit with 1 in case it couldn't run the tests

Just makes more sense not to claim we could complete everything
if we actually couldn't.

Change-Id: I4ec3a2da8913ca546782919813eb18a05a5cca0a

9 years agoSet context earlier in UploadForm::__construct
umherirrender [Thu, 9 Apr 2015 07:21:33 +0000 (09:21 +0200)]
Set context earlier in UploadForm::__construct

The parent constructor sets the $context for the form, but
getSourceSection is using getUser before the call, which results in a
warning for using RequestContext::getMain().
Just set the context before use.

Change-Id: I88af41b22cf05ce18d3d2852325bc97cd2544556

9 years agoFixed ApiQueryBase::selectNamedDb() return value
Yuri Astrakhan [Thu, 9 Apr 2015 05:20:56 +0000 (01:20 -0400)]
Fixed ApiQueryBase::selectNamedDb() return value

The doc specifies that this func should return
named database connection, but it does not. Fixed.

Change-Id: Ibe62ff4275201382243c4861cc4fd15cf0316e43

9 years agoReplace use of assertType with assertInternalType and assertInstanceOf
aude [Thu, 9 Apr 2015 04:53:37 +0000 (00:53 -0400)]
Replace use of assertType with assertInternalType and assertInstanceOf

These are available in phpunit since 3.5.0, which I think
is reasonable to expect people to have at this point,
especially when we actually require 3.7.0 or higher in phpunit.php:

Use assertSame instead of assertArrayEquals in UIDGeneratorTest.
assertSame (and assertEqual) care about sortorder of the array,
and is perfectly sufficient in this case to check they array is correct.

if ( $puVersion !== '@package_version@' && version_compare( $puVersion, '3.7.0', '<' ) ) {
        die( "PHPUnit 3.7.0 or later required; you have {$puVersion}.\n" );
}

Change-Id: Ic32ab45110e4c4304ef046ae8d0e98c741255559

9 years agoMerge "Use XML localName when importing"
jenkins-bot [Thu, 9 Apr 2015 00:46:24 +0000 (00:46 +0000)]
Merge "Use XML localName when importing"

9 years agoMerge "Set context earlier in ImageListPager::__construct"
jenkins-bot [Thu, 9 Apr 2015 00:45:08 +0000 (00:45 +0000)]
Merge "Set context earlier in ImageListPager::__construct"

9 years agoMerge "Skip file count on Special:Statistics when no files and no upload"
jenkins-bot [Thu, 9 Apr 2015 00:45:04 +0000 (00:45 +0000)]
Merge "Skip file count on Special:Statistics when no files and no upload"

9 years agoMerge "PLURAL support for list lengths in default-skin-not-found"
jenkins-bot [Thu, 9 Apr 2015 00:44:21 +0000 (00:44 +0000)]
Merge "PLURAL support for list lengths in default-skin-not-found"

9 years agoMerge "Add help link to three rather important pages"
jenkins-bot [Thu, 9 Apr 2015 00:41:20 +0000 (00:41 +0000)]
Merge "Add help link to three rather important pages"

9 years agoMerge "Added LogEntryBase::extractParams/makeParamBlob"
jenkins-bot [Thu, 9 Apr 2015 00:32:46 +0000 (00:32 +0000)]
Merge "Added LogEntryBase::extractParams/makeParamBlob"

9 years agoMerge "Do not pass null to Title::newFromText in Special:MyLanguage"
jenkins-bot [Thu, 9 Apr 2015 00:31:23 +0000 (00:31 +0000)]
Merge "Do not pass null to Title::newFromText in Special:MyLanguage"

9 years agoMerge "update.php: Correctly report durations >= 1 hour"
jenkins-bot [Thu, 9 Apr 2015 00:26:54 +0000 (00:26 +0000)]
Merge "update.php: Correctly report durations >= 1 hour"

9 years agoMerge "Warn when jobs do large DB writes at once"
jenkins-bot [Wed, 8 Apr 2015 23:08:25 +0000 (23:08 +0000)]
Merge "Warn when jobs do large DB writes at once"

9 years agoMerge "Removed unusable maintenance script"
jenkins-bot [Wed, 8 Apr 2015 22:53:30 +0000 (22:53 +0000)]
Merge "Removed unusable maintenance script"

9 years agoWarn when jobs do large DB writes at once
Aaron Schulz [Wed, 8 Apr 2015 22:47:58 +0000 (15:47 -0700)]
Warn when jobs do large DB writes at once

Change-Id: I57e9bb630accd5b262188ab16b17b558cd3a2bc1

9 years agoRemoved unusable maintenance script
Aaron Schulz [Wed, 8 Apr 2015 22:41:36 +0000 (15:41 -0700)]
Removed unusable maintenance script

* Change left out of 4bdbfe6c1b

Change-Id: I2169586742653d0b43e2f581f28f79af960e7ada

9 years agoApiParse: Replace isCurrent() check with getLatest() comparison
Roan Kattouw [Wed, 8 Apr 2015 21:55:44 +0000 (14:55 -0700)]
ApiParse: Replace isCurrent() check with getLatest() comparison

Because the $pageObj state is what actually ends up getting used.
If $pageObj thinks an old rev is the latest one, then we are in
trouble, even if $rev knows what's really going on.

Bug: T95466
Change-Id: I4d6ba4f18adaaad052d3bee1a575ba034aaf112b

9 years agoUpdate special pages aliases for Westerm Baluchi (bgn) from translatewiki
mjbmr [Wed, 8 Apr 2015 21:39:27 +0000 (21:39 +0000)]
Update special pages aliases for Westerm Baluchi (bgn) from translatewiki

Change-Id: I15e4cb75d2fe1b2719334fb74135843b86690bc3

9 years agoAdd array type hints to minor methods in the Html class
Thiemo Mättig [Thu, 26 Mar 2015 09:47:30 +0000 (10:47 +0100)]
Add array type hints to minor methods in the Html class

I'm aware that adding these type hints does have the potential of beeing
a breaking change if a caller misuses it. Note that it really is a misuse
in this case because all these parameters are documented as "array" and
nothing else.

I double-checked the usages of all methods I touched and could not find
any caller that does not fulfill the contract of these methods - in other
words, all callers I can find in my local code base (which includes all
major extensions like Echo, Flow, Parsoid, VisualEditor and so on) pass
arrays to these parameters.

I left the main methods openElement, rawElement and so on untouched
because they are called way to often (500 times and more).

Change-Id: I5ca13b26fb08d732ce4cadc4ee3d38314e606fd3

9 years agoMerge "Set a query group on SpecialRecentChanges query"
jenkins-bot [Wed, 8 Apr 2015 20:25:47 +0000 (20:25 +0000)]
Merge "Set a query group on SpecialRecentChanges query"

9 years agoMerge "Partially revert increased wikitable padding"
Bartosz Dziewoński [Wed, 8 Apr 2015 20:02:40 +0000 (20:02 +0000)]
Merge "Partially revert increased wikitable padding"

9 years agoMerge "Made wfReadOnly() more robust at handling the lagged-slave case"
jenkins-bot [Wed, 8 Apr 2015 19:38:09 +0000 (19:38 +0000)]
Merge "Made wfReadOnly() more robust at handling the lagged-slave case"

9 years agoMerge "Make RedisBagOStuff support tag name hashing"
jenkins-bot [Wed, 8 Apr 2015 19:20:38 +0000 (19:20 +0000)]
Merge "Make RedisBagOStuff support tag name hashing"

9 years agoMerge "Made WikiPage::doPurge() avoid calling commit()"
jenkins-bot [Wed, 8 Apr 2015 19:20:30 +0000 (19:20 +0000)]
Merge "Made WikiPage::doPurge() avoid calling commit()"

9 years agoMerge "Use wfWaitForSlaves in upload stash cleanup script"
jenkins-bot [Wed, 8 Apr 2015 19:20:21 +0000 (19:20 +0000)]
Merge "Use wfWaitForSlaves in upload stash cleanup script"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 8 Apr 2015 19:07:02 +0000 (21:07 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I52aa3fcab215c84aa499cf2c8f1ff67d3fff47c3

9 years agoMerge "Log huge write queries in CLI scripts"
jenkins-bot [Wed, 8 Apr 2015 18:44:45 +0000 (18:44 +0000)]
Merge "Log huge write queries in CLI scripts"