lhc/web/wiklou.git
8 years agoSpecialEditWatchlist: Use 'parentheses' message instead of hard-coded ()
Glaisher [Tue, 6 Oct 2015 16:35:54 +0000 (21:35 +0500)]
SpecialEditWatchlist: Use 'parentheses' message instead of hard-coded ()

Change-Id: I09e71d57668787ece609b39c9c7511c2aef28730

8 years agoReenable LineLength phpcs check
Amir E. Aharoni [Sun, 27 Sep 2015 07:27:49 +0000 (10:27 +0300)]
Reenable LineLength phpcs check

Bug: T102614
Change-Id: If853510b55d787765a84bac22b2dbff2e6c526c0

8 years agoFix long line to make phpcs pass
Amir E. Aharoni [Tue, 6 Oct 2015 13:04:32 +0000 (16:04 +0300)]
Fix long line to make phpcs pass

Bug: T102614
Change-Id: I2b14938366a8cc0e911f98ebb0d3e31f0fd31899

8 years agoAdded @since to Database
Aaron Schulz [Tue, 6 Oct 2015 05:41:05 +0000 (22:41 -0700)]
Added @since to Database

Change-Id: Ia4396317bb3c78ab6b60ecbf0e1825e44ed08589

8 years agoAdd User-Agent support to MultiHttpClient requests
Tim Starling [Tue, 6 Oct 2015 01:07:29 +0000 (12:07 +1100)]
Add User-Agent support to MultiHttpClient requests

Because it is polite to send a User-Agent (and as part of T114558
investigation).

Change-Id: I5096896d0891c0c9674ff8b4284aaa3ac7293c67

8 years agoMerge "objectcache: Add BagOStuff::getWithSetCallback() convenience method"
jenkins-bot [Tue, 6 Oct 2015 00:36:13 +0000 (00:36 +0000)]
Merge "objectcache: Add BagOStuff::getWithSetCallback() convenience method"

8 years agoobjectcache: Add BagOStuff::getWithSetCallback() convenience method
Aaron Schulz [Sat, 3 Oct 2015 19:37:28 +0000 (12:37 -0700)]
objectcache: Add BagOStuff::getWithSetCallback() convenience method

Change-Id: I9cc162ff1cc48c1c500f2999327bd18ba235bfd0

8 years agoBreak numerous long lines in InfoAction
Aaron Schulz [Sun, 4 Oct 2015 19:22:19 +0000 (12:22 -0700)]
Break numerous long lines in InfoAction

Change-Id: Ia873dce8aeab3c7ce93610a70fe78034addd39d7

8 years agoMerge "Make WANObjectCache sets account for slave lag"
jenkins-bot [Tue, 6 Oct 2015 00:11:22 +0000 (00:11 +0000)]
Merge "Make WANObjectCache sets account for slave lag"

8 years agoMerge "Remove return value from FormSpecialPage::checkExecutePermissions"
jenkins-bot [Tue, 6 Oct 2015 00:00:23 +0000 (00:00 +0000)]
Merge "Remove return value from FormSpecialPage::checkExecutePermissions"

8 years agoMerge "Remove setting of $wgReadOnly in LBFactoryMulti"
jenkins-bot [Tue, 6 Oct 2015 00:00:20 +0000 (00:00 +0000)]
Merge "Remove setting of $wgReadOnly in LBFactoryMulti"

8 years agoMerge "Clean up Special:Undelete read-only checks"
jenkins-bot [Mon, 5 Oct 2015 23:50:57 +0000 (23:50 +0000)]
Merge "Clean up Special:Undelete read-only checks"

8 years agoMerge "Cleanups to MigrateFileRepoLayout"
jenkins-bot [Mon, 5 Oct 2015 23:50:38 +0000 (23:50 +0000)]
Merge "Cleanups to MigrateFileRepoLayout"

8 years agoMerge "Start rename of DatabaseBase => Database"
jenkins-bot [Mon, 5 Oct 2015 23:45:36 +0000 (23:45 +0000)]
Merge "Start rename of DatabaseBase => Database"

8 years agoMake WANObjectCache sets account for slave lag
Aaron Schulz [Thu, 1 Oct 2015 02:40:09 +0000 (19:40 -0700)]
Make WANObjectCache sets account for slave lag

