lhc/web/wiklou.git
8 years agoMerge "Remove the SourceForge interwiki"
jenkins-bot [Tue, 8 Sep 2015 09:38:05 +0000 (09:38 +0000)]
Merge "Remove the SourceForge interwiki"

8 years agoMerge "Enhance debug log output for stacktraces"
jenkins-bot [Tue, 8 Sep 2015 08:55:11 +0000 (08:55 +0000)]
Merge "Enhance debug log output for stacktraces"

8 years agoMerge "Enhance stacktrace logging for fatals"
jenkins-bot [Tue, 8 Sep 2015 08:55:06 +0000 (08:55 +0000)]
Merge "Enhance stacktrace logging for fatals"

8 years agoMerge "Add PHP7 build to TravisCI"
jenkins-bot [Tue, 8 Sep 2015 07:45:03 +0000 (07:45 +0000)]
Merge "Add PHP7 build to TravisCI"

8 years agoMerge "Write TravisCI build matrix in more readable and extandable manner"
jenkins-bot [Tue, 8 Sep 2015 07:44:58 +0000 (07:44 +0000)]
Merge "Write TravisCI build matrix in more readable and extandable manner"

8 years agoEnhance debug log output for stacktraces
Bryan Davis [Mon, 24 Aug 2015 19:29:10 +0000 (13:29 -0600)]
Enhance debug log output for stacktraces

Make MediaWiki\Logger\LegacyLogger and
MediaWiki\Logger\Monolog\LineFormatter better at outputting stacktrace
information and provide support for 'exception' data in the logging
context that is a structured array in addition to the default Exception
object support. This works with MWExceptionHandler::handleFatalError
generated data that is provided by an HHVM interpreter and cannot be
delivered as an Exception class.

With this patch, a good value for LineFormatter's format would be:
"%datetime% %extra.host% %extra.wiki% %channel% %level_name%: %message%
%context% %exception%\n"

Bug: T89169
Bug: T107440
Change-Id: Ida01ed51c573e1654346e716723e543a1be63090

8 years agoEnhance stacktrace logging for fatals
Bryan Davis [Tue, 25 Aug 2015 04:36:30 +0000 (22:36 -0600)]
Enhance stacktrace logging for fatals

Split fatal error handling out of MWExceptionHandler::handleError() and
move to MWExceptionHandler::handleFatalError() which has been updated to
work as a dual purpose error handler and shutdown function. Under HHVM
it will be called as an error handler and receive a stacktrace via an
undocumented extension of the error handler callback data. Under PHP5 it
will be called as a shutdown handler and attempt to gather data via
error_get_last().

Also update the error handler installed by Hooks::run() to delegate to
MWExceptionHandler::handleError() for most errors. This will allow us to
properly handle errors raised from within hooks.

Bug: T89169
Change-Id: I0f1c66f203b91fff9069520169ecc4a3b55c43d0

8 years agoMerge "Remove unused private field in OutputPage"
jenkins-bot [Tue, 8 Sep 2015 06:24:09 +0000 (06:24 +0000)]
Merge "Remove unused private field in OutputPage"

