Commit graph

65829 commits

Author SHA1 Message Date
Thiemo Mättig
56d2a644f7 Add null to @return tags if a method can return null
Change-Id: I420998351663d92c4a101f61842e40591eebcd5f
2015-10-05 17:53:13 +02:00
Translation updater bot
d21c75418d Localisation updates from https://translatewiki.net.
Change-Id: I2c6d6bb15910feb1b8da5565bc27bfe7878bc0e4
2015-10-04 22:02:58 +02:00
Aaron Schulz
01ef30fcc4 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
2015-10-04 01:25:11 +00:00
Ori Livneh
ca30efa30a 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
2015-10-03 20:29:48 +00:00
Translation updater bot
0b66f6ff35 Merge "Localisation updates from https://translatewiki.net." 2015-10-03 19:55:56 +00:00
Translation updater bot
019364d14c Localisation updates from https://translatewiki.net.
Change-Id: Ie3f19a2b5cea902108126c528fb4c8f489a4d551
2015-10-03 21:49:52 +02:00
jenkins-bot
edf4d8d2b8 Merge "Rename ObjectFactoryTest_Fixture to camel case name" 2015-10-03 19:48:07 +00:00
umherirrender
eca8c2a72f Rename ObjectFactoryTest_Fixture to camel case name
Change-Id: Ib909c4f694b9774a0983abbb23bfd38ed8c05d5b
2015-10-03 21:29:17 +02:00
umherirrender
d9f0515123 Enable MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix
Should work after Ie094f78781b2d6f7af1a0f1eea1f7ea4d0b9c69c

Bug: T104501
Change-Id: I1e3e8a1480b822272c762f2771d8554980c32c1b
2015-10-03 18:37:52 +00:00
umherirrender
a60c09d3b0 Enable Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed
All remaining lines should be fixed now

Bug: T113854
Change-Id: I85269d4c84ae3a676a773e24b0a96a4e7a89ac38
2015-10-03 18:22:55 +00:00
jenkins-bot
856e3bc313 Merge "Fix ObjectCache::newAccelerator with string fallback in PHP 5.3" 2015-10-03 18:18:07 +00:00
Amir E. Aharoni
c50cbe48ab 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
2015-10-03 17:23:07 +00:00
Amir E. Aharoni
94068c3e81 Fix Generic.Files.LineLength phpcs check under phpunit/includes/api
Bug: T102614
Change-Id: Ic0b3d9b58fee8dc20a976ae65dcb7072a3afc3b1
2015-10-03 17:18:05 +00:00
Marius Hoch
e6e4ffd2f4 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
2015-10-03 19:15:33 +02:00
Amir E. Aharoni
bfdd3369c2 Fix Generic.Files.LineLength phpcs check in files under phpunit/includes
Bug: T102614
Change-Id: Iee3df5f064f595ecebe8210cc936bc3d20a122c9
2015-10-03 17:13:29 +00:00
Amir E. Aharoni
c37d6549fd Fix Generic.Files.LineLength phpcs failure in 11 files under includes/
Bug: T102614
Change-Id: I0d759be6ef568c2c6f28606d3002484ad77a1830
2015-10-03 17:08:26 +00:00
jenkins-bot
288873409c Merge "Fix spelling of "fragment" in test descriptions" 2015-10-03 16:47:29 +00:00
jenkins-bot
b089b2e102 Merge "Make lines short to pass phpcs in WikiReferenceTest.php" 2015-10-03 16:47:24 +00:00
jenkins-bot
7e5dc040e6 Merge "Make lines short to pass phpcs in WikitextContentTest.php" 2015-10-03 16:39:50 +00:00
jenkins-bot
e07635acdc Merge "Add @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes" 2015-10-03 16:37:57 +00:00
Ed Sanders
3f3408c467 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
2015-10-03 16:26:50 +00:00
Ed Sanders
a51ba405b8 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
2015-10-03 16:25:44 +00:00
Amir E. Aharoni
93a673d24a Fix spelling of "fragment" in test descriptions
Change-Id: I97ca75b9c587443e195b1c162dcfee7880a5e226
2015-10-03 12:30:59 +00:00
Amir E. Aharoni
149d16d597 Make lines short to pass phpcs in WikiReferenceTest.php
Bug: T102614
Change-Id: I557744a48a6a6889fde0b050d8e646ba081d5504
2015-10-03 12:30:48 +00:00
Amir E. Aharoni
d461d5c8af Make lines short to pass phpcs in WikitextContentTest.php
Bug: T102614
Change-Id: Id5f12d4cca1d952580d2bb68fdbcb3cfb2467085
2015-10-03 12:30:38 +00:00
Amir E. Aharoni
e77af93e83 Add @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes
To pass phpcs.

