lhc/web/wiklou.git
9 years agoMerge "build: Bump various devDependencies"
jenkins-bot [Tue, 10 Feb 2015 01:52:42 +0000 (01:52 +0000)]
Merge "build: Bump various devDependencies"

9 years agobuild: Bump various devDependencies
James D. Forrester [Tue, 10 Feb 2015 00:47:48 +0000 (16:47 -0800)]
build: Bump various devDependencies

grunt 0.4.2 -> 0.4.5
grunt-contrib-jshint 0.10.0 -> 0.11.0
grunt-jscs 0.8.1 -> 1.5.0
grunt-karma 0.9.0 -> 0.10.1
karma-firefox-launcher 0.1.3 -> 0.1.4
qunitjs 1.15.0 -> 1.17.1

Some minor fixes to pass new jscs rules; big ones postponed for now.

Change-Id: I5f2348c3cf96cf5aa20eeb9083300155b3920c5b

9 years agoSplit StatusValue out of Status class and put it in /libs
Aaron Schulz [Wed, 21 Jan 2015 01:23:21 +0000 (17:23 -0800)]
Split StatusValue out of Status class and put it in /libs

* Deprecated useless FileRepoStatus class

Change-Id: I015635a9bf080ef6d98b2cff49b949c4378a859f

9 years agoMerge "Trival: Comment speling"
jenkins-bot [Mon, 9 Feb 2015 23:26:41 +0000 (23:26 +0000)]
Merge "Trival: Comment speling"

9 years agoMerge "registration: Add resource template-like functionality to extension.json"
jenkins-bot [Mon, 9 Feb 2015 23:21:09 +0000 (23:21 +0000)]
Merge "registration: Add resource template-like functionality to extension.json"

9 years agoTrival: Comment speling
Gabriel Wicke [Mon, 9 Feb 2015 04:06:07 +0000 (20:06 -0800)]
Trival: Comment speling

Change-Id: I17f50b5f26f5e8c1c9687c040c64699720ea6167

9 years agoregistration: Add resource template-like functionality to extension.json
Kunal Mehta [Fri, 6 Feb 2015 09:46:05 +0000 (01:46 -0800)]
registration: Add resource template-like functionality to extension.json

This allows for extensions to specify common arguments to ResourceLoader
module definitions by only specifying them once.

The only supported values are "localBasePath" (which is relative to the
current directory), "remoteSkinPath", and "remoteExtPath". If a module
is using a custom class or is already specifying paths, the default paths
will not be added.

Tests are included to cover existing functionality and newly added
functionality. The convertExtensionToRegistration.php script was also
extended to try and guess what the default paths should be.

