lhc/web/wiklou.git
8 years agoWrap some long lines...
Reedy [Sat, 26 Sep 2015 19:34:18 +0000 (20:34 +0100)]
Wrap some long lines...

Change-Id: Ib3a5d39e3c51caa187d4b1a6f1b736546a43f8cd

8 years agoMerge "API: Correct 'from_namespace' logic in ApiQueryBacklinksprop"
jenkins-bot [Sat, 26 Sep 2015 19:04:19 +0000 (19:04 +0000)]
Merge "API: Correct 'from_namespace' logic in ApiQueryBacklinksprop"

8 years agoMerge "Make lines short to pass phpcs in six files under includes/"
jenkins-bot [Sat, 26 Sep 2015 19:04:13 +0000 (19:04 +0000)]
Merge "Make lines short to pass phpcs in six files under includes/"

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 26 Sep 2015 18:56:44 +0000 (18:56 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoMerge "Fixed DatabaseBase references in IDatabase docs"
jenkins-bot [Sat, 26 Sep 2015 18:53:28 +0000 (18:53 +0000)]
Merge "Fixed DatabaseBase references in IDatabase docs"

8 years agoMerge "Swap leading spaces to tabs in backup phpunit tests"
jenkins-bot [Sat, 26 Sep 2015 18:53:22 +0000 (18:53 +0000)]
Merge "Swap leading spaces to tabs in backup phpunit tests"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 26 Sep 2015 18:50:52 +0000 (20:50 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If14c9f2c908b47b278bdcc455f024b055a9ec47c

8 years agoMerge "Make lines shorter to pass phpcs under includes/libs"
jenkins-bot [Sat, 26 Sep 2015 18:45:48 +0000 (18:45 +0000)]
Merge "Make lines shorter to pass phpcs under includes/libs"

8 years agoMerge "Make line shorter to pass phpcs in LinkerTest.php"
jenkins-bot [Sat, 26 Sep 2015 18:45:44 +0000 (18:45 +0000)]
Merge "Make line shorter to pass phpcs in LinkerTest.php"

8 years agoMake lines short to pass phpcs in six files under includes/
Amir E. Aharoni [Sat, 26 Sep 2015 18:19:00 +0000 (21:19 +0300)]
Make lines short to pass phpcs in six files under includes/

Bug: T102614
Change-Id: I91a2d4f4bf86a22c8bb466da0e2f95ea27c571a3

8 years agoMerge "Make lines shorter to pass phpcs in some files under includes/parser"
jenkins-bot [Sat, 26 Sep 2015 18:36:07 +0000 (18:36 +0000)]
Merge "Make lines shorter to pass phpcs in some files under includes/parser"

8 years agoFixed DatabaseBase references in IDatabase docs
Aaron Schulz [Sat, 26 Sep 2015 18:32:30 +0000 (11:32 -0700)]
Fixed DatabaseBase references in IDatabase docs

Change-Id: I5538de58ec5f10426260e3de468a8aff03144976

8 years agoMerge "Database: Remove resultObject() from the public interface"
Aaron Schulz [Sat, 26 Sep 2015 18:25:01 +0000 (18:25 +0000)]
Merge "Database: Remove resultObject() from the public interface"

8 years agoMake lines shorter to pass phpcs under includes/libs
Amir E. Aharoni [Sat, 26 Sep 2015 18:06:36 +0000 (21:06 +0300)]
Make lines shorter to pass phpcs under includes/libs

Bug: T102614
Change-Id: I40ca85dbc5849d6ff7ee584c82a8b56d07e095b6

8 years agoMake line shorter to pass phpcs in LinkerTest.php
Amir E. Aharoni [Sat, 26 Sep 2015 18:09:08 +0000 (21:09 +0300)]
Make line shorter to pass phpcs in LinkerTest.php

There are other linkes here ythat will require a different treatment.

Bug: T102614
Change-Id: Ia0c75d11a85a931d37941471f9c9bdc16fda28e1

8 years agoMerge "Updated key WANObjectCache::delete() callers to avoid races"
Aaron Schulz [Sat, 26 Sep 2015 18:19:38 +0000 (18:19 +0000)]
Merge "Updated key WANObjectCache::delete() callers to avoid races"

8 years agoMake lines shorter to pass phpcs in some files under includes/parser
Amir E. Aharoni [Sat, 26 Sep 2015 17:17:49 +0000 (20:17 +0300)]
Make lines shorter to pass phpcs in some files under includes/parser

This doesn't fix all the files under includes/parser -
some of them deserve their own patches.

Bug: T102614
Change-Id: I2fcbc19ee337e1b7db4635b5e5f324c651b4d144

8 years agoMerge "Use a constructive button on Special:MovePage"
jenkins-bot [Sat, 26 Sep 2015 18:16:54 +0000 (18:16 +0000)]
Merge "Use a constructive button on Special:MovePage"

8 years agoDatabase: Remove resultObject() from the public interface
Kevin Israel [Sat, 26 Sep 2015 10:31:05 +0000 (06:31 -0400)]
Database: Remove resultObject() from the public interface

It has not been necessary to call this method outside the Database classes
since 1.11 (r23756 / 9382bc7a858c).

This is a breaking change and should not be merged before the following
changes to extensions:

* Disambiguator: Ibef942fd
* Maps: Ic90bd0ad
* OAI: Idbbe08d6
* Oversight: I63071e65
* Video: Id71914cd

Change-Id: Idfe7cd6f516f0aca850878282c47e7914accc6d8

8 years agoUpdated key WANObjectCache::delete() callers to avoid races
Aaron Schulz [Thu, 24 Sep 2015 22:25:44 +0000 (15:25 -0700)]
Updated key WANObjectCache::delete() callers to avoid races

* They now issue the delete() write before COMMIT of
  the relevant DB (or immediately if no trx is active)
* This can avoid some stale write race conditions
* Updated the WAN cache delete() docs

Change-Id: Id54887976051120b76528070d5f2ceb357d57897

8 years agoSwap leading spaces to tabs in backup phpunit tests
Reedy [Sat, 26 Sep 2015 17:54:50 +0000 (18:54 +0100)]
Swap leading spaces to tabs in backup phpunit tests

Change-Id: I821e71ab5c459d11b942f09853dbf4560fbe4d19

8 years agoRemoved used of resultObject() in QueryPage
Aaron Schulz [Sat, 26 Sep 2015 17:54:43 +0000 (10:54 -0700)]
Removed used of resultObject() in QueryPage

Change-Id: I7aa6902a7e1a0c93e28b209de995976d5891cdfb

8 years agoMerge "Re-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"
jenkins-bot [Sat, 26 Sep 2015 17:46:21 +0000 (17:46 +0000)]
Merge "Re-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"

8 years agoMerge "Add wfWaitForSlaves() call in DatabaseUpdater::runUpdates()"
jenkins-bot [Sat, 26 Sep 2015 17:35:07 +0000 (17:35 +0000)]
Merge "Add wfWaitForSlaves() call in DatabaseUpdater::runUpdates()"

8 years agoRe-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect
Reedy [Sat, 26 Sep 2015 17:04:00 +0000 (18:04 +0100)]
Re-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect

Change-Id: I1b756909a1080108c5147d46950f826871ef6dc1

8 years agoMerge "WebStart.php: Make lines shorter to make phpcs happier"
jenkins-bot [Sat, 26 Sep 2015 17:30:53 +0000 (17:30 +0000)]
Merge "WebStart.php: Make lines shorter to make phpcs happier"

8 years agoMerge "Make long lines shorter to pass phpcs in 6 files"
jenkins-bot [Sat, 26 Sep 2015 17:30:49 +0000 (17:30 +0000)]
Merge "Make long lines shorter to pass phpcs in 6 files"

8 years agoMerge "Linker.php: Make long lines shorter to pass phpcs"
jenkins-bot [Sat, 26 Sep 2015 17:21:52 +0000 (17:21 +0000)]
Merge "Linker.php: Make long lines shorter to pass phpcs"

8 years agoMerge "Fix LineLength in includes/media"
jenkins-bot [Sat, 26 Sep 2015 17:21:48 +0000 (17:21 +0000)]
Merge "Fix LineLength in includes/media"

8 years agoMake long lines shorter to pass phpcs in 6 files
Amir E. Aharoni [Sat, 26 Sep 2015 16:58:43 +0000 (19:58 +0300)]
Make long lines shorter to pass phpcs in 6 files

Bug: T102614
Change-Id: I3159c33ddd16bded94a70f363258a294f407fc58

8 years agoLinker.php: Make long lines shorter to pass phpcs
Amir E. Aharoni [Sat, 26 Sep 2015 16:31:24 +0000 (19:31 +0300)]
Linker.php: Make long lines shorter to pass phpcs

Bug: T102614
Change-Id: Ia014b8f89058fe9a4cf22ed63a0042ab1c66e97a

8 years agoMerge "Re-enable Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"
jenkins-bot [Sat, 26 Sep 2015 17:05:49 +0000 (17:05 +0000)]
Merge "Re-enable Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"

8 years agoFix LineLength in includes/media
Amir E. Aharoni [Sat, 26 Sep 2015 15:53:53 +0000 (18:53 +0300)]
Fix LineLength in includes/media

Bug: T102614
Change-Id: Id46d9040e264cd2af1174938dde58ea7d9c0bb5e

8 years agoMerge "Re-enable Squiz.WhiteSpace.SemicolonSpacing.Incorrect"
jenkins-bot [Sat, 26 Sep 2015 17:01:07 +0000 (17:01 +0000)]
Merge "Re-enable Squiz.WhiteSpace.SemicolonSpacing.Incorrect"

8 years agoMerge "Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenth...
jenkins-bot [Sat, 26 Sep 2015 16:53:03 +0000 (16:53 +0000)]
Merge "Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis"

8 years agoRe-enable Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
Reedy [Sat, 26 Sep 2015 16:45:29 +0000 (17:45 +0100)]
Re-enable Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed

Change-Id: I07b4043163e5d00709f72dbbb3e2a46b17414d1c

8 years agoRe-enable Squiz.WhiteSpace.SemicolonSpacing.Incorrect
Reedy [Sat, 26 Sep 2015 16:41:22 +0000 (17:41 +0100)]
Re-enable Squiz.WhiteSpace.SemicolonSpacing.Incorrect

Change-Id: Ie86c512fbca07f41b252d95de3ab92da3a050e72

8 years agoMerge "Re-enable Squiz.WhiteSpace.ScopeClosingBrace.Indent"
jenkins-bot [Sat, 26 Sep 2015 16:39:22 +0000 (16:39 +0000)]
Merge "Re-enable Squiz.WhiteSpace.ScopeClosingBrace.Indent"

8 years agoRe-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis
Reedy [Sat, 26 Sep 2015 16:16:19 +0000 (17:16 +0100)]
Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis

Change-Id: I8482f5dd9d79e4946e862b0ac03bd027d62e8646

8 years agoRe-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis
Reedy [Sat, 26 Sep 2015 15:48:10 +0000 (16:48 +0100)]
Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis

Fixed some SingleSpaceBeforeCloseParenthesis too

Change-Id: I1695c706a9b23ab98074ff7d6a3687eb5cdce6e7

8 years agoRe-enable Squiz.WhiteSpace.ScopeClosingBrace.Indent
Reedy [Sat, 26 Sep 2015 15:53:01 +0000 (16:53 +0100)]
Re-enable Squiz.WhiteSpace.ScopeClosingBrace.Indent

Change-Id: I743c4ce019321d631c0a11ee2112fe9aa8ba4c5d

8 years agoRe-enable PSR2.Methods.MethodDeclaration.AbstractAfterVisibility
Reedy [Sat, 26 Sep 2015 15:04:33 +0000 (16:04 +0100)]
Re-enable PSR2.Methods.MethodDeclaration.AbstractAfterVisibility

Change-Id: I50a987edf03cb19bfd707cd00c143c3665eba94f

8 years agoMerge "Re-enable PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"
jenkins-bot [Sat, 26 Sep 2015 15:28:00 +0000 (15:28 +0000)]
Merge "Re-enable PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"

8 years agoMerge "Re-enable Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines"
jenkins-bot [Sat, 26 Sep 2015 15:20:18 +0000 (15:20 +0000)]
Merge "Re-enable Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines"

8 years agoMerge "Re-enable PSR2.Methods.MethodDeclaration.StaticBeforeVisibility"
jenkins-bot [Sat, 26 Sep 2015 15:19:16 +0000 (15:19 +0000)]
Merge "Re-enable PSR2.Methods.MethodDeclaration.StaticBeforeVisibility"

8 years agoRe-enable PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter
Reedy [Sat, 26 Sep 2015 15:09:27 +0000 (16:09 +0100)]
Re-enable PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter

Change-Id: I39f71dde31f3ec18ab06904692f6a4ffd454d4d1

8 years agoMerge "Re-enable Generic.Files.EndFileNewline.NotFound"
jenkins-bot [Sat, 26 Sep 2015 15:14:24 +0000 (15:14 +0000)]
Merge "Re-enable Generic.Files.EndFileNewline.NotFound"

8 years agoMerge "Re-enable MediaWiki.VariableAnalysis.UnusedGlobalVariables"
jenkins-bot [Sat, 26 Sep 2015 15:06:38 +0000 (15:06 +0000)]
Merge "Re-enable MediaWiki.VariableAnalysis.UnusedGlobalVariables"

8 years agoRe-enable PSR2.Methods.MethodDeclaration.StaticBeforeVisibility
Reedy [Sat, 26 Sep 2015 15:02:57 +0000 (16:02 +0100)]
Re-enable PSR2.Methods.MethodDeclaration.StaticBeforeVisibility

Change-Id: Id3e4bc5d7e4d1b8003f9f6b324e2321b5af1771f

8 years agoRe-enable Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines
Reedy [Sat, 26 Sep 2015 15:00:56 +0000 (16:00 +0100)]
Re-enable Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines

Add extra whitespace line too

Change-Id: Ia33c9b63c36f121e5e9283c6d4a2b024a1821a43

8 years agoRe-enable Generic.Files.EndFileNewline.NotFound
Reedy [Sat, 26 Sep 2015 14:58:53 +0000 (15:58 +0100)]
Re-enable Generic.Files.EndFileNewline.NotFound

Change-Id: Ib84ce8dc973f7e3fe688435a72f7936342b6f2dd

8 years agoRe-enable MediaWiki.VariableAnalysis.UnusedGlobalVariables
Reedy [Sat, 26 Sep 2015 14:51:52 +0000 (15:51 +0100)]
Re-enable MediaWiki.VariableAnalysis.UnusedGlobalVariables

Globals are used in included file, so ignore warning in this case

Change-Id: I50315425827cc49eac3ca943a5a8952d0292ce23

8 years agoSpecialSearchTest.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 13:06:47 +0000 (16:06 +0300)]
SpecialSearchTest.php: Make lines shorter to make phpcs happier

Also fixes a "Single space expected before closing parenthesis" failure.

Change-Id: Id35e490e7d17ee58b643e9f74583afcef62145c2

8 years agoMediaWikiTestCase.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 11:26:35 +0000 (14:26 +0300)]
MediaWikiTestCase.php: Make lines shorter to make phpcs happier