8 years agoSync up with Parsoid parserTests.
Subramanya Sastry [Tue, 8 Sep 2015 01:28:13 +0000 (20:28 -0500)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit c8c7b5efa5a1754ec17294ee9e0269b3dfc9b0b1

Change-Id: I006cc95fb354c1b4ad40f0999938c5c4afaf099d

8 years agoRemove unused parameter in DjVuImage
jeroendedauw [Tue, 8 Sep 2015 00:33:21 +0000 (02:33 +0200)]
Remove unused parameter in DjVuImage

Change-Id: Ib20ff990cdec59314f4e043487792baea345b3b3

8 years agoMerge "LivePreview: Prevent unnecessary DOM change for spinner"
jenkins-bot [Tue, 8 Sep 2015 00:22:32 +0000 (00:22 +0000)]
Merge "LivePreview: Prevent unnecessary DOM change for spinner"

8 years agoMerge "Move HTMLForm-specific styles out of mediawiki.legacy.shared"
jenkins-bot [Tue, 8 Sep 2015 00:12:23 +0000 (00:12 +0000)]
Merge "Move HTMLForm-specific styles out of mediawiki.legacy.shared"

8 years agoresourceloader: Expose fetch promise in addScript()
Timo Tijhof [Fri, 4 Sep 2015 03:04:01 +0000 (04:04 +0100)]
resourceloader: Expose fetch promise in addScript()

Prerequisite for T68598 so that callers can handle errors.

Change-Id: I214159001e04c4b51453e47299b8e5d5033c258a

8 years agoMerge "Provide $.bracketedDevicePixelRatio convenience function"
jenkins-bot [Mon, 7 Sep 2015 23:39:40 +0000 (23:39 +0000)]
Merge "Provide $.bracketedDevicePixelRatio convenience function"

8 years agoMerge "Remove not needed global imports in BitmapHandler"
jenkins-bot [Mon, 7 Sep 2015 23:02:42 +0000 (23:02 +0000)]
Merge "Remove not needed global imports in BitmapHandler"

8 years agoMerge "Remove dead private methods"
jenkins-bot [Mon, 7 Sep 2015 22:59:32 +0000 (22:59 +0000)]
Merge "Remove dead private methods"

8 years agoMerge "resourceloader: Introduce new module state "executing""
jenkins-bot [Mon, 7 Sep 2015 20:45:17 +0000 (20:45 +0000)]
Merge "resourceloader: Introduce new module state "executing""

8 years agoMerge "resourceloader: Move creation addLink() function to shared mw.loader scope"
jenkins-bot [Mon, 7 Sep 2015 20:22:18 +0000 (20:22 +0000)]
Merge "resourceloader: Move creation addLink() function to shared mw.loader scope"

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

Change-Id: I8afcef58e0baf09582da036bedf12fcf6cc451d2

8 years agoresourceloader: Introduce new module state "executing"
Timo Tijhof [Mon, 7 Sep 2015 19:56:06 +0000 (20:56 +0100)]
resourceloader: Introduce new module state "executing"

No longer re-use "loading" to avoid confusion.

Code paths to 'execute' (such as in 'handlePending') already prevent
double execution by only allowing execution to be started when a module
is in state "loaded". So when execute takes ownership by progressing
the state to "executing" (or "loading"), no other code paths will enter
execute until execute itself sets the next state (ready or failed).

Change-Id: I35c8d2bc2da7135456c39d4b513661d2d11fb0f4

8 years agoresourceloader: Move creation addLink() function to shared mw.loader scope
Timo Tijhof [Fri, 4 Sep 2015 04:14:02 +0000 (05:14 +0100)]
resourceloader: Move creation addLink() function to shared mw.loader scope

No need for this function to be re-created on each call of execute().
Also set state to "loading" earlier in runScript for clarity.

Change-Id: I46c7f850df90f8c160613dc6ffd251c7e9aee147

8 years agoRemove dead local var in ApiQueryUserInfo
jeroendedauw [Mon, 7 Sep 2015 19:48:54 +0000 (21:48 +0200)]
Remove dead local var in ApiQueryUserInfo

Change-Id: I8620848f22bddd133b618a7c4918adbf7adcb8c0

8 years agoRemove not needed global imports in BitmapHandler
jeroendedauw [Mon, 7 Sep 2015 19:48:19 +0000 (21:48 +0200)]
Remove not needed global imports in BitmapHandler

Change-Id: I5b3a666157a47492c28129c1b2fa52a4422c10d5

8 years agoRemove dead local var in ApiQueryAllDeletedRevisions
jeroendedauw [Mon, 7 Sep 2015 19:47:27 +0000 (21:47 +0200)]
Remove dead local var in ApiQueryAllDeletedRevisions

Need tools to find these is the methods are that huge >_>

Change-Id: I8571aee1459f318e147fa5b4e740432cdeadbfe1

8 years agoRemove unused private field in OutputPage
jeroendedauw [Mon, 7 Sep 2015 19:44:57 +0000 (21:44 +0200)]
Remove unused private field in OutputPage

Change-Id: I5d70886d67d4c1b2a3a176eace2fd545ca842aa3

8 years agoMerge "build: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass"
jenkins-bot [Mon, 7 Sep 2015 19:35:13 +0000 (19:35 +0000)]
Merge "build: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass"

8 years agoMerge "build: Enable jscs jsDoc rule 'requireParamTypes' and make pass"
jenkins-bot [Mon, 7 Sep 2015 19:29:01 +0000 (19:29 +0000)]
Merge "build: Enable jscs jsDoc rule 'requireParamTypes' and make pass"

8 years agoRemove dead private methods
jeroendedauw [Mon, 7 Sep 2015 19:20:15 +0000 (21:20 +0200)]
Remove dead private methods

Change-Id: Id49df6d16ce06c7bb00f1aaba75b64093c91c7ae

8 years agoAdd PHP7 build to TravisCI
jeroendedauw [Mon, 7 Sep 2015 18:48:44 +0000 (20:48 +0200)]
Add PHP7 build to TravisCI

Change-Id: I83231801f8618e2cf85bac6a262bba0250adcfab

8 years agoWrite TravisCI build matrix in more readable and extandable manner
jeroendedauw [Mon, 7 Sep 2015 18:47:51 +0000 (20:47 +0200)]
Write TravisCI build matrix in more readable and extandable manner

Change-Id: I320c9089a0471f56721479714288a5db58cca5fd

8 years agoUpdate TravisCI config to use hhvm rather than hhvm-nightly
jeroendedauw [Mon, 7 Sep 2015 18:32:29 +0000 (20:32 +0200)]
Update TravisCI config to use hhvm rather than hhvm-nightly

Travis stopped supporting hhvm-nightly some months ago,
so this build has been broken since.

Change-Id: Icb92ae6cd5f1d00f04f092a8cef557a9411cf77b

8 years agobuild: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass
James D. Forrester [Sat, 5 Sep 2015 19:11:47 +0000 (12:11 -0700)]
build: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass

Change-Id: I14d699f66cef87f0d93d773902c0a5326025a58c

8 years agobuild: Enable jscs jsDoc rule 'requireParamTypes' and make pass
James D. Forrester [Sat, 5 Sep 2015 18:55:03 +0000 (11:55 -0700)]
build: Enable jscs jsDoc rule 'requireParamTypes' and make pass

Change-Id: Id0e10dba3548a981ba6d301bd3cd04adbe143e64

8 years agoMerge "build: Enable jscs jsDoc rule 'requireReturnTypes' and make pass"
jenkins-bot [Mon, 7 Sep 2015 17:24:06 +0000 (17:24 +0000)]
Merge "build: Enable jscs jsDoc rule 'requireReturnTypes' and make pass"

8 years agoMerge "build: Enable altered jscs rule 'disallowQuotedKeysInObjects' and make pass"
jenkins-bot [Mon, 7 Sep 2015 17:20:58 +0000 (17:20 +0000)]
Merge "build: Enable altered jscs rule 'disallowQuotedKeysInObjects' and make pass"

8 years agobuild: Enable jscs jsDoc rule 'requireReturnTypes' and make pass
James D. Forrester [Sat, 5 Sep 2015 18:38:47 +0000 (11:38 -0700)]
build: Enable jscs jsDoc rule 'requireReturnTypes' and make pass

Change-Id: I6a73e64b2cb87fef273a196c52a1e3bbeb4f7dda

8 years agobuild: Enable altered jscs rule 'disallowQuotedKeysInObjects' and make pass
James D. Forrester [Thu, 3 Sep 2015 20:59:44 +0000 (13:59 -0700)]
build: Enable altered jscs rule 'disallowQuotedKeysInObjects' and make pass

Change-Id: I172327cdf27adb77615cb6a2ea4c76020062a45a

8 years agoMerge "mw.widgets.DateInputWidget: Add required config"
jenkins-bot [Mon, 7 Sep 2015 15:50:13 +0000 (15:50 +0000)]
Merge "mw.widgets.DateInputWidget: Add required config"

8 years agoMerge "ParserOptions: added comment regarding editsections usage."
jenkins-bot [Mon, 7 Sep 2015 14:17:16 +0000 (14:17 +0000)]
Merge "ParserOptions: added comment regarding editsections usage."

8 years agoAdd // @codingStandardsIgnore around very very long line in Language.php
Vivek Ghaisas [Mon, 7 Sep 2015 11:33:36 +0000 (17:03 +0530)]
Add // @codingStandardsIgnore around very very long line in Language.php

Bug: T110238
Change-Id: Ic681d3eb4e02443b06386ae390536912a8fc4566

8 years agoProvide $.bracketedDevicePixelRatio convenience function
Brion Vibber [Mon, 4 May 2015 21:31:23 +0000 (14:31 -0700)]
Provide $.bracketedDevicePixelRatio convenience function

Brackets the detected value from $.devicePixelRatio() to
one of the values [1, 1.5, 2] that we use for generating
images in default srcset attribute.

This is convenient for runtime fetching of images that match
our standard rendering sizes on devices/browsers that are
slightly off normal, to avoid creating extra thumbs and slowing
the fetching.

Bug: T97935
Change-Id: Ic9cb16543edee629543fa362f569414567756d79

8 years agoMerge "Improve wording of imageinfo API userid prop"
jenkins-bot [Mon, 7 Sep 2015 10:23:45 +0000 (10:23 +0000)]
Merge "Improve wording of imageinfo API userid prop"

8 years agoMerge "Use double-underscore instead of non-ASCII character for class name separator"
jenkins-bot [Mon, 7 Sep 2015 07:47:58 +0000 (07:47 +0000)]
Merge "Use double-underscore instead of non-ASCII character for class name separator"

8 years agoMerge "In LocalFile normalize integer fields to integers"
jenkins-bot [Mon, 7 Sep 2015 07:00:32 +0000 (07:00 +0000)]
Merge "In LocalFile normalize integer fields to integers"

8 years agoImprove wording of imageinfo API userid prop
Gergő Tisza [Mon, 7 Sep 2015 06:50:04 +0000 (23:50 -0700)]
Improve wording of imageinfo API userid prop

Per https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Apihelp-query%2Bimageinfo-paramvalue-prop-userid/en

Change-Id: I9a9fd4e7b6ec09d7cc2becdfd0195a7e993176c9

8 years agoIn LocalFile normalize integer fields to integers
Tim Starling [Wed, 2 Sep 2015 06:07:38 +0000 (16:07 +1000)]
In LocalFile normalize integer fields to integers

File::getWidth() etc. should return an integer not a numeric string.

Bug: T111089
Change-Id: Ic767fb6cf3db0be9810b7bfa369c209ec05a6e58

8 years agoIn namespaceDupes.php, fix link tables
Tim Starling [Fri, 13 Feb 2015 05:06:13 +0000 (16:06 +1100)]
In namespaceDupes.php, fix link tables

* Fix link destinations where a link was previously made to the
  pseudo-namespace. Don't do this for --source-pseudo-namespace since it
  only makes sense when the PDBK is essentially unchanged.
* Update pl_from_namespace, il_from_namespace and tl_from_namespace when
  moving a page.
* Run LinksDeletionUpdate::doUpdate() when deleting a page, so that
  referential integrity is preserved.

Change-Id: I584ead93d6267d1a2928ecbcdf8a4cd8e5aeef94

8 years agomw.widgets.DateInputWidget: Add required config
Prateek Saxena [Mon, 7 Sep 2015 05:46:02 +0000 (11:16 +0530)]
mw.widgets.DateInputWidget: Add required config

Change-Id: Ie3691d5239a512e1a4fa882c43c224c2de8d7598

8 years agoUse double-underscore instead of non-ASCII character for class name separator
Tim Starling [Mon, 7 Sep 2015 05:30:13 +0000 (15:30 +1000)]
Use double-underscore instead of non-ASCII character for class name separator

MediaWikiParserTest.php generates fake test classes with eval(). It uses
synthetic class names with U+2044 "fraction slash" as a separator, but
this turns out to be an unfortunate choice since in certain terminal
modes, it causes readline to return to the start of the line as if the
"home" key was pressed, without adding a character. This makes it
difficult to paste class names.

Change-Id: I1c66b9caf256b8d0535fb7ed6e52ed842e193f46

8 years agoDecode Memcached keys before returning getMulti result
Matthias Mullie [Wed, 2 Sep 2015 13:02:36 +0000 (15:02 +0200)]
Decode Memcached keys before returning getMulti result

Keys are sent to Memcached encoded. However, getMulti()
will respond in [key => value] format. The keys it
responds with should not be the encoded versions, or
callers won't be able to map them to the results.

Bug: T111138
Change-Id: I0d821b1219a492be8e93453f0249c78f18e24533

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 6 Sep 2015 19:24:52 +0000 (21:24 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4308796414e433a2007a23b7033ca74c66e67b78

8 years agoDo not encode "'" as %27 (redirect loop in Opera 12)
Bartosz Dziewoński [Thu, 20 Aug 2015 16:38:04 +0000 (18:38 +0200)]
Do not encode "'" as %27 (redirect loop in Opera 12)

Similar to 7b4df0e12e36332fc2b303d7dac2295f8d36c888,
but for apostrophe instead of tilde and for Opera
instead of Chrome.

Bug: T106793
Change-Id: Ic54390434cebcc76a6c8ab49acc164d36e0cdff6

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

Change-Id: I880e3845ea76889f5e784c414f67e644e2ad6c1d

8 years agobuild: Enable jscs rules 'requireSpacesInside*Brackets' and make pass
James D. Forrester [Thu, 3 Sep 2015 20:15:33 +0000 (13:15 -0700)]
build: Enable jscs rules 'requireSpacesInside*Brackets' and make pass

Change-Id: I1cd5b9b92b6e9419d99d9a15ad88a996253ca4cf

8 years agoRephrase apihelp-query+logevents-param-action
Amir E. Aharoni [Mon, 27 Jul 2015 18:01:06 +0000 (21:01 +0300)]
Rephrase apihelp-query+logevents-param-action

Fixes English grammar, improves readability and
makes the information more correct.

Change-Id: I0a5ab8340c5924baf7a4f04f58c0d6c3d705838e

8 years agoMerge "Clarify 'target' label on the Special:Log options."
jenkins-bot [Sat, 5 Sep 2015 09:48:57 +0000 (09:48 +0000)]
Merge "Clarify 'target' label on the Special:Log options."

8 years agoMerge "Rephrase tooltip-ca-nstab-special"
jenkins-bot [Sat, 5 Sep 2015 06:42:04 +0000 (06:42 +0000)]
Merge "Rephrase tooltip-ca-nstab-special"

8 years agoMerge "build: Alter jscs rule 'requireDotNotation' to reflect need for ES3 compatibility"
jenkins-bot [Fri, 4 Sep 2015 23:08:24 +0000 (23:08 +0000)]
Merge "build: Alter jscs rule 'requireDotNotation' to reflect need for ES3 compatibility"

8 years agoMerge "build: Enable jscs rule 'requireSpacesInsideParentheses' and make pass"
jenkins-bot [Fri, 4 Sep 2015 22:58:57 +0000 (22:58 +0000)]
Merge "build: Enable jscs rule 'requireSpacesInsideParentheses' and make pass"

8 years agoMerge "build: Bump grunt-jscs to 2.1.0 and make pass"
jenkins-bot [Fri, 4 Sep 2015 22:58:22 +0000 (22:58 +0000)]
Merge "build: Bump grunt-jscs to 2.1.0 and make pass"

8 years agoUse system default location for cafile when using php fopen.
Brian Wolff [Wed, 1 Jul 2015 07:44:12 +0000 (01:44 -0600)]
Use system default location for cafile when using php fopen.

Up to 5.5, PHP does not accept any certificates if cafile/capath
is not set. (From 5.6 it uses the system default CA budle, which is
going to be a better choice than anything we can guess.) So try
to guess the location of the system default CA bundle.

Won't work on windows, but that's a lost cause anyway because PHP
(pre-5.6) can't handle the windows CA file format.

Bug: T75203
Change-Id: I07736c150fe0783e09d297395ed25adf335edbd3

8 years agoMerge "Avoid some unused parameter IDEA errors in User.php"
jenkins-bot [Fri, 4 Sep 2015 22:19:11 +0000 (22:19 +0000)]
Merge "Avoid some unused parameter IDEA errors in User.php"

8 years agoRemove the SourceForge interwiki
Max Semenik [Fri, 4 Sep 2015 21:51:55 +0000 (14:51 -0700)]
Remove the SourceForge interwiki

Due to their recend distribution of adware bundled into open source software,
we don't want to encourage linking to that garbage pit.

Change-Id: I11d2377c2fbad3c70077b873d4e8c7e5a9fa5279

8 years agoMerge "Add option to ApiFormatRaw to generate a HTTP errorcode"
jenkins-bot [Fri, 4 Sep 2015 21:12:45 +0000 (21:12 +0000)]
Merge "Add option to ApiFormatRaw to generate a HTTP errorcode"

8 years agoAdd option to ApiFormatRaw to generate a HTTP errorcode
Derk-Jan Hartman [Fri, 4 Sep 2015 19:13:21 +0000 (21:13 +0200)]
Add option to ApiFormatRaw to generate a HTTP errorcode

New method setFailWithHTTPError() allows you to configure ApiFormatRaw
to return HTTP status code 400 in case it encounters (any) error.
This is useful for when the output format is intended to be read by a
user-agent which has no other method to be notified of errors.

Change-Id: I11b2824c6725143cff5b4c56194f94c44ce451c0

8 years agoApiQueryDeletedRevisions: Optimize ascending title generation
Brad Jorsch [Fri, 4 Sep 2015 20:24:54 +0000 (16:24 -0400)]
ApiQueryDeletedRevisions: Optimize ascending title generation

When generating titles rather than revids, it would be nice if we could
query with DISTINCT to get the titles directly instead of processing
every deleted revision for the title.

Sadly, it turns out this only works with dir=newer (dir=older is the
default). But that's probably better than nothing.

Bug: T110792
Change-Id: Idd300510c92b00722574d046399dbeb486afa98b

8 years agoClarify 'target' label on the Special:Log options.
JuneHyeon Bae [Sat, 24 May 2014 07:58:05 +0000 (16:58 +0900)]
Clarify 'target' label on the Special:Log options.

Bug: T48494
Change-Id: Id5b5c794e765f17e9413917ca4d6ca3dc3939d60

8 years agoAdd dependencies from template implementations to mediawiki.template
Matthew Flaschen [Fri, 4 Sep 2015 19:38:17 +0000 (15:38 -0400)]
Add dependencies from template implementations to mediawiki.template

Change-Id: Ie3a326ea400d1f8c8c795663945c74b1683f6616

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 4 Sep 2015 19:19:34 +0000 (21:19 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I36541a2bf5ae3db49975acb98a5b97eb3f9446fe

8 years agoMerge "OOUIHTMLForm: Make boolean form field parameters actually work everywhere"
jenkins-bot [Fri, 4 Sep 2015 19:17:28 +0000 (19:17 +0000)]
Merge "OOUIHTMLForm: Make boolean form field parameters actually work everywhere"

8 years agoAvoid some unused parameter IDEA errors in User.php
Aaron Schulz [Tue, 1 Sep 2015 03:41:02 +0000 (20:41 -0700)]
Avoid some unused parameter IDEA errors in User.php

Change-Id: I75e56ab02af6aee5dbed1735ae8a3a415094508d

8 years agoMerge "resourceloader: Document mw.loader state machine"
jenkins-bot [Fri, 4 Sep 2015 18:23:07 +0000 (18:23 +0000)]
Merge "resourceloader: Document mw.loader state machine"

8 years agoMerge "Expose the ability to change suggestion api's"
jenkins-bot [Fri, 4 Sep 2015 18:16:52 +0000 (18:16 +0000)]
Merge "Expose the ability to change suggestion api's"

8 years agoresourceloader: Document mw.loader state machine
Timo Tijhof [Wed, 2 Sep 2015 13:54:23 +0000 (15:54 +0200)]
resourceloader: Document mw.loader state machine

Change-Id: I5d40a6d30805a10e638e94e9d179a0db1af2126c

8 years agoMove print rule for .mw-metadata-show-hide-extended
umherirrender [Thu, 3 Sep 2015 19:15:47 +0000 (21:15 +0200)]
Move print rule for .mw-metadata-show-hide-extended

The class mw-metadata-show-hide-extended gets hidden on print in the
commonPrint.css, moved to module with a @media rule to avoid a new file
for just one rule.

Change-Id: I4a40225febe4da6e41435cb5190fc55f8f8a3963

8 years agoMerge "Add 'mediawiki.action.view.filepage' style module"
jenkins-bot [Fri, 4 Sep 2015 15:25:07 +0000 (15:25 +0000)]
Merge "Add 'mediawiki.action.view.filepage' style module"

8 years agoMerge "Remove id #colophon from print styles"
jenkins-bot [Fri, 4 Sep 2015 15:13:48 +0000 (15:13 +0000)]
Merge "Remove id #colophon from print styles"

8 years agoAdd 'mediawiki.action.view.filepage' style module
umherirrender [Wed, 2 Sep 2015 16:21:06 +0000 (18:21 +0200)]
Add 'mediawiki.action.view.filepage' style module

Moved the style definition for a file page from shared.css to a new
module. Also for print styles.

Change-Id: I8a0f0fecc53967bf2b0241ce92bbbd10b8fc704a

8 years agoMerge "Preferences: Fix issues from 6d3c65b5b0"
jenkins-bot [Fri, 4 Sep 2015 04:41:44 +0000 (04:41 +0000)]
Merge "Preferences: Fix issues from 6d3c65b5b0"

8 years agoMerge "poolcounter: PoolCounterRedis doc cleanups"
jenkins-bot [Fri, 4 Sep 2015 03:44:34 +0000 (03:44 +0000)]
Merge "poolcounter: PoolCounterRedis doc cleanups"

8 years agopoolcounter: PoolCounterRedis doc cleanups
Aaron Schulz [Fri, 4 Sep 2015 01:06:01 +0000 (18:06 -0700)]
poolcounter: PoolCounterRedis doc cleanups

Change-Id: I0266941c40d30f631ae77695cbe81bbdc2a85a79

8 years agoMerge "resourceloader: Fully remove ResourceLoaderLESSFunctions"
jenkins-bot [Fri, 4 Sep 2015 01:50:33 +0000 (01:50 +0000)]
Merge "resourceloader: Fully remove ResourceLoaderLESSFunctions"

8 years agoresourceloader: Fully remove ResourceLoaderLESSFunctions
Ori Livneh [Fri, 4 Sep 2015 00:38:05 +0000 (17:38 -0700)]
resourceloader: Fully remove ResourceLoaderLESSFunctions

Deprecated in 1.24, for reasons explained in a0c41ae39d. I don't see any
usage in core or extensions.

Change-Id: I46f9e04ae633e7ff1ee112b652e1865731172f1f

8 years agoresourceloader: Implement mwLoadEnd marker
Timo Tijhof [Fri, 4 Sep 2015 00:37:29 +0000 (01:37 +0100)]
resourceloader: Implement mwLoadEnd marker

Complements mwLoadStart in startup.js.

Change-Id: Ic0b1fb64ee7cd72eea6d6faebdedf0def50ad4fd

8 years agoAvoid PHP warning if key is not set in getValidationHash()
Aaron Schulz [Thu, 3 Sep 2015 05:10:45 +0000 (22:10 -0700)]
Avoid PHP warning if key is not set in getValidationHash()

* Follow up to 2be60e777

Change-Id: Ic5c27226bc3f5cc870728a925b504a0dcbedaefb

8 years agoresourceloader: Rename 'mediaWikiStartUp' mark to 'mwLoadStart'
Timo Tijhof [Thu, 3 Sep 2015 18:10:51 +0000 (19:10 +0100)]
resourceloader: Rename 'mediaWikiStartUp' mark to 'mwLoadStart'

By ending with "Start" we can create a sensibly named "mwLoadEnd".
Also calling it LoadStart instead of StartUp so that it matches
the mediaWikiLoadStart global.

Abandoning 'mediaWiki' as prefix since that's a left-over from the
mediawiki.js global variable, as abbreviation 'mw' makes more sense
or full on 'MediaWiki' (with proper capital 'M').

Change-Id: I3ab0ddf53ccb83db87d705b670cf5c46516b4488

8 years agoMerge "Only use FastStringSearch on PHP <5.5"
jenkins-bot [Thu, 3 Sep 2015 23:01:59 +0000 (23:01 +0000)]
Merge "Only use FastStringSearch on PHP <5.5"

8 years agoOnly use FastStringSearch on PHP <5.5
Ori Livneh [Thu, 3 Sep 2015 20:31:39 +0000 (13:31 -0700)]
Only use FastStringSearch on PHP <5.5

The native implementation of strtr( $str, $replace_pairs ) matches the
performance of FastStringSearch since http://bugs.php.net/63893 has been
resolved. HHVM's implementation does too, since PR facebook/hhvm#5471.

Change-Id: I20374d37bbb9958188a0487abc5b50f08ce40840

8 years agobuild: Alter jscs rule 'requireDotNotation' to reflect need for ES3 compatibility
James D. Forrester [Thu, 3 Sep 2015 22:07:22 +0000 (15:07 -0700)]
build: Alter jscs rule 'requireDotNotation' to reflect need for ES3 compatibility

Change-Id: I0f2b59e99ad1d449df45505a87976c0c466226be

8 years agoPreferences: Fix issues from 6d3c65b5b0
Geoffrey Mon [Sun, 2 Aug 2015 00:03:57 +0000 (00:03 +0000)]
Preferences: Fix issues from 6d3c65b5b0

* Use .mw-preferences-messagebox instead of .successbox to
  avoid conflicts with other Special pages using '.successbox'
  as a class and so that the new class can be used to check
  for messages to replace with notifications
* Add logic to check for messages to replace using the new
  aforementioned class
* Use Html::rawElement and Html::element instead of Xml::tags
  to add the non-JS successbox
* Re-added <p> tags around non-JS successbox message that were
  accidentally ommitted in the original patch

Bug: T19496
Change-Id: I990667aa114d8201516bee6cb2ad22994de53c6c

8 years agobuild: Enable jscs rule 'requireSpacesInsideParentheses' and make pass
James D. Forrester [Thu, 3 Sep 2015 20:13:33 +0000 (13:13 -0700)]
build: Enable jscs rule 'requireSpacesInsideParentheses' and make pass

Change-Id: Ie88c89344e54657f007e5101472e667be5408319

8 years agobuild: Bump grunt-jscs to 2.1.0 and make pass
James D. Forrester [Tue, 4 Aug 2015 02:13:14 +0000 (19:13 -0700)]
build: Bump grunt-jscs to 2.1.0 and make pass

Change-Id: I7c5a38ad16c471bb1443a5bde56dda4203fcfad5

8 years agoMerge "registration: Allow custom prefixes for configuration settings"
jenkins-bot [Thu, 3 Sep 2015 21:28:31 +0000 (21:28 +0000)]
Merge "registration: Allow custom prefixes for configuration settings"

8 years agoMerge "Fix issues spotted by jshint 2.9.0"
jenkins-bot [Thu, 3 Sep 2015 21:17:02 +0000 (21:17 +0000)]
Merge "Fix issues spotted by jshint 2.9.0"

8 years agoFix issues spotted by jshint 2.9.0
Kunal Mehta [Thu, 3 Sep 2015 16:50:58 +0000 (09:50 -0700)]
Fix issues spotted by jshint 2.9.0

And workaround <https://github.com/jshint/jshint/issues/2656>.

Bug: T111380
Change-Id: Ie478813fb8c39b4abfc46a92ed2d4e83af5abc88

8 years agobuild: Update grunt-contrib-jshint to v0.11.3
paladox [Thu, 3 Sep 2015 20:40:44 +0000 (21:40 +0100)]
build: Update grunt-contrib-jshint to v0.11.3

Change-Id: I2170f77042d4f31914c684bf6bdc08321abe14db

8 years agoRemove id #colophon from print styles
umherirrender [Thu, 3 Sep 2015 19:21:19 +0000 (21:21 +0200)]
Remove id #colophon from print styles

Have not found any place where this id is added to html

Change-Id: I4ac921be426d55b108eae443e3190be4c0c88018

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 3 Sep 2015 18:18:46 +0000 (20:18 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I059163c3fe6e78d77b5c83be0f2d3476f016a87c

8 years agoMerge "PrefixSearch: Avoid passing non-strings to Title::newFromText()"
jenkins-bot [Thu, 3 Sep 2015 14:58:14 +0000 (14:58 +0000)]
Merge "PrefixSearch: Avoid passing non-strings to Title::newFromText()"

8 years agoLivePreview: Prevent unnecessary DOM change for spinner
Derk-Jan Hartman [Thu, 3 Sep 2015 14:03:09 +0000 (16:03 +0200)]
LivePreview: Prevent unnecessary DOM change for spinner

Removed the dynamic margin. Seemed rather pointless to me.

Change-Id: I28ecee5e11ac3a13f27c12839989fa295c9f1360