* This gets lag information that is useful when
  the calling code is about to run queries that
  will have their results cached.
* This is now used in place of trxTimestamp() for
  WANObjectCache set() and getWithSetCallback().
* The WAN cache will use a low TTL if the lag is
  too high to avoid caching stale data for weeks.
* Bumped MAX_COMMIT_DELAY as nothing enforces it.

Bug: T113204
Change-Id: I2a95b4088cff42d6e980351555f81a4b13519e24

8 years agoMerge "Remove mismatched COMMIT from FileDeleteForm"
jenkins-bot [Mon, 5 Oct 2015 23:24:54 +0000 (23:24 +0000)]
Merge "Remove mismatched COMMIT from FileDeleteForm"

8 years agoMerge "Remove ?maxlag check in index.php"
jenkins-bot [Mon, 5 Oct 2015 23:21:37 +0000 (23:21 +0000)]
Merge "Remove ?maxlag check in index.php"

8 years agoMerge "objectcache: Add BagOStuff::READ_VERIFIED flag to get()"
jenkins-bot [Mon, 5 Oct 2015 23:13:24 +0000 (23:13 +0000)]
Merge "objectcache: Add BagOStuff::READ_VERIFIED flag to get()"

8 years agoobjectcache: Add BagOStuff::READ_VERIFIED flag to get()
Aaron Schulz [Sat, 3 Oct 2015 07:43:40 +0000 (00:43 -0700)]
objectcache: Add BagOStuff::READ_VERIFIED flag to get()

* This lets multiwrite backends upgrade cached items
  to higher tiers using UPGRADE_TTL.
* This is useful for memcached/sql tiers or apc/memcached.

Change-Id: I34b30ce8b54f8de36429d48c80f6768aed310272

8 years agoTitle: Fix @param for TS_MW to be string instead of int
Timo Tijhof [Mon, 5 Oct 2015 21:39:07 +0000 (14:39 -0700)]
Title: Fix @param for TS_MW to be string instead of int

Follows-up 6b0163391.

Change-Id: I7c45e1968b6ba8db0e5b19b8ca819e6ecc5764c9

8 years agoMerge "mediawiki.jqueryMsg: Always parse messages with '&'"
jenkins-bot [Mon, 5 Oct 2015 21:36:47 +0000 (21:36 +0000)]
Merge "mediawiki.jqueryMsg: Always parse messages with '&'"

8 years agoMerge "Fix DatabaseSqlite::__toString"
jenkins-bot [Mon, 5 Oct 2015 21:03:39 +0000 (21:03 +0000)]
Merge "Fix DatabaseSqlite::__toString"

8 years agoFix DatabaseSqlite::__toString
Marius Hoch [Mon, 5 Oct 2015 20:42:28 +0000 (22:42 +0200)]
Fix DatabaseSqlite::__toString

Failed with "Catchable fatal error: Object of class
PDO could not be converted to string in".

The message I used was a rather arbitrary choice, but
I think it makes sense.

Bug: T114709
Change-Id: I0023fae3fa2a0c2b37cb3c34751706fe0d481d19

8 years agoMerge "mediawiki.jqueryMsg: Refactor handling of replacements/parameters in links"
jenkins-bot [Mon, 5 Oct 2015 20:51:30 +0000 (20:51 +0000)]
Merge "mediawiki.jqueryMsg: Refactor handling of replacements/parameters in links"