Change-Id: I92ef73509e09c34f8b44a576e113a94f713b7d0d

8 years agoWebRequest.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 09:51:03 +0000 (12:51 +0300)]
WebRequest.php: Make lines shorter to make phpcs happier

Change-Id: Icdc91bc32c526065009b18ece34205aa765cfd46

8 years agoStatusTest.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 13:09:05 +0000 (16:09 +0300)]
StatusTest.php: Make lines shorter to make phpcs happier

Change-Id: Ibe2034fb8d1849f3c0f98d4c4c3ffcb8277e416b

8 years agoImagePage.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 09:58:36 +0000 (12:58 +0300)]
ImagePage.php: Make lines shorter to make phpcs happier

Change-Id: I7207bef25bdc82c92dd4adc669468513f367eda6

8 years agophpunit.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 11:15:11 +0000 (14:15 +0300)]
phpunit.php: Make lines shorter to make phpcs happier

Change-Id: Ide48ca85912ab55184588a1144f9fdca7ad48227

8 years agoMerge "phpcs: Disable failing sniffs in phpcs.xml"
jenkins-bot [Sat, 26 Sep 2015 13:43:01 +0000 (13:43 +0000)]
Merge "phpcs: Disable failing sniffs in phpcs.xml"

8 years agophpcs: Disable failing sniffs in phpcs.xml
Kunal Mehta [Fri, 25 Sep 2015 17:14:45 +0000 (10:14 -0700)]
phpcs: Disable failing sniffs in phpcs.xml