Bug: T88786
Change-Id: I802461796e8d8584dacf3b0c811b5ba97a4a8f7f

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 9 Feb 2015 20:08:43 +0000 (21:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3e3b21c3c18a8a6ae1862c263134f637acef9719

9 years agoMerge "HTMLForm: Support hide-if for HTMLCheckMatrix"
jenkins-bot [Mon, 9 Feb 2015 19:13:39 +0000 (19:13 +0000)]
Merge "HTMLForm: Support hide-if for HTMLCheckMatrix"

9 years agoMerge "registration: Fix regression in ExtensionMessagesFiles handling"
jenkins-bot [Mon, 9 Feb 2015 00:10:17 +0000 (00:10 +0000)]
Merge "registration: Fix regression in ExtensionMessagesFiles handling"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 8 Feb 2015 20:23:27 +0000 (21:23 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie8bca0b8e5832b189f299ee1534e468df969fe36

9 years agoMerge "Documentation of compressOld.php"
jenkins-bot [Sun, 8 Feb 2015 06:14:28 +0000 (06:14 +0000)]
Merge "Documentation of compressOld.php"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 7 Feb 2015 20:27:32 +0000 (21:27 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2ca7ae2e6545647817f47b96aa037f4c85ae848e

9 years agoResources.php: Fix phpcs-strict
Geoffrey Mon [Sat, 7 Feb 2015 15:56:20 +0000 (10:56 -0500)]
Resources.php: Fix phpcs-strict

Make line 1076 multiline to shorten it and
pass the phpcs-strict test.

Change-Id: I9a26d8b562cfa33881cbc6fb7447bdd53e4a71c5

9 years agoHTMLForm: Support hide-if for HTMLCheckMatrix
Brad Jorsch [Sat, 7 Feb 2015 13:55:58 +0000 (08:55 -0500)]
HTMLForm: Support hide-if for HTMLCheckMatrix

It outputs multiple table rows, and each one needs the class and data
attribute.

Change-Id: I6667c3ea0e10167d941cb214d76889b389af79a3

9 years agoregistration: Fix regression in ExtensionMessagesFiles handling
Kunal Mehta [Fri, 6 Feb 2015 23:02:26 +0000 (15:02 -0800)]
registration: Fix regression in ExtensionMessagesFiles handling

In f2daeaa7494b404, the handling of MessageDirs was fixed to properly
handle arrays, except that broke ExtensionMessagesFiles which doesn't
support arrays. Since both settings are pretty much different, I split
them into separate functions.

Bug: T88858
Change-Id: I48765af2489d2ef1e30adb1d7c5a5a8f23bf522d

9 years agoMerge "Fix type hint in HistoryAction::getArticle"
jenkins-bot [Fri, 6 Feb 2015 21:58:02 +0000 (21:58 +0000)]
Merge "Fix type hint in HistoryAction::getArticle"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 6 Feb 2015 19:29:26 +0000 (20:29 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic8663ea8b5ad5b4e56b349de0c6d35c51cb5da40

9 years agoMerge "Account for HiDPI variants in thumb.php rate limiting"
Brion Vibber [Fri, 6 Feb 2015 18:55:27 +0000 (18:55 +0000)]
Merge "Account for HiDPI variants in thumb.php rate limiting"

9 years agoMerge "Move wfThumbIsStandard() to GlobalFunctions and add tests"
Brion VIBBER [Fri, 6 Feb 2015 18:47:31 +0000 (18:47 +0000)]
Merge "Move wfThumbIsStandard() to GlobalFunctions and add tests"

9 years agoFix type hint in HistoryAction::getArticle
Thiemo Mättig [Fri, 6 Feb 2015 15:54:25 +0000 (16:54 +0100)]
Fix type hint in HistoryAction::getArticle

See the type hint of the accessed Action::$page variable.

Change-Id: I10e4e27773bcca507c10cf526d193bf0a1cc97ac

9 years agoMerge "mediawiki.page.gallery: Clean up $galleries variable"
jenkins-bot [Fri, 6 Feb 2015 15:07:22 +0000 (15:07 +0000)]
Merge "mediawiki.page.gallery: Clean up $galleries variable"

9 years agoDocumentation of compressOld.php
ayush_garg [Thu, 5 Feb 2015 13:13:43 +0000 (18:43 +0530)]
Documentation of compressOld.php

Change-Id: Ib6e4914379568bfae32007f6e76968791798b08f

9 years agoMerge "Database: Cast to int in estimateRowCount(), selectRowCount()"
jenkins-bot [Fri, 6 Feb 2015 10:13:00 +0000 (10:13 +0000)]
Merge "Database: Cast to int in estimateRowCount(), selectRowCount()"

9 years agoDatabase: Cast to int in estimateRowCount(), selectRowCount()
Kevin Israel [Thu, 22 Jan 2015 15:36:18 +0000 (10:36 -0500)]
Database: Cast to int in estimateRowCount(), selectRowCount()

Doc comments state that these methods return ints. In order to ensure
that, values must be cast to int before they are returned.

With respect to selectRowCount(), follows-up 65f81d284386.

Change-Id: I108221ce4ad1b5b103b015fe875de54e04781741

9 years agoRemoved old SqlBagOStuff alias
Aaron Schulz [Sun, 25 Jan 2015 07:50:19 +0000 (23:50 -0800)]
Removed old SqlBagOStuff alias

Change-Id: I6fdd8791713ce9ed67473065332266c217284974

9 years agoMerge "Properly escape the messages in CategoryViewer.php"
jenkins-bot [Thu, 5 Feb 2015 22:43:41 +0000 (22:43 +0000)]
Merge "Properly escape the messages in CategoryViewer.php"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 5 Feb 2015 21:41:05 +0000 (22:41 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3b2be6f19b721e842fda17f0e4ae9ddb7269f08a

9 years agoProperly escape the messages in CategoryViewer.php
Jackmcbarn [Thu, 5 Feb 2015 21:38:02 +0000 (21:38 +0000)]
Properly escape the messages in CategoryViewer.php

This mostly reverts commit 8fe8035da20d0f5861b51f196c7443dda06301ba,
and redoes it without escaping the parser output.

Change-Id: I87da10e63b55c1a6c83dd497e30f65ad224e052b

9 years agoMerge "Check $auth parameter in Title::isValidMoveOperation()"
jenkins-bot [Thu, 5 Feb 2015 20:26:34 +0000 (20:26 +0000)]
Merge "Check $auth parameter in Title::isValidMoveOperation()"

9 years agomediawiki.page.gallery: Clean up $galleries variable
Timo Tijhof [Thu, 29 Jan 2015 23:01:06 +0000 (15:01 -0800)]
mediawiki.page.gallery: Clean up $galleries variable

Follows-up a50c7c4181.

Instead of initialising it to an empty object and executing wasteful
code in the other functions, keep it undefined until it is defined
and use it conditionally.

Also:
* Add comment to justify() documentating what the 'this' context is.
* Return early in resize handle if $galleries hasn't been initialised yet.

Change-Id: Ib93f87e71dacfd1aad8bbb7d5559e999f4f00eb3

9 years agoUse transparent rather than white background for ImageMagick SVG thumbnails
Bartosz Dziewoński [Thu, 5 Feb 2015 18:46:30 +0000 (19:46 +0100)]
Use transparent rather than white background for ImageMagick SVG thumbnails

Default value of $wgSVGConverters['ImageMagick'] now uses transparent
background with white fallback color, rather than just white background.
This is done by using #ffffff00 ("transparent white") as background
color (the PNG file format supports saving color for transparent
pixels).

I could find no historical records for why it was done this way;
possibly the intent was to display white rather than black background
in IE 6 (which doesn't support PNG transparency) or in other contexts
where transparent background is impossible.

Bug: T76475
Change-Id: Ief0c7d71c8cc157e256fc84b1b7be3c23cc5fd9b

9 years agoCheck $auth parameter in Title::isValidMoveOperation()
Kunal Mehta [Thu, 5 Feb 2015 18:52:10 +0000 (10:52 -0800)]
Check $auth parameter in Title::isValidMoveOperation()

This also includes the integration test from SemanticMediaWiki that
caught this issue.

Bug: T74870
Change-Id: I699e14958ee36ec5e86278e5dc0caed2a015d9af

9 years agoUse 'rsvg-convert' binary rather than 'rsvg' everywhere
Bartosz Dziewoński [Thu, 5 Feb 2015 18:14:34 +0000 (19:14 +0100)]
Use 'rsvg-convert' binary rather than 'rsvg' everywhere

Update $wgSVGConverters['rsvg'] to something closer to WMF production
configuration (there is a more complicated setup involving two
variants of rsvg for some reason).

Documentation is scarce, but 'rsvg-convert' appears to be the "modern"
way to call rsvg, with 'rsvg' being deprecated or not recommended.

Bug: T76476
Change-Id: I5ed877f3a5a1f1e97ae881c1d03fc977276182b6

9 years agoMerge "Exclude user interface elements in content from selection"
jenkins-bot [Thu, 5 Feb 2015 12:48:58 +0000 (12:48 +0000)]
Merge "Exclude user interface elements in content from selection"

9 years agoMerge "SkinApiTemplate: Remove <span dir="auto"> for firstHeading"
jenkins-bot [Thu, 5 Feb 2015 12:17:23 +0000 (12:17 +0000)]
Merge "SkinApiTemplate: Remove <span dir="auto"> for firstHeading"

9 years agoMerge "mediawiki.language.init: Ignore case of language code"
jenkins-bot [Thu, 5 Feb 2015 12:17:12 +0000 (12:17 +0000)]
Merge "mediawiki.language.init: Ignore case of language code"

9 years agothumb.php: Generate valid HTML code on error page
Fomafix [Thu, 5 Feb 2015 11:59:34 +0000 (11:59 +0000)]
thumb.php: Generate valid HTML code on error page

http://validator.w3.org/check?uri=https%3A%2F%2Fwww.mediawiki.org%2Fw%2Fthumb.php;No200=1

criticize

Error Line 1, Column 1: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>"

Change-Id: I8dcb6c7f342957ec473fe481aef2011a193ef8a5

9 years agoAccount for HiDPI variants in thumb.php rate limiting
Brion Vibber [Tue, 3 Feb 2015 20:27:05 +0000 (12:27 -0800)]
Account for HiDPI variants in thumb.php rate limiting

If $wgResponsiveImages is on, include the 1.5x and 2x multipliers
in the wfThumbIsStandard() standard image size comparisons.

Change-Id: I79d866387730cdd4d7c7a976e691192b2335b7ce

9 years agoMove wfThumbIsStandard() to GlobalFunctions and add tests
Timo Tijhof [Wed, 4 Feb 2015 21:01:52 +0000 (13:01 -0800)]
Move wfThumbIsStandard() to GlobalFunctions and add tests

Change-Id: Ife9c011a476a4022cd72d433497944cbd7258e67

9 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Thu, 5 Feb 2015 02:57:27 +0000 (02:57 +0000)]
Merge "Sync up with Parsoid parserTests."

9 years agoMerge "Non-word characters shouldn't terminate tag names on the tidy side too"
jenkins-bot [Thu, 5 Feb 2015 02:55:45 +0000 (02:55 +0000)]
Merge "Non-word characters shouldn't terminate tag names on the tidy side too"

9 years agoMerge "Removed unused and poorly supported time argument to BagOStuff::delete"
jenkins-bot [Thu, 5 Feb 2015 02:28:01 +0000 (02:28 +0000)]
Merge "Removed unused and poorly supported time argument to BagOStuff::delete"

9 years agoMoved "large write query" code to TransactionProfiler
Aaron Schulz [Thu, 15 Jan 2015 20:53:27 +0000 (12:53 -0800)]
Moved "large write query" code to TransactionProfiler

Change-Id: Ic05e832eb21545a4e639b52aca7b3a5811a890ce

9 years agoMerge "Made Revision::newFromPageId avoid master queries like newFromTitle does"
jenkins-bot [Thu, 5 Feb 2015 01:24:53 +0000 (01:24 +0000)]
Merge "Made Revision::newFromPageId avoid master queries like newFromTitle does"

9 years agoMerge "Convert JobRunner to PSR-3 logger"
jenkins-bot [Thu, 5 Feb 2015 01:04:05 +0000 (01:04 +0000)]
Merge "Convert JobRunner to PSR-3 logger"

9 years agoSync up with Parsoid parserTests.
Arlo Breault [Wed, 4 Feb 2015 23:46:08 +0000 (15:46 -0800)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 028a41e2c1a52476c0d5607ab5c3c6235efd9e3e

Change-Id: I476508ebce3dc9c783f466d190f26e2ed84c8d96

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 4 Feb 2015 20:45:31 +0000 (21:45 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie2283d3f5487405235f10474589b858b59066fb7

9 years agoMerge "Creation, deletion and improved management of change tags"
jenkins-bot [Wed, 4 Feb 2015 19:52:17 +0000 (19:52 +0000)]
Merge "Creation, deletion and improved management of change tags"

9 years agoCreation, deletion and improved management of change tags
This, that and the other [Wed, 4 Feb 2015 11:32:00 +0000 (22:32 +1100)]
Creation, deletion and improved management of change tags

This allows users with the `managechangetags` right to create tags for
use by wiki users. (Currently there is no way for editors to apply tags
to their edits; that's to come in a later patch.)

Extensions can reserve tag names for their own use, even if they do not
define them or mark them as active.

Tag managers can also delete tags with <= 5000 uses. Currently, if a tag is
misspelt ("vandlaism") or no longer wanted (testing of OAuth, etc), the
wiki is stuck with it forever. This change allows users with the
"managechangetags" right to delete change tags from the database,
including removing them from all revisions to which they are applied.

Obviously this is a powerful thing to be able to do, but I view change
tags as a "light" kind of interface, useful for revision patrolling and
spam/vandalism fighting but not something that necessarily needs to hang
around forever. It's not a big deal for this kind of data to be thrown
away without being archived anywhere.

Tags defined by an extension can only be deleted if the extension allows
it.

Changes to tags are logged in the new "tag management" log. There's even
a nice API module, just for fun.

Bug: T20670
Change-Id: I77f476c8d0f32c80f720aa2c5e66869c81faa282

9 years agoRemove LanguageGetMagic profile point
Chad Horohoe [Wed, 4 Feb 2015 18:46:02 +0000 (10:46 -0800)]
Remove LanguageGetMagic profile point

The hook call is already captured in profiling data and this
function is too.

Change-Id: I69ad54b9a66e24a419f492238f45c46922c112eb

9 years agoUpdate OOjs UI to v0.6.6
James D. Forrester [Wed, 4 Feb 2015 16:52:31 +0000 (08:52 -0800)]
Update OOjs UI to v0.6.6

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

Change-Id: I8e0ea18c23df5fe0530cc841799830c4f0082eff

9 years agoMerge "Improve documentation of ChannelFeed and AtomFeed class"
jenkins-bot [Wed, 4 Feb 2015 13:46:50 +0000 (13:46 +0000)]
Merge "Improve documentation of ChannelFeed and AtomFeed class"

9 years agoImprove documentation of ChannelFeed and AtomFeed class
ayush_garg [Tue, 3 Feb 2015 19:09:15 +0000 (00:39 +0530)]
Improve documentation of ChannelFeed and AtomFeed class

Change-Id: I1bebaf2d17ac71490aab3ab9cd1f08a4bb1fc3fb

9 years agomediawiki.language.init: Ignore case of language code
Fomafix [Wed, 4 Feb 2015 07:48:52 +0000 (07:48 +0000)]
mediawiki.language.init: Ignore case of language code

This allows capitalization suggested by BCP 47 without the risk
of duplicate entries.

Change-Id: I0ebdead5440862c087920fa93e85aeb47464272e

9 years agoMerge "mediawiki.action.edit.preview: Remove <span dir="auto">"
jenkins-bot [Wed, 4 Feb 2015 07:47:57 +0000 (07:47 +0000)]
Merge "mediawiki.action.edit.preview: Remove <span dir="auto">"

9 years agoMerge "Don't double escape in Linker::formatLinksInComment"
jenkins-bot [Wed, 4 Feb 2015 07:16:20 +0000 (07:16 +0000)]
Merge "Don't double escape in Linker::formatLinksInComment"

9 years agoMade ArticleRevisionVisibilitySet include the revision IDs
Aaron Schulz [Wed, 4 Feb 2015 01:40:49 +0000 (17:40 -0800)]
Made ArticleRevisionVisibilitySet include the revision IDs

Change-Id: I6a14c7b95041fdd44d7962af6dc139bcc29f7223

9 years agoUnbreak interwiki user rights granting
Kunal Mehta [Wed, 4 Feb 2015 02:27:28 +0000 (18:27 -0800)]
Unbreak interwiki user rights granting

UserRightsProxy does not have an equals method, nor does
CentralAuthGroupMembershipProxy.

This reverts the problematic part of 80ca508ed117bbf547 which
caused fatal errors.

Bug: T88505
Change-Id: I6c1dfe14bc08193c33f86482c8f835500c0dc21c

9 years agoMerge "Remove explicit require of ExternalStoreDB.php"
jenkins-bot [Tue, 3 Feb 2015 22:15:45 +0000 (22:15 +0000)]
Merge "Remove explicit require of ExternalStoreDB.php"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 3 Feb 2015 21:26:48 +0000 (22:26 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9b62abdd26a0f66e449f4f683be83db5c74fb1f5

9 years agoNon-word characters shouldn't terminate tag names on the tidy side too
Arlo Breault [Wed, 7 Jan 2015 20:46:59 +0000 (12:46 -0800)]
Non-word characters shouldn't terminate tag names on the tidy side too

 * Follow up to Iceec404f46703065bf080dd2cbfed1f88c204fa5.

 * The accepted charset is changed to match the HTML5 parsing spec at:
   http://dev.w3.org/html5/spec-preview/tokenization.html#tag-open-state

 * Equivalent in parsoid at I462c336f9a00c8ccd11f3220a8738389e8ba7c7c.

Change-Id: I69cb000538fe195dd77273da5f91697fe1e7d283

9 years agoRemove explicit require of ExternalStoreDB.php
Reedy [Tue, 3 Feb 2015 07:49:49 +0000 (07:49 +0000)]
Remove explicit require of ExternalStoreDB.php

AutoLoader should take care of this.

Change-Id: Iabe335cd14e2739df9c184d6ab2e6ee98205b550

9 years agoMerge "Remove unused REPORTING_INTERVAL from resolveStubs.php"
jenkins-bot [Tue, 3 Feb 2015 19:59:34 +0000 (19:59 +0000)]
Merge "Remove unused REPORTING_INTERVAL from resolveStubs.php"

9 years agoNo such method Exception::getText()
Erik Bernhardson [Tue, 3 Feb 2015 18:18:56 +0000 (10:18 -0800)]
No such method Exception::getText()

It looks like a recent change converted this try/catch
statement from MWException to Exception, unfortunatly it
is still calling a method that only exists on MWException.

We arn't doing anything with the exception but exiting.  Lets
just allow the exception to be uncaught and fail naturally. The
uncaught exception will still output an error and return
a non-0 exit code.

Change-Id: I3e0e9d283c255d2aba8139d675943e93d7cb021a

9 years agoAPI: Don't dump Title object into API result
Brad Jorsch [Tue, 3 Feb 2015 15:01:08 +0000 (10:01 -0500)]
API: Don't dump Title object into API result

The intention here is to return the title as a text string, not to dump
all the internal fields of Title.

Bug: T88397
Change-Id: I43ad3c98bc1fc056a13f57e2e95a122108049334

9 years agoSkinApiTemplate: Remove <span dir="auto"> for firstHeading
Fomafix [Tue, 3 Feb 2015 14:30:23 +0000 (14:30 +0000)]
SkinApiTemplate: Remove <span dir="auto"> for firstHeading

In Ibf408bc6c5d2f8c05667107a547b0b02e06de270 the <span dir="auto">
around the title was removed. Remove it here also.

Change-Id: Ia0b23a3c47ab01faef2cd380c318386cc9372709

9 years agomediawiki.action.edit.preview: Remove <span dir="auto">
Fomafix [Tue, 3 Feb 2015 14:15:25 +0000 (14:15 +0000)]
mediawiki.action.edit.preview: Remove <span dir="auto">

In Ibf408bc6c5d2f8c05667107a547b0b02e06de270 the <span dir="auto">
around the title was removed. Remove it here also.

Change-Id: Ie774b7746caadc28be11782058deb17dbd96388f

9 years agoRemove unused REPORTING_INTERVAL from resolveStubs.php
Reedy [Tue, 3 Feb 2015 08:06:03 +0000 (08:06 +0000)]
Remove unused REPORTING_INTERVAL from resolveStubs.php

It causes a notice when moveToExternal.php is run

Change-Id: I50429742f87ab13a5428cbc282c2ce7eda37f714

9 years agoMerge "registration: Fix handling of MessagesDirs array and add tests"
jenkins-bot [Tue, 3 Feb 2015 00:26:33 +0000 (00:26 +0000)]
Merge "registration: Fix handling of MessagesDirs array and add tests"

9 years agoMerge "Update OOjs UI to v0.6.5"
jenkins-bot [Tue, 3 Feb 2015 00:26:27 +0000 (00:26 +0000)]
Merge "Update OOjs UI to v0.6.5"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 2 Feb 2015 20:47:55 +0000 (21:47 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I03277966c3b2a86316dbdae595370b9540f982bb

9 years agoMerge "Gruntfile: Clean up Karma config"
jenkins-bot [Mon, 2 Feb 2015 19:04:24 +0000 (19:04 +0000)]
Merge "Gruntfile: Clean up Karma config"

9 years agoMerge "Output wikiid/api in meta=siteinfo only when non-empty"
jenkins-bot [Mon, 2 Feb 2015 17:23:18 +0000 (17:23 +0000)]
Merge "Output wikiid/api in meta=siteinfo only when non-empty"

9 years agoUpdate OOjs UI to v0.6.5
James D. Forrester [Mon, 2 Feb 2015 03:30:18 +0000 (19:30 -0800)]
Update OOjs UI to v0.6.5

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

Change-Id: I1278a9d0f3b63977f293a79c73283593c65bf910

9 years agoMerge "Remove dir=auto from firstHeading"
jenkins-bot [Sun, 1 Feb 2015 18:08:58 +0000 (18:08 +0000)]
Merge "Remove dir=auto from firstHeading"

9 years agocomposer.json: Correct license identifier
Kevin Israel [Sat, 31 Jan 2015 23:49:49 +0000 (18:49 -0500)]
composer.json: Correct license identifier

According to <https://spdx.org/licenses/>, "GPL-2.0" means "GNU General
Public License v2.0 only", not "GNU General Public License v2.0 or later",
which has the identifier "GPL-2.0+".

Also made the same change in the documentation for $wgExtensionCredits.

Change-Id: If25c15d03a71d7c50c9c85a04c2a589a3d978ad0

9 years agoMerge "codepointToUtf8(): Throw exception rather than calling die()"
jenkins-bot [Sat, 31 Jan 2015 22:33:44 +0000 (22:33 +0000)]
Merge "codepointToUtf8(): Throw exception rather than calling die()"

9 years agoMerge "Pass user to FileRepo::getUploadStash"
jenkins-bot [Sat, 31 Jan 2015 21:01:24 +0000 (21:01 +0000)]
Merge "Pass user to FileRepo::getUploadStash"

9 years agoPass user to FileRepo::getUploadStash
umherirrender [Fri, 30 Jan 2015 20:06:07 +0000 (21:06 +0100)]
Pass user to FileRepo::getUploadStash

This avoids use of $wgUser in UploadStash

Change-Id: I82ca69818317508109b4d5f4823a20de47f29b01

9 years agoMerge "Revert "CategoryView modified to use css columns""
jenkins-bot [Sat, 31 Jan 2015 13:11:12 +0000 (13:11 +0000)]
Merge "Revert "CategoryView modified to use css columns""

9 years agoRevert "CategoryView modified to use css columns"
Bartosz Dziewoński [Sat, 31 Jan 2015 13:04:56 +0000 (13:04 +0000)]
Revert "CategoryView modified to use css columns"

The new feature does not work very well, and the commit
breaks several unrelated things. Sorry, let's try again.

This reverts commit cb5a0f20a436b90a5cfabfba84554e712b32794a.

Bug: T85496
Change-Id: I018050ec0bf773e6e22e99819fe3cad91171bbd2

9 years agocodepointToUtf8(): Throw exception rather than calling die()
Kevin Israel [Sat, 31 Jan 2015 08:15:36 +0000 (03:15 -0500)]
codepointToUtf8(): Throw exception rather than calling die()

Change-Id: I0f2c05be95d34e069a3e9965f581d2adfc0a1b9d

9 years agoGruntfile: Clean up Karma config
Timo Tijhof [Fri, 30 Jan 2015 05:29:15 +0000 (21:29 -0800)]
Gruntfile: Clean up Karma config

Change-Id: I8197c2b0169983c32a44397faec95ad7eb47ab86

9 years agoUpdate OOjs UI to v0.6.4
James D. Forrester [Sat, 31 Jan 2015 01:18:26 +0000 (17:18 -0800)]
Update OOjs UI to v0.6.4

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

Change-Id: I75746e6f702e2108e5282f9a37827a1a533ab57a

9 years agoMerge "StringUtils: throw InvalidArgumentException and move into libs/"
jenkins-bot [Sat, 31 Jan 2015 00:43:58 +0000 (00:43 +0000)]
Merge "StringUtils: throw InvalidArgumentException and move into libs/"

9 years agoMerge "Kill hitcounter remains"
jenkins-bot [Fri, 30 Jan 2015 23:53:26 +0000 (23:53 +0000)]
Merge "Kill hitcounter remains"

9 years agoobjectcache: Use Psr\Log\LoggerInterface instead of wfDebug
Kunal Mehta [Wed, 19 Nov 2014 06:42:33 +0000 (22:42 -0800)]
objectcache: Use Psr\Log\LoggerInterface instead of wfDebug

ObjectCache::newFromParams() will handle a 'loggroup' parameter
specially, getting an instance of \Psr\Log\LoggerInterface to
pass to the BagsOStuff.

BagOStuff implementations can use $this->logger which will be
an implementation of \Psr\Log\LoggerInterface. As this is set in
BagOStuff::__construct(), all subclasses must now call the
parent constructor.

The goal of this is to make the logging in BagOStuff non-MediaWiki
specific, in the hopes of separating it out into a separate library
in the future.

Change-Id: I8a8e278e6f028814499d8457d6d5341d03eabc7a

9 years agoUpdate karma to latest version
Alex Monk [Fri, 30 Jan 2015 21:44:09 +0000 (13:44 -0800)]
Update karma to latest version

Per Timo, hopefully this should fix our issues with Chromium timing out
after 10 seconds?

Related patch: https://github.com/karma-runner/karma/commit/840ee5f7

Change-Id: Idbac350e2c612290f860ae740ef6ba242c9e0896

9 years agoMerge "PostgreSQL: Drop unneeded foreign key constraint"
jenkins-bot [Fri, 30 Jan 2015 21:33:18 +0000 (21:33 +0000)]
Merge "PostgreSQL: Drop unneeded foreign key constraint"

9 years agoPostgreSQL: Drop unneeded foreign key constraint
Jeff Janes [Mon, 8 Dec 2014 20:27:11 +0000 (12:27 -0800)]
PostgreSQL: Drop unneeded foreign key constraint

Change I1c7f3a84f10df05d6b37dccbad4c8232edf51580 causes
an existing foreign key assumption (under PostgreSQL) to be
violated upon deleting a page.  This foreign key assumption does not
explicitly exist in MySQL, and is not implied via documentation.  So
it was probably never needed in the first place.

Don't create the foreign key constraint in PostgreSQL, and drop it
if it already exists when running update.php.

The constraint was previously created with an implicit name, so
drop the constraint involving the specified column name (rc_cur_id),
rather than hard-coding the name of the constraint itself.

This bug probably exists under Oracle and MSSQL as well, but no attempt
was made to address it there.

Bug: T76254
Change-Id: I2abd650c8ce83c5b725aec0545fff14a927a305a

9 years agoMerge "Tweaked BagOStuff::lock() retry times slightly to be faster"
jenkins-bot [Fri, 30 Jan 2015 21:02:14 +0000 (21:02 +0000)]
Merge "Tweaked BagOStuff::lock() retry times slightly to be faster"

9 years agoregistration: Fix handling of MessagesDirs array and add tests
Kunal Mehta [Fri, 30 Jan 2015 20:56:02 +0000 (12:56 -0800)]
registration: Fix handling of MessagesDirs array and add tests

Previously the code was designed to handle:
  "MessagesDirs": {
    "FooBar": "i18n"
  }

However, it can also be an array, and some extensions (VisualEditor)
use it like:

  "MessagesDirs": {
    "FooBar": [
      "i18n",
      "also-i18n"
    ]
  }

This properly handles both strings and arrays and adds tests to verify
the behavior.

Change-Id: Iff1523b86f754cac1f5b8d822d4324c5fbfc1a50

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 30 Jan 2015 20:20:05 +0000 (21:20 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I88b24823903debcef363e6c0f79bbf86e0b7a978

9 years agoMerge "break up long line that phpcs whinges about in DefaultSettings"
jenkins-bot [Fri, 30 Jan 2015 19:57:50 +0000 (19:57 +0000)]
Merge "break up long line that phpcs whinges about in DefaultSettings"

9 years agoMerge "Fix typo in Release note"
jenkins-bot [Fri, 30 Jan 2015 19:56:01 +0000 (19:56 +0000)]
Merge "Fix typo in Release note"

9 years agobreak up long line that phpcs whinges about in DefaultSettings
Brion Vibber [Fri, 30 Jan 2015 19:49:19 +0000 (11:49 -0800)]
break up long line that phpcs whinges about in DefaultSettings

Change-Id: Ic2cc583c112e8235725dffa78e98f18ba6998b72

9 years agoOutput wikiid/api in meta=siteinfo only when non-empty
umherirrender [Fri, 30 Jan 2015 19:12:33 +0000 (20:12 +0100)]
Output wikiid/api in meta=siteinfo only when non-empty

When using interwiki data from the database the value for iw_wikiid and
iw_api maybe empty strings, because the database does not allow NULL
here.
Suppress the output of the attribute in that case, because there are not
useful.
This should not break clients, because using .cdb (like WMF wikis)
already missing these attributes in the result.

Change-Id: I60b97b4b58fdeaf699951544d418e5dc06e3830a

9 years agoFill the iw_api column of the interwiki table when installing
Alex Monk [Wed, 17 Sep 2014 19:42:35 +0000 (20:42 +0100)]
Fill the iw_api column of the interwiki table when installing

Was added in r69542 for interwiki-transclusion, but not populated.

Also make link for 'mw' consistent with 'mediawikiwiki' by using HTTPS.

Bug: 46992
Change-Id: Ieb6c4121ae4cd4e1aefbc372bbe82bdb0ce53b5d

9 years agoMerge "CategoryView modified to use css columns"
jenkins-bot [Fri, 30 Jan 2015 18:09:51 +0000 (18:09 +0000)]
Merge "CategoryView modified to use css columns"