8 years agoMerge "Fix DatabaseMysqlBase.php IDEA errors"
jenkins-bot [Mon, 5 Oct 2015 20:20:17 +0000 (20:20 +0000)]
Merge "Fix DatabaseMysqlBase.php IDEA errors"

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Mon, 5 Oct 2015 20:03:08 +0000 (20:03 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoMerge "Update various @params from DatabaseBase to IDatabase"
jenkins-bot [Mon, 5 Oct 2015 19:59:21 +0000 (19:59 +0000)]
Merge "Update various @params from DatabaseBase to IDatabase"

8 years agoMerge "Database debug log cleanup (remove wgDebugDumpSqlLength/wgDebugDBTransactions)"
jenkins-bot [Mon, 5 Oct 2015 19:57:45 +0000 (19:57 +0000)]
Merge "Database debug log cleanup (remove wgDebugDumpSqlLength/wgDebugDBTransactions)"

8 years agoMerge "Make generalizeSQL() protected"
jenkins-bot [Mon, 5 Oct 2015 19:53:03 +0000 (19:53 +0000)]
Merge "Make generalizeSQL() protected"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 5 Oct 2015 19:50:30 +0000 (21:50 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic61a81aba3e8c28526a5428ff73ac41f6e1a7d34

8 years agoDatabase debug log cleanup (remove wgDebugDumpSqlLength/wgDebugDBTransactions)
Aaron Schulz [Sun, 4 Oct 2015 18:39:58 +0000 (11:39 -0700)]
Database debug log cleanup (remove wgDebugDumpSqlLength/wgDebugDBTransactions)

* Simplify the debug log call and use queries group
* Remove $wgDebugDumpSqlLength, as profiler output
  already has shortened query strings (one can use
  profiling without DBO_DEBUG)
* Removed $wgDebugDBTransactions as BEGIN/COMMIT already show
* Removed PostgresTransactionState as it was only used for
  $wgDebugDBTransactions handling
* This cuts down on lots of global variable usage

Change-Id: I185adb1694441d074dea965960429b4910727620

8 years agoRemove mismatched COMMIT from FileDeleteForm
Aaron Schulz [Sat, 3 Oct 2015 01:04:45 +0000 (18:04 -0700)]
Remove mismatched COMMIT from FileDeleteForm

* Rely on the main DBO_TRX to commit at request end

Change-Id: Iad545db3603335baddc4156128f1dd756dbe99b4

8 years agoresourceloader: Tiny optimization to ResourceLoader::isValidModuleName()
Ori Livneh [Mon, 5 Oct 2015 18:39:13 +0000 (11:39 -0700)]
resourceloader: Tiny optimization to ResourceLoader::isValidModuleName()

This is a micro-optimization, but ResourceLoader is so well-optimized at this
point that the call to PCRE accounts for 1.25% of all load.php CPU time. So
might as well making it a tiny bit faster.

Change-Id: Iefab804a6ca6d54ce230958513a3bea44f4e7c62

8 years agoMerge "mw.widgets: Split CategorySelector widget to its own module"
jenkins-bot [Mon, 5 Oct 2015 19:17:27 +0000 (19:17 +0000)]
Merge "mw.widgets: Split CategorySelector widget to its own module"

8 years agomw.widgets: Split CategorySelector widget to its own module
Florian [Mon, 5 Oct 2015 17:41:40 +0000 (19:41 +0200)]
mw.widgets: Split CategorySelector widget to its own module

It's currently used by ForeignStructuredUpload only, so it's easy to split
it now and make mw.widgets as small as possible (you need to load only the
module of the widget(s) you want to use).

Bug: T108733
Change-Id: I147892eccdd5f7e0f53f824ea4d47e02984047f5

8 years agoMerge "Add null to @return tags if a method can return null"
jenkins-bot [Mon, 5 Oct 2015 17:56:00 +0000 (17:56 +0000)]
Merge "Add null to @return tags if a method can return null"

8 years agoAdd null to @return tags if a method can return null
Thiemo Mättig [Mon, 5 Oct 2015 15:53:13 +0000 (17:53 +0200)]
Add null to @return tags if a method can return null

Change-Id: I420998351663d92c4a101f61842e40591eebcd5f

8 years agomediawiki.jqueryMsg: Always parse messages with '&'
Bartosz Dziewoński [Mon, 5 Oct 2015 12:50:29 +0000 (14:50 +0200)]
mediawiki.jqueryMsg: Always parse messages with '&'

To give consistent output for messages containing HTML entities.

Turns out that we're also inconsistent about escaping in HTML tag
attributes vs. escaping in text (see tests for 'jquerymsg-entities2'
and 'jquerymsg-entities-attr2'). This patch does not try to fix this.

Bug: T55576
Change-Id: I08cf9d552d1f0243a160babb8c3cf9f257be1be3

8 years agomediawiki.jqueryMsg: Refactor handling of replacements/parameters in links
Bartosz Dziewoński [Mon, 5 Oct 2015 09:45:08 +0000 (11:45 +0200)]
mediawiki.jqueryMsg: Refactor handling of replacements/parameters in links

You should now be able to use replacements/parameters (such as '$1')
anywhere inside both link text and link target, in both external links
('[http://foo/ Bar]') and wikilinks ('[[Foo|Bar]]').

As a side effect of various cleanups, HTML in link text is now preserved
in all cases and is never wrapped in <span class="mediaWiki_htmlEmitter">.

Added test cases for it all.

Bug: T49395
Bug: T50064
Change-Id: I56d8f7ec03a70f5c2360d9c5099496ecb2f668ad

8 years agoMerge "Fix the last Generic.Files.LineLength phpcs failures"
jenkins-bot [Mon, 5 Oct 2015 12:39:24 +0000 (12:39 +0000)]
Merge "Fix the last Generic.Files.LineLength phpcs failures"

8 years agoUpdate various @params from DatabaseBase to IDatabase
Aaron Schulz [Sun, 4 Oct 2015 09:07:25 +0000 (02:07 -0700)]
Update various @params from DatabaseBase to IDatabase

Change-Id: I98e44cdffb0fc0d729f69f702799139afb988c20

8 years agoRemove setting of $wgReadOnly in LBFactoryMulti
Aaron Schulz [Mon, 5 Oct 2015 05:16:38 +0000 (22:16 -0700)]
Remove setting of $wgReadOnly in LBFactoryMulti

wfReadOnly() already pulls in this information

Change-Id: I7c4693f0e69decefcc0cf52168fa2b71152eb99b

8 years agoCleanups to MigrateFileRepoLayout
Aaron Schulz [Mon, 5 Oct 2015 04:45:25 +0000 (21:45 -0700)]
Cleanups to MigrateFileRepoLayout

* Use "bypassReadOnly" as other file backend maintenance
  scripts do.  One may want to run this while site traffic
  is off via $wgReadOnly.
* Fixed handling for when img_sha1 is not set.
* Fixed some IDEA errors.

Change-Id: I95c426c5f2082576fc9ea40282d2869750a9f3d8

8 years agoClean up Special:Undelete read-only checks
Aaron Schulz [Sun, 4 Oct 2015 20:35:16 +0000 (13:35 -0700)]
Clean up Special:Undelete read-only checks

* Use the standard SpecialPage method
* Show the error when trying to view the form for a page

Change-Id: I60a939e7d1a1164db2dc90525a750573be75fbcc

8 years agoRemove return value from FormSpecialPage::checkExecutePermissions
Aaron Schulz [Sun, 4 Oct 2015 20:22:01 +0000 (13:22 -0700)]
Remove return value from FormSpecialPage::checkExecutePermissions

It is unused and few callers comply with it

Change-Id: I3ac02ca996b57bf2222006712cc988a064dc38e5

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 4 Oct 2015 20:02:58 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I2c6d6bb15910feb1b8da5565bc27bfe7878bc0e4

8 years agoStart rename of DatabaseBase => Database
Aaron Schulz [Sun, 4 Oct 2015 19:17:57 +0000 (12:17 -0700)]
Start rename of DatabaseBase => Database

This gives static method callers the option
to use methods like Database::factory() instead
of having to use the uglier DatabaseBase::factory().

Change-Id: I61800626b71ad2803a897df060059dbaf8778679

8 years agoMake generalizeSQL() protected
Aaron Schulz [Sun, 4 Oct 2015 09:48:55 +0000 (02:48 -0700)]
Make generalizeSQL() protected

Change-Id: Ib1317576b82993adf5ae454f9ecd8bd148a58cc9

8 years agoFix DatabaseMysqlBase.php IDEA errors
Aaron Schulz [Sat, 3 Oct 2015 23:36:55 +0000 (16:36 -0700)]
Fix DatabaseMysqlBase.php IDEA errors

* Declare base mysqlRealEscapeString()
* Fix MySQLField::tableName() return value

Change-Id: I1277166e741e69cb1c045b3baa6ed8de664e9255

8 years agoConverted DatabaseBase::mTrxAtomicLevels to an array
Aaron Schulz [Sat, 3 Oct 2015 23:30:13 +0000 (16:30 -0700)]
Converted DatabaseBase::mTrxAtomicLevels to an array

* This simplifies the code and cleans up __construct()
  a bit while also making it less likely to cause
  trouble with unit testing mocks.
* Also add a sanity mTrxLevel check around usage
  of mTrxAtomicLevels in the one place it was missing

Change-Id: Ia0a7f22f5c27b3d4d8b51e04629f42a1ed9c3993

8 years agoresourceloader: cache minified user and site modules
Ori Livneh [Thu, 1 Oct 2015 18:05:08 +0000 (11:05 -0700)]
resourceloader: cache minified user and site modules

* Add support for a '/* @nomin */' annotation in ResourceLoader. If present in
  JavaScript or CSS, the code will not be minified or cached. This allows
  modules like the ResourceLoaderUserTokensModule to declare themselves unfit
  for minification / caching without requiring a complicated refactor.
* Make ResourceLoader::filter() static, at the cost of not having minifier
  errors in the ResourceLoader log bucket. (They will continue to be logged as
  exceptions, however).

Change-Id: Ic1d802ee20565e61046bfbd8fd209bc56a4cbd6c

8 years agoRemove ?maxlag check in index.php
Aaron Schulz [Sat, 3 Oct 2015 20:16:03 +0000 (13:16 -0700)]
Remove ?maxlag check in index.php

Any "good citizen" bots should be using the API
anyway and less good bots will probably not bother
sending the parameter

Change-Id: I38f45b397d29b4709a932afc6319a1323e8d1200

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 3 Oct 2015 19:55:56 +0000 (19:55 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 3 Oct 2015 19:49:52 +0000 (21:49 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie3f19a2b5cea902108126c528fb4c8f489a4d551

8 years agoMerge "Rename ObjectFactoryTest_Fixture to camel case name"
jenkins-bot [Sat, 3 Oct 2015 19:48:07 +0000 (19:48 +0000)]
Merge "Rename ObjectFactoryTest_Fixture to camel case name"

8 years agoRename ObjectFactoryTest_Fixture to camel case name
umherirrender [Sat, 3 Oct 2015 19:29:17 +0000 (21:29 +0200)]
Rename ObjectFactoryTest_Fixture to camel case name

Change-Id: Ib909c4f694b9774a0983abbb23bfd38ed8c05d5b

8 years agoEnable MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix
umherirrender [Sat, 3 Oct 2015 18:25:06 +0000 (20:25 +0200)]
Enable MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix

Should work after Ie094f78781b2d6f7af1a0f1eea1f7ea4d0b9c69c

Bug: T104501
Change-Id: I1e3e8a1480b822272c762f2771d8554980c32c1b

8 years agoEnable Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed
umherirrender [Sat, 3 Oct 2015 18:10:53 +0000 (20:10 +0200)]
Enable Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed

All remaining lines should be fixed now

Bug: T113854
Change-Id: I85269d4c84ae3a676a773e24b0a96a4e7a89ac38

8 years agoMerge "Fix ObjectCache::newAccelerator with string fallback in PHP 5.3"
jenkins-bot [Sat, 3 Oct 2015 18:18:07 +0000 (18:18 +0000)]
Merge "Fix ObjectCache::newAccelerator with string fallback in PHP 5.3"

8 years agoFix the last Generic.Files.LineLength phpcs failures
Amir E. Aharoni [Sat, 3 Oct 2015 18:02:55 +0000 (21:02 +0300)]
Fix the last Generic.Files.LineLength phpcs failures

In both cases the long lines are inside method documentation,
and because @codingStandardsIgnoreStart comments only
work with // and not /*, they have to be outside the method comment.

Bug: T102614
Bug: T114213
Change-Id: I7343e1cf662c5bf12a5e4385646c5c2c4a798260

8 years agoFix remaining Generic.Files.LineLength failures
Amir E. Aharoni [Sat, 3 Oct 2015 13:44:47 +0000 (16:44 +0300)]
Fix remaining Generic.Files.LineLength failures

Except the ones for which there is no clear way to fix
because of T114213.

Bug: T102614
Change-Id: I94a1fc7c890c82a36f0b51e42d311585c275775c

8 years agoFix Generic.Files.LineLength phpcs check under phpunit/includes/api
Amir E. Aharoni [Sat, 3 Oct 2015 13:44:13 +0000 (16:44 +0300)]
Fix Generic.Files.LineLength phpcs check under phpunit/includes/api

Bug: T102614
Change-Id: Ic0b3d9b58fee8dc20a976ae65dcb7072a3afc3b1

8 years agoFix ObjectCache::newAccelerator with string fallback in PHP 5.3
Marius Hoch [Sat, 3 Oct 2015 17:15:33 +0000 (19:15 +0200)]
Fix ObjectCache::newAccelerator with string fallback in PHP 5.3

Because in PHP5.3:

php > $a = "hash";
php > echo isset( $a['fallback'] );
1
php > echo $a['fallback'];
h

This will fix using MediaWiki with MySQL on PHP5.3
if neither APC, xcache nor wincache are available.

Change-Id: Iebf034be75b282e2654cd298713455caf062eda4

8 years agoFix Generic.Files.LineLength phpcs check in files under phpunit/includes
Amir E. Aharoni [Sat, 3 Oct 2015 13:04:51 +0000 (16:04 +0300)]
Fix Generic.Files.LineLength phpcs check in files under phpunit/includes

Bug: T102614
Change-Id: Iee3df5f064f595ecebe8210cc936bc3d20a122c9

8 years agoFix Generic.Files.LineLength phpcs failure in 11 files under includes/
Amir E. Aharoni [Sat, 3 Oct 2015 12:52:08 +0000 (15:52 +0300)]
Fix Generic.Files.LineLength phpcs failure in 11 files under includes/

Bug: T102614
Change-Id: I0d759be6ef568c2c6f28606d3002484ad77a1830

8 years agoMerge "Fix spelling of "fragment" in test descriptions"
jenkins-bot [Sat, 3 Oct 2015 16:47:29 +0000 (16:47 +0000)]
Merge "Fix spelling of "fragment" in test descriptions"

8 years agoMerge "Make lines short to pass phpcs in WikiReferenceTest.php"
jenkins-bot [Sat, 3 Oct 2015 16:47:24 +0000 (16:47 +0000)]
Merge "Make lines short to pass phpcs in WikiReferenceTest.php"

8 years agoMerge "Make lines short to pass phpcs in WikitextContentTest.php"
jenkins-bot [Sat, 3 Oct 2015 16:39:50 +0000 (16:39 +0000)]
Merge "Make lines short to pass phpcs in WikitextContentTest.php"

8 years agoMerge "Add @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes"
jenkins-bot [Sat, 3 Oct 2015 16:37:56 +0000 (16:37 +0000)]
Merge "Add @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes"

8 years agomediawiki.widgets: Add title attribute to TitleOptionWidget description
Ed Sanders [Sat, 3 Oct 2015 12:16:01 +0000 (13:16 +0100)]
mediawiki.widgets: Add title attribute to TitleOptionWidget description

As the description is likely truncated, this will provide
the full description on hover.

Change-Id: I0abce42a2582e2ac8d0db5a7fb98adeb3eadf62c

8 years agomediawiki.widgets: Fix TitleOptionWidget styles
Ed Sanders [Sat, 3 Oct 2015 12:08:47 +0000 (13:08 +0100)]
mediawiki.widgets: Fix TitleOptionWidget styles

* Make the description display:block so ellipsis works
* Fix assumption that option is a child of titleWidget,
  instead make a child of titleWidget-menu.

Bug: T114565
Change-Id: I033c83b249c710b6a2a54889501174ad56d971ce

8 years agoFix spelling of "fragment" in test descriptions
Amir E. Aharoni [Thu, 1 Oct 2015 20:23:45 +0000 (23:23 +0300)]
Fix spelling of "fragment" in test descriptions

Change-Id: I97ca75b9c587443e195b1c162dcfee7880a5e226

8 years agoMake lines short to pass phpcs in WikiReferenceTest.php
Amir E. Aharoni [Thu, 1 Oct 2015 20:22:07 +0000 (23:22 +0300)]
Make lines short to pass phpcs in WikiReferenceTest.php

Bug: T102614
Change-Id: I557744a48a6a6889fde0b050d8e646ba081d5504

8 years agoMake lines short to pass phpcs in WikitextContentTest.php
Amir E. Aharoni [Thu, 1 Oct 2015 20:16:46 +0000 (23:16 +0300)]
Make lines short to pass phpcs in WikitextContentTest.php

Bug: T102614
Change-Id: Id5f12d4cca1d952580d2bb68fdbcb3cfb2467085

8 years agoAdd @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes
Amir E. Aharoni [Thu, 1 Oct 2015 20:13:34 +0000 (23:13 +0300)]
Add @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes

To pass phpcs.

Bug: T102614
Change-Id: I4c7d60d26112c7ba67b66f1923ce945e96175d15

8 years agoConverted InfoAction::pageInfo() to using getWithSetCallback()
Aaron Schulz [Wed, 30 Sep 2015 18:24:31 +0000 (11:24 -0700)]
Converted InfoAction::pageInfo() to using getWithSetCallback()

Change-Id: I5b780d6e21d9fc7f38d365db1389153b07c6c461

8 years agoApply $wgReadOnly to all file backends
Aaron Schulz [Thu, 1 Oct 2015 23:19:05 +0000 (16:19 -0700)]
Apply $wgReadOnly to all file backends

* Also added a wfConfiguredReadOnly() method
  to avoid DB_SLAVE connections

Change-Id: I9e7ec95c4b2f763505166d2345d27abaef6257a3

8 years agoMerge "Add page purge limiter"
jenkins-bot [Fri, 2 Oct 2015 22:23:19 +0000 (22:23 +0000)]
Merge "Add page purge limiter"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 2 Oct 2015 21:30:53 +0000 (23:30 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iac862f8797a3fb3be6b7be0e2a0cab1bac88b245

8 years agoVarious getHTMLDebugLog() cleanups
Aaron Schulz [Thu, 1 Oct 2015 05:47:09 +0000 (22:47 -0700)]
Various getHTMLDebugLog() cleanups

* Removed used Entering/Exiting stuff
* Removed bogus empty entry on the first line

Change-Id: I0ade132e04d745a21f4ec9fdd52a43b10d85e4d3

8 years agoAdd page purge limiter
Reedy [Wed, 2 Oct 2013 21:39:06 +0000 (22:39 +0100)]
Add page purge limiter

Change-Id: I737dc77ce803432b0792f7e49323a29661bc056f

8 years agoMerge "Clean up getLagTimes() docs"
jenkins-bot [Fri, 2 Oct 2015 20:00:37 +0000 (20:00 +0000)]
Merge "Clean up getLagTimes() docs"

8 years agoMerge "mw.Upload.BookletLayout: Show errors and try to recover from warnings"
jenkins-bot [Fri, 2 Oct 2015 19:45:06 +0000 (19:45 +0000)]
Merge "mw.Upload.BookletLayout: Show errors and try to recover from warnings"

8 years agoClean up getLagTimes() docs
Aaron Schulz [Fri, 2 Oct 2015 00:14:35 +0000 (17:14 -0700)]
Clean up getLagTimes() docs

Change-Id: Icc11619136b6ed10f507e25cd0798da975af4ad1

8 years agoMerge "Remove redundant ApiQuery::shouldCheckMaxlag"
jenkins-bot [Fri, 2 Oct 2015 19:18:53 +0000 (19:18 +0000)]
Merge "Remove redundant ApiQuery::shouldCheckMaxlag"

8 years agoRemove redundant ApiQuery::shouldCheckMaxlag
Aaron Schulz [Fri, 2 Oct 2015 00:28:51 +0000 (17:28 -0700)]
Remove redundant ApiQuery::shouldCheckMaxlag

* Parent version already returns true

Change-Id: I118d59492b8dadd3c7128d2c74f6d37216206d0a

8 years agoobjectcache: Implement 'fallback' param for newAccelerator()
Timo Tijhof [Fri, 2 Oct 2015 19:01:38 +0000 (12:01 -0700)]
objectcache: Implement 'fallback' param for newAccelerator()

This way it can be used in $wgObjectCaches using 'factory', whilst
also specifying a fallback.

Change-Id: I8d4de1e2a394e7e915513fae91808fe32a21f75d

8 years agoAdded pt-heartbeat support to DatabaseMysqlBase
Aaron Schulz [Fri, 25 Sep 2015 19:53:04 +0000 (12:53 -0700)]
Added pt-heartbeat support to DatabaseMysqlBase

Bug: T111266
Bug: T19179
Change-Id: I04c93d5c7389fbb8fba633d955591b30a9504f31

8 years agomw.Upload.BookletLayout: Show errors and try to recover from warnings
Prateek Saxena [Fri, 2 Oct 2015 11:50:54 +0000 (17:20 +0530)]
mw.Upload.BookletLayout: Show errors and try to recover from warnings

Show useful errors and try and recover from warning by changing the
state of the upload.

Bug: T114130
Change-Id: I08704108704ffaa70245c5facfca4b063a61f01b

8 years agoMerge "mw.Upload: Add details of error when uploading to stash"
jenkins-bot [Fri, 2 Oct 2015 17:12:34 +0000 (17:12 +0000)]
Merge "mw.Upload: Add details of error when uploading to stash"

8 years agoDon't clobber existing styles when adding more in IE9
Bartosz Dziewoński [Fri, 2 Oct 2015 15:00:33 +0000 (17:00 +0200)]
Don't clobber existing styles when adding more in IE9

Follow-up to c2e8f505c12ace6af42161bf9930d483b1721f2e. This was really
stupid and I feel stupid.

Bug: T114323
Change-Id: I80292083d8fd50c2e2727446e4468b6a13ad40e5

8 years agomw.Upload: Add details of error when uploading to stash
Prateek Saxena [Thu, 1 Oct 2015 08:42:00 +0000 (14:12 +0530)]
mw.Upload: Add details of error when uploading to stash

Add a new method 'getStateDetails' to mw.Upload. The Upload.Booklet
layout uses this in the error message.

Bug: T114130
Change-Id: I932af41a7ae561774097c91f857d1daa39d8c49f

8 years agoMerge "Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public"
jenkins-bot [Fri, 2 Oct 2015 01:44:44 +0000 (01:44 +0000)]
Merge "Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public"

8 years agoMerge "build: Enable jscs jsDoc rule 'checkTypes' and make pass"
jenkins-bot [Fri, 2 Oct 2015 01:06:38 +0000 (01:06 +0000)]
Merge "build: Enable jscs jsDoc rule 'checkTypes' and make pass"

8 years agoFix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public
Ori Livneh [Fri, 2 Oct 2015 00:40:21 +0000 (17:40 -0700)]
Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public

Change-Id: Iba76d7e788c3ca5457fe462b7fd9ecfaedba50f8

8 years agoFix-up for I21bb3f08e7f: ResourceLoaderModule::expandRelativePaths
Ori Livneh [Fri, 2 Oct 2015 00:36:38 +0000 (17:36 -0700)]
Fix-up for I21bb3f08e7f: ResourceLoaderModule::expandRelativePaths

ResourceLoaderModule::expandRelativePaths(), not ResourceLoader::expandRelativePaths().

Change-Id: Ibb2a8398641d360240889988189d2ef51f114c0b

8 years agoMerge "resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo"
jenkins-bot [Fri, 2 Oct 2015 00:30:33 +0000 (00:30 +0000)]
Merge "resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo"

8 years agoModernized slave wait checks in recompressTracked.php
Aaron Schulz [Fri, 2 Oct 2015 00:18:46 +0000 (17:18 -0700)]
Modernized slave wait checks in recompressTracked.php

Change-Id: I5771af8135530677dc8223389f572896918c6b72

8 years agoresourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo
Timo Tijhof [Fri, 2 Oct 2015 00:14:19 +0000 (17:14 -0700)]
resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo

Follows-up 280d292.

Change-Id: I21bb3f08e7fc9c6b364df2934640c2d5ce1e86b0

8 years agoAdded replication=async option to FileBackendMultiWrite
Aaron Schulz [Sun, 20 Sep 2015 04:09:26 +0000 (21:09 -0700)]
Added replication=async option to FileBackendMultiWrite

* This will defer writes to non-master backends till the
  end up the web request. This is useful for multi-DC setups.

Bug: T112708
Change-Id: I118c07764dd4a4f4f2590d4548238df12860e750