This allows us to make PHPCS voting, and enable the failing rules
individually when once their issues are fixed.

Bug: T102609
Change-Id: I6731d2d07bbd89d424a660ceb7aee4c0392500d3

8 years agoMaintenanceTest.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 11:19:17 +0000 (14:19 +0300)]
MaintenanceTest.php: Make lines shorter to make phpcs happier

Change-Id: I76c23b1acdd50dc8dd423ef651a2fd1d7e5acba3

8 years agoMerge "mediawiki.widgets: Create TitleSearchWidget"
jenkins-bot [Sat, 26 Sep 2015 12:01:45 +0000 (12:01 +0000)]
Merge "mediawiki.widgets: Create TitleSearchWidget"

8 years agoWebStart.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 09:45:52 +0000 (12:45 +0300)]
WebStart.php: Make lines shorter to make phpcs happier

Change-Id: Ifbcf572a08837e9572cc4ed9bd274d4e5ad676ab

8 years agoAssorted WANObjectCache doc tweaks
Aaron Schulz [Thu, 24 Sep 2015 20:47:28 +0000 (13:47 -0700)]
Assorted WANObjectCache doc tweaks

Change-Id: If207fc64279e344218d3b617eae7e69f88b23b27

8 years agoMerge "Include phpunit license for backported classes"
jenkins-bot [Sat, 26 Sep 2015 04:26:08 +0000 (04:26 +0000)]
Merge "Include phpunit license for backported classes"