Bug: T102614
Change-Id: I4c7d60d26112c7ba67b66f1923ce945e96175d15
2015-10-03 12:30:29 +00:00
Aaron Schulz
8706ed639e Converted InfoAction::pageInfo() to using getWithSetCallback()
Change-Id: I5b780d6e21d9fc7f38d365db1389153b07c6c461
2015-10-03 00:53:44 +00:00
Aaron Schulz
8a3816529a Apply $wgReadOnly to all file backends
* Also added a wfConfiguredReadOnly() method
  to avoid DB_SLAVE connections

Change-Id: I9e7ec95c4b2f763505166d2345d27abaef6257a3
2015-10-03 00:15:28 +00:00
jenkins-bot
5f71df9a35 Merge "Add page purge limiter" 2015-10-02 22:23:19 +00:00
Translation updater bot
5198ca7689 Localisation updates from https://translatewiki.net.
Change-Id: Iac862f8797a3fb3be6b7be0e2a0cab1bac88b245
2015-10-02 23:30:53 +02:00
Aaron Schulz
23173684ee Various getHTMLDebugLog() cleanups
* Removed used Entering/Exiting stuff
* Removed bogus empty entry on the first line

Change-Id: I0ade132e04d745a21f4ec9fdd52a43b10d85e4d3
2015-10-02 21:06:01 +00:00
Reedy
7fe05a9fb6 Add page purge limiter
Change-Id: I737dc77ce803432b0792f7e49323a29661bc056f
2015-10-02 20:27:44 +00:00
jenkins-bot
3dd39ff574 Merge "Clean up getLagTimes() docs" 2015-10-02 20:00:37 +00:00
jenkins-bot
94e66964cd Merge "mw.Upload.BookletLayout: Show errors and try to recover from warnings" 2015-10-02 19:45:06 +00:00
Aaron Schulz
f719a254d1 Clean up getLagTimes() docs
Change-Id: Icc11619136b6ed10f507e25cd0798da975af4ad1
2015-10-02 19:35:55 +00:00
jenkins-bot
19e04a9506 Merge "Remove redundant ApiQuery::shouldCheckMaxlag" 2015-10-02 19:18:53 +00:00
Aaron Schulz
b0630d1b30 Remove redundant ApiQuery::shouldCheckMaxlag
* Parent version already returns true

Change-Id: I118d59492b8dadd3c7128d2c74f6d37216206d0a
2015-10-02 19:09:24 +00:00
Timo Tijhof
9afd767226 objectcache: Implement 'fallback' param for newAccelerator()
This way it can be used in $wgObjectCaches using 'factory', whilst
also specifying a fallback.

Change-Id: I8d4de1e2a394e7e915513fae91808fe32a21f75d
2015-10-02 12:01:38 -07:00
Aaron Schulz
ff34e3d464 Added pt-heartbeat support to DatabaseMysqlBase
Bug: T111266
Bug: T19179
Change-Id: I04c93d5c7389fbb8fba633d955591b30a9504f31
2015-10-02 18:34:36 +00:00
Prateek Saxena
3e596a9185 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
2015-10-02 23:24:52 +05:30
jenkins-bot
7823909243 Merge "mw.Upload: Add details of error when uploading to stash" 2015-10-02 17:12:34 +00:00
Bartosz Dziewoński
b54ef9d1a0 Don't clobber existing styles when adding more in IE9
Follow-up to c2e8f505c1. This was really
stupid and I feel stupid.

Bug: T114323
Change-Id: I80292083d8fd50c2e2727446e4468b6a13ad40e5
2015-10-02 17:00:33 +02:00
Prateek Saxena
09bcd25838 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
2015-10-02 17:14:07 +05:30
jenkins-bot
7c1b7d9b50 Merge "Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public" 2015-10-02 01:44:44 +00:00
jenkins-bot
27298dc23d Merge "build: Enable jscs jsDoc rule 'checkTypes' and make pass" 2015-10-02 01:06:38 +00:00
Ori Livneh
3c1e0ac9f0 Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public
Change-Id: Iba76d7e788c3ca5457fe462b7fd9ecfaedba50f8
2015-10-01 18:05:53 -07:00
Ori Livneh
60dcbf48e7 Fix-up for I21bb3f08e7f: ResourceLoaderModule::expandRelativePaths
ResourceLoaderModule::expandRelativePaths(), not ResourceLoader::expandRelativePaths().

Change-Id: Ibb2a8398641d360240889988189d2ef51f114c0b
2015-10-02 00:37:46 +00:00
jenkins-bot
58ebffe914 Merge "resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo" 2015-10-02 00:30:33 +00:00
Aaron Schulz
4c4325e98c Modernized slave wait checks in recompressTracked.php
Change-Id: I5771af8135530677dc8223389f572896918c6b72
2015-10-02 00:19:54 +00:00
Timo Tijhof
66b2060d22 resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo
Follows-up 280d292.

Change-Id: I21bb3f08e7fc9c6b364df2934640c2d5ce1e86b0
2015-10-01 17:14:19 -07:00