8 years agoresourceloader: Include exception log id in error message
Timo Tijhof [Wed, 23 Sep 2015 16:36:10 +0000 (17:36 +0100)]
resourceloader: Include exception log id in error message

This changes the current:

> Internal error.

To be:

> [89466ede] 2015-09-23 16:40: Fatal exception of type Less_Exception

This matches how exceptions are reported on HTML pages by MediaWiki
(via MWException::getHTML in OutputPage).

The IDs are okay to be public and exposed on HTML pages even when
$wgShowExceptionDetails is disabled.

Follows-up d478ffde100. Ref T110659.

Change-Id: I501eaa629161184ba89d44e53cdac20b39cb0903

8 years agomediawiki.widgets: Create TitleSearchWidget
Ed Sanders [Fri, 25 Sep 2015 20:39:01 +0000 (21:39 +0100)]
mediawiki.widgets: Create TitleSearchWidget

TitleSearchWidget inherits from SearchWidget instead of TextInputWidget,
showing search results even when blurred.

To avoid duplication, much of the logic from TitleInputWidget has been
moved into the TitleWidget mixin.

Bug: T101169
Change-Id: I335bd912d4f5139646ba05a6a85a0d9ff3d772fa

8 years agoMade wfIsBadImage() use APC
Aaron Schulz [Fri, 25 Sep 2015 04:59:25 +0000 (21:59 -0700)]
Made wfIsBadImage() use APC

* Article 404s spend are large chunk of their time
  there and the method is also hit on page save

Change-Id: I26043f596195a8fe322bc154bf375a6c5d39c968

8 years agoMerge "Turn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery"
jenkins-bot [Fri, 25 Sep 2015 22:24:37 +0000 (22:24 +0000)]
Merge "Turn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery"

8 years agoMerge "ResourceLoaderEditToolbarModule::cssSerializeString() → CSSMin::serializeStrin...
jenkins-bot [Fri, 25 Sep 2015 21:57:16 +0000 (21:57 +0000)]
Merge "ResourceLoaderEditToolbarModule::cssSerializeString() → CSSMin::serializeStringValue()"

8 years agoTurn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery
Max Semenik [Fri, 25 Sep 2015 21:01:00 +0000 (14:01 -0700)]
Turn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery

Deciding how to behave randomly is useful for testing, yet misleading
for general usage. Now that testing is over, make it a boolean switch.

Change-Id: I3e4d02aa57c853c20152c9071c444e09da57fb35

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 25 Sep 2015 20:16:38 +0000 (22:16 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia63ccceda88256df242e36291e45c8e4db0ab0fa

8 years agoMerge "Fix hook doc for SkinTemplateBuildNavUrlsNav_urlsAfterPermalink"
jenkins-bot [Fri, 25 Sep 2015 19:47:08 +0000 (19:47 +0000)]
Merge "Fix hook doc for SkinTemplateBuildNavUrlsNav_urlsAfterPermalink"

8 years agoMerge "Fix hooks documentation for ArticleProtect/ArticleProtectComplete"
jenkins-bot [Fri, 25 Sep 2015 19:47:04 +0000 (19:47 +0000)]
Merge "Fix hooks documentation for ArticleProtect/ArticleProtectComplete"

8 years agoMerge "Fix hook documentation for PageHistoryLineEnding"
jenkins-bot [Fri, 25 Sep 2015 19:46:57 +0000 (19:46 +0000)]
Merge "Fix hook documentation for PageHistoryLineEnding"

8 years agoMerge "Fix hook documentation for ImagePageFileHistoryLine"
jenkins-bot [Fri, 25 Sep 2015 19:37:58 +0000 (19:37 +0000)]
Merge "Fix hook documentation for ImagePageFileHistoryLine"

8 years agoMerge "Add ids to "Did you mean" links so they can be distinguished"
jenkins-bot [Fri, 25 Sep 2015 19:14:17 +0000 (19:14 +0000)]
Merge "Add ids to "Did you mean" links so they can be distinguished"

8 years agoMerge "Improve the wording of apihelp-parse-param-section"
jenkins-bot [Fri, 25 Sep 2015 18:55:26 +0000 (18:55 +0000)]
Merge "Improve the wording of apihelp-parse-param-section"

8 years agoAdd ids to "Did you mean" links so they can be distinguished
tjones [Fri, 25 Sep 2015 17:48:49 +0000 (13:48 -0400)]
Add ids to "Did you mean" links so they can be distinguished

Add  distinct labels on the did-you-mean suggestion elements
so anyone who wants to detect or identify them can.

Bug: T110359
Change-Id: I77048275063afe1e6e2f4f87eb91ad3576f49a07

8 years agoMerge "Add // @codingStandardsIgnoreFile to FormatMetadata"
jenkins-bot [Fri, 25 Sep 2015 18:33:10 +0000 (18:33 +0000)]
Merge "Add // @codingStandardsIgnoreFile to FormatMetadata"

8 years agoImprove the wording of apihelp-parse-param-section
Amir E. Aharoni [Sun, 26 Jul 2015 18:13:41 +0000 (21:13 +0300)]
Improve the wording of apihelp-parse-param-section

* Change "retrieve" to "parse" (according to Anomie's comments).
* Split the first sentence for easier understanding and translation.
* Rephrase the last sentence about "new"'s validity to be more
  precise and less English-centric.

Change-Id: I71473fb186ded9e9929682d145a2381becf68767

8 years agoDo not pass void into output function in SpecialListfiles.php
jeroendedauw [Thu, 24 Sep 2015 17:12:34 +0000 (19:12 +0200)]
Do not pass void into output function in SpecialListfiles.php

Fix mistake caused by fail method name

Change-Id: I8b7706ebb823f08e16867e96436dc1b022f1e36b

8 years agoInclude phpunit license for backported classes
Erik Bernhardson [Fri, 25 Sep 2015 17:58:35 +0000 (10:58 -0700)]
Include phpunit license for backported classes

Bug: T113765
Change-Id: I3f4242d4323d447097b2de42bfade969a6e3fd9d

8 years agoMerge "Fix spacing in ReplacementArray"
jenkins-bot [Fri, 25 Sep 2015 18:13:05 +0000 (18:13 +0000)]
Merge "Fix spacing in ReplacementArray"

8 years agoAdd // @codingStandardsIgnoreFile to FormatMetadata
Kunal Mehta [Fri, 25 Sep 2015 17:56:34 +0000 (10:56 -0700)]
Add // @codingStandardsIgnoreFile to FormatMetadata

PHPCS can't handle the level of nesting in this file and the tokenizer
dies.

Change-Id: Ib660e034ad21202303dd443e573e54dd8ed05a43

8 years agoMerge "Hoist validation errors from hidden fields to the top of the form"
jenkins-bot [Fri, 25 Sep 2015 17:56:32 +0000 (17:56 +0000)]
Merge "Hoist validation errors from hidden fields to the top of the form"

8 years agoFix spacing in ReplacementArray
Kunal Mehta [Fri, 25 Sep 2015 17:54:30 +0000 (10:54 -0700)]
Fix spacing in ReplacementArray

Change-Id: I8cb23892a06ebd8ad0f0726e8a6f4c853d0eb4c3

8 years agoHoist validation errors from hidden fields to the top of the form
Gergő Tisza [Tue, 15 Sep 2015 21:49:25 +0000 (21:49 +0000)]
Hoist validation errors from hidden fields to the top of the form

HTMLFormField subclasses are supposed to handle error display but
some (like hidden fields) have no means of doing this. Add
a HTMLFormField::canDisplayErrors() method which can be overridden
to return false, in which case HTMLForm will take care of the
error display.

Also adds a 'rawmessage' message which can be used to wrap
arbitrary text. This can be passed to methods which expect a message
specifier array but do not allow a message object (so the RawMessage
class cannot be used), such as HTMLFormField::trySubmit().

Bug: T112635
Change-Id: I5d73536805774ff2ee0ec64b5442650c4888dc84

8 years agoMerge "Add @codingStandardsIgnoreFile to ConsecutiveParametersMatcher.php"
jenkins-bot [Fri, 25 Sep 2015 17:39:02 +0000 (17:39 +0000)]
Merge "Add @codingStandardsIgnoreFile to ConsecutiveParametersMatcher.php"

8 years agoMerge "registration: Vary the loaded queue cache on $wgVersion"
jenkins-bot [Fri, 25 Sep 2015 17:02:40 +0000 (17:02 +0000)]
Merge "registration: Vary the loaded queue cache on $wgVersion"

8 years agoAdd @codingStandardsIgnoreFile to ConsecutiveParametersMatcher.php
Kunal Mehta [Fri, 25 Sep 2015 16:54:12 +0000 (09:54 -0700)]
Add @codingStandardsIgnoreFile to ConsecutiveParametersMatcher.php

It was apparently copied from upstream, and doesn't match our coding
conventions.

Change-Id: I6da7ce6f29c9dff007f81a6fbf07dcc6ad37f04c

8 years agoResourceLoaderEditToolbarModule::cssSerializeString() → CSSMin::serializeStringValue()
Ori Livneh [Fri, 25 Sep 2015 16:43:35 +0000 (09:43 -0700)]
ResourceLoaderEditToolbarModule::cssSerializeString() → CSSMin::serializeStringValue()

ResourceLoaderEditToolbarModule is clearly the wrong place for something so
generic, so this method needs a new home. We can either introduce a new class
or find a suitable existing home. I think CSSMin is suitable. It has public
methods that do things that are closely related, like `encodeStringAsDataURI`
and `buildUrlValue`.

Change-Id: Icc6dfb8f47199e6188dd71948f4645baee085e51

8 years agoMerge "Remove unused private property LinkCache::$mClassVer"
jenkins-bot [Fri, 25 Sep 2015 16:40:35 +0000 (16:40 +0000)]
Merge "Remove unused private property LinkCache::$mClassVer"

8 years agoUse a constructive button on Special:MovePage
Florian [Fri, 25 Sep 2015 16:28:46 +0000 (18:28 +0200)]
Use a constructive button on Special:MovePage

Instead of a progressive button, use a constructive one, which indicates,
that the process of moving a page will be finished after submitting
the form.

Bug: T113493
Change-Id: I35ad8e5325452c20ffe2124ddbfd5bc1f0e7bb3c

8 years agoMove LogFormatter test comment block
addshore [Fri, 25 Sep 2015 15:22:22 +0000 (16:22 +0100)]
Move LogFormatter test comment block

This was missed in:
https://gerrit.wikimedia.org/r/#/c/239783/
Ia5016c82c00dd7c35a6f1253d6e385b587ec485e

Change-Id: Ibf537aaca2a0ca9d2c509499f6da5b9e51b06037

8 years agoMigrate protect log to new log system
umherirrender [Sat, 22 Aug 2015 18:29:00 +0000 (20:29 +0200)]
Migrate protect log to new log system

This localize the protect type, level and expiry on Special:Log/protect.
To allow i18n there are some details stored in the log params of new log
items, these details also shown on API output.
The details cannot get from the old existing data, because there are
containing L10n strings therefore i18n works only for new items.
In the api and for IRC the old description text is still stored in the
log params for backward compatibility.

This allows use of gender on Special:Log. Old messages are kept for use
in IRC. Tests already exists to ensure an unchanged IRC message.

Bug: T47988
Change-Id: I3bb85c61b857972e66c99c499d7d785c88cafb25

8 years agoMovePageForm: Remove incorrectly copied line (dead code)
Bartosz Dziewoński [Fri, 25 Sep 2015 14:23:09 +0000 (16:23 +0200)]
MovePageForm: Remove incorrectly copied line (dead code)

Follow-up to 5befb9b74790a99aec5514ad8f8784a4fb085288.

Change-Id: I46a6efcea701f3daccc874bd914cecc4f2db67bc

8 years agoRemove unused private property LinkCache::$mClassVer
Kevin Israel [Fri, 25 Sep 2015 09:56:44 +0000 (05:56 -0400)]
Remove unused private property LinkCache::$mClassVer

This was added in r2084 / c280ef342b64 for a "persistent link cache"
feature, which became obsolete in 1.4 and was removed in 1.5.

https://www.mediawiki.org/wiki/Manual:$wgEnablePersistentLC

Follows-up r9276 / cb45389b9c4d.

Change-Id: I2f27d6acc1a1f9a9382a47d56921f570107a7be9

8 years agoMovePageForm: Add value attribute to reason field back again
Glaisher [Fri, 25 Sep 2015 11:46:17 +0000 (16:46 +0500)]
MovePageForm: Add value attribute to reason field back again

Bug: T113718
Change-Id: Ie51a301a9d5e2c5865ae19b7c6113eb4bf24c8d4

8 years agoMerge "mediawiki.action.edit.preview: Remove use of deprecated 'modulemessages'"
jenkins-bot [Fri, 25 Sep 2015 09:49:55 +0000 (09:49 +0000)]
Merge "mediawiki.action.edit.preview: Remove use of deprecated 'modulemessages'"