lhc/web/wiklou.git
6 years agoRefactor Statsd classes to enable null collector to work.
Stanislav Malyshev [Fri, 26 May 2017 00:23:44 +0000 (17:23 -0700)]
Refactor Statsd classes to enable null collector to work.

The following changes are added:
- Created MediawikiStatsdDataFactory interface
- Added hasData() method to see if there are any data to send
- Added getData() method to fetch data
- Made service infrastructure use MediawikiStatsdDataFactory interface
- Made wfLogProfilingData() use MediawikiStatsdDataFactory interface
- Added capability to enable/disable buffering collector

Bug: T166354
Change-Id: I2874175647e987996a9a399829b3319674471aaa

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 23 May 2017 20:11:50 +0000 (22:11 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I005052043dc4c3025e18f6dd2e29b435e3afab3d

6 years agoMerge "Batch/pipeline backend operations in refreshFileHeaders"
jenkins-bot [Tue, 23 May 2017 19:57:18 +0000 (19:57 +0000)]
Merge "Batch/pipeline backend operations in refreshFileHeaders"

6 years agoBatch/pipeline backend operations in refreshFileHeaders
Gilles Dubuc [Tue, 23 May 2017 08:41:33 +0000 (10:41 +0200)]
Batch/pipeline backend operations in refreshFileHeaders

Bug: T150741
Change-Id: I44efd47e7eb3eba71ae39808ee8e6969e141c5cc

6 years agoCreate object mw.page in watch.js
Fomafix [Tue, 23 May 2017 19:00:57 +0000 (21:00 +0200)]
Create object mw.page in watch.js

The object mw.page is only used in watch.js and it is not intended to extend
this object by other modules because with module.exports exists a more
flexible way.

This change avoids the dependency on module 'mediawiki.page.startup'.

Change-Id: Ib717261c20856d048c67e2196e9dc619b72ab1db

6 years agoMerge "Restore dependency on module 'mediawiki.page.startup'"
jenkins-bot [Tue, 23 May 2017 18:49:18 +0000 (18:49 +0000)]
Merge "Restore dependency on module 'mediawiki.page.startup'"

6 years agoMerge "Sync up with Parsoid parserTests.txt"
jenkins-bot [Tue, 23 May 2017 18:44:06 +0000 (18:44 +0000)]
Merge "Sync up with Parsoid parserTests.txt"

6 years agoMerge "Move loading of mediawiki.toc from Parser to Skin"
jenkins-bot [Tue, 23 May 2017 18:42:44 +0000 (18:42 +0000)]
Merge "Move loading of mediawiki.toc from Parser to Skin"

6 years agoMerge "ApiParse: Add Skin::getDefaultModules() in useskin mode"
jenkins-bot [Tue, 23 May 2017 18:42:40 +0000 (18:42 +0000)]
Merge "ApiParse: Add Skin::getDefaultModules() in useskin mode"

6 years agoMerge "OutputPage: Move hardcoded default modules to Skin::getDefaultModules"
jenkins-bot [Tue, 23 May 2017 18:31:20 +0000 (18:31 +0000)]
Merge "OutputPage: Move hardcoded default modules to Skin::getDefaultModules"

6 years agoMerge "mediawiki.action.edit.preview: Enable 'useskin' mode for action=parse API"
jenkins-bot [Tue, 23 May 2017 18:31:15 +0000 (18:31 +0000)]
Merge "mediawiki.action.edit.preview: Enable 'useskin' mode for action=parse API"

6 years agoMerge "ApiParse: Add 'useskin' param for general OutputPage/Skin support"
jenkins-bot [Tue, 23 May 2017 18:29:40 +0000 (18:29 +0000)]
Merge "ApiParse: Add 'useskin' param for general OutputPage/Skin support"

6 years agoRestore dependency on module 'mediawiki.page.startup'
Fomafix [Tue, 23 May 2017 17:58:11 +0000 (19:58 +0200)]
Restore dependency on module 'mediawiki.page.startup'

Module 'mediawiki.page.watch.ajax' requires a dependency to module
'mediawiki.page.startup' because 'mediawiki.page.startup' creates the object
mw.page and 'mediawiki.page.watch.ajax' requires this object.

This dependency got lost in 06a0dec05723eb6a6604421e134345a5abe115a5.

Bug: T114288
Change-Id: Iebfda85c77eaf6bb19d2ae755813b1c36a95dac8

6 years agoSync up with Parsoid parserTests.txt
C. Scott Ananian [Tue, 23 May 2017 17:28:10 +0000 (13:28 -0400)]
Sync up with Parsoid parserTests.txt

This now aligns with Parsoid commit ebac189004d6edc4801719a5802766113bc84beb

Change-Id: I09bd3a72fd6210abc200bead2a16ad4106bcc6f9

6 years agoMerge "Avoid SearchEnginePrefixTest postgres failures"
jenkins-bot [Tue, 23 May 2017 16:06:03 +0000 (16:06 +0000)]
Merge "Avoid SearchEnginePrefixTest postgres failures"

6 years agoProtect language converter markup in the preprocessor (take 2).
C. Scott Ananian [Thu, 19 Jan 2017 19:58:05 +0000 (14:58 -0500)]
Protect language converter markup in the preprocessor (take 2).

This revises 28774022769d2273be16c6c6e1cca710a1fd97ef, which was
reverted in master due to unexpected issues with `-{{...}} ` markup
on translatewiki and enwiki.  Test cases are added to ensure that this
is parsed as a template, not as language converter markup.

https://www.mediawiki.org/wiki/Preprocessor_ABNF is the canonical
documentation for the preprocessor; this will be updated after this
patch is merged.  The basic principles described in that page are
maintained in this patch:

* Rightmost opening structure has precedence: `-{{` is parsed as a
dash followed by template opening.

* `{{{` has precedence over `{{` and `-{`: `-{{{{` is parsed as
`-{` `{{{` since we first grab the rightmost `{{{`.

A bunch of test cases were added to verify the "ideal precedence"
order described on that wiki page.

This patch introduced some minor incompatibilities in existing
markup, in particular with chemical formulae in templates.
Fixes for these are being tracked at
https://www.mediawiki.org/wiki/Parsoid/Language_conversion/Preprocessor_fixups

Bug: T146304
Bug: T153761
Change-Id: I2f0c186c75e392c95e1a3d89266cae2586349150

6 years agoMerge "Initialize mw.util.$content in mediawiki.util"
jenkins-bot [Tue, 23 May 2017 14:04:52 +0000 (14:04 +0000)]
Merge "Initialize mw.util.$content in mediawiki.util"

6 years agoMerge "Date range filtering in Special:NewFiles"
jenkins-bot [Tue, 23 May 2017 13:56:22 +0000 (13:56 +0000)]
Merge "Date range filtering in Special:NewFiles"

6 years agoMerge "mediawiki.page.patrol.ajax: Remove dependency on mediawiki.page.startup"
jenkins-bot [Tue, 23 May 2017 13:50:07 +0000 (13:50 +0000)]
Merge "mediawiki.page.patrol.ajax: Remove dependency on mediawiki.page.startup"

6 years agoInitialize mw.util.$content in mediawiki.util
Fomafix [Tue, 16 May 2017 04:43:09 +0000 (06:43 +0200)]
Initialize mw.util.$content in mediawiki.util

This avoids the public method mw.util.init().

Add a noop function and a deprecation warning to mw.util.init().

The dependency to module 'mediawiki.page.startup' is not necessary anymore
for using mw.util.$content.

Change-Id: Ib8ca3f9afa43de0ff0bb87569dd2ddfddf2a69b8

6 years agoMerge "Use test user helper methods in UserGroupMembershipTest/UserTest"
jenkins-bot [Tue, 23 May 2017 13:12:47 +0000 (13:12 +0000)]
Merge "Use test user helper methods in UserGroupMembershipTest/UserTest"

6 years agoMerge "Remove TestingAccessWrapper class (now available via composer)"
jenkins-bot [Tue, 23 May 2017 07:51:36 +0000 (07:51 +0000)]
Merge "Remove TestingAccessWrapper class (now available via composer)"

6 years agoMerge "Chinese Conversion Table Update 2017-3"
jenkins-bot [Tue, 23 May 2017 07:51:32 +0000 (07:51 +0000)]
Merge "Chinese Conversion Table Update 2017-3"

6 years agomediawiki.page.patrol.ajax: Remove dependency on mediawiki.page.startup
Fomafix [Mon, 22 May 2017 20:12:18 +0000 (22:12 +0200)]
mediawiki.page.patrol.ajax: Remove dependency on mediawiki.page.startup

The module 'mediawiki.page.patrol.ajax' does not need a dependency on
the module 'mediawiki.page.startup'.

Change-Id: I2619a0709b93c26a8b3906273b4d5a988230d662

6 years agoMerge "GlobalFunctions: Avoid unnecessary fully-namespaced MediaWikiServices"
jenkins-bot [Tue, 23 May 2017 05:28:03 +0000 (05:28 +0000)]
Merge "GlobalFunctions: Avoid unnecessary fully-namespaced MediaWikiServices"

6 years agoMerge "Deprecate wfMemcKey() and wfGlobalCacheKey()"
jenkins-bot [Tue, 23 May 2017 05:27:26 +0000 (05:27 +0000)]
Merge "Deprecate wfMemcKey() and wfGlobalCacheKey()"

6 years agoApiHelp: Avoid deprecated ObjectCache::getMainWANInstance()
Kunal Mehta [Tue, 23 May 2017 04:37:33 +0000 (21:37 -0700)]
ApiHelp: Avoid deprecated ObjectCache::getMainWANInstance()

And switch wfMemcKey() to $cache->makeKey() while we're at it.

Change-Id: I4e37fbe1ddd49cc7583dd0f2f950eaf21c9ef050

6 years agoDeprecate wfMemcKey() and wfGlobalCacheKey()
Kunal Mehta [Tue, 23 May 2017 04:32:52 +0000 (21:32 -0700)]
Deprecate wfMemcKey() and wfGlobalCacheKey()

For a while now these functions have called makeKey/makeGlobalKey() on
the default ObjectCache instances, and callers should now use those
functions directly instead.

There are other advantages to doing so, like in cases where the
ObjectCache instance being used has a different makeKey implementation
(e.g. memcache) than the default configured cache.

Change-Id: I9abf6badbf3ba800e591d2503b714433d5faf1e3

6 years agoGlobalFunctions: Avoid unnecessary fully-namespaced MediaWikiServices
Kunal Mehta [Tue, 23 May 2017 04:28:41 +0000 (21:28 -0700)]
GlobalFunctions: Avoid unnecessary fully-namespaced MediaWikiServices

There's already a "use" statement for MediaWikiServices so the full
class name isn't required.

Change-Id: Idabdd406a7c4afa1312fb45dea8499236fe3d6fd

6 years agoMerge "resourceloader: Add tests for OutputPage::buildExemptModules"
jenkins-bot [Tue, 23 May 2017 01:00:55 +0000 (01:00 +0000)]
Merge "resourceloader: Add tests for OutputPage::buildExemptModules"

6 years agoAvoid SearchEnginePrefixTest postgres failures
Aaron Schulz [Thu, 18 May 2017 20:29:13 +0000 (13:29 -0700)]
Avoid SearchEnginePrefixTest postgres failures

Slash was ranked a bit differently in how postgres sorts
(seems to be based on the utf8 units as raw bytes).

Bug: T75174
Change-Id: I0a7f3859945218319b3f418f607c0299d8569c61

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 22 May 2017 20:08:39 +0000 (22:08 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I328e1ab3a6c6058838456ba3738537d3f918f86c

6 years agoMerge "Remove $wgExceptionHooks"
jenkins-bot [Mon, 22 May 2017 16:19:46 +0000 (16:19 +0000)]
Merge "Remove $wgExceptionHooks"

6 years agoMerge "Add 'show-multimedia-search-results' to SearchEngine feature data"
jenkins-bot [Mon, 22 May 2017 13:57:44 +0000 (13:57 +0000)]
Merge "Add 'show-multimedia-search-results' to SearchEngine feature data"

6 years agoRemove $wgExceptionHooks
Gergő Tisza [Sun, 21 May 2017 08:29:41 +0000 (10:29 +0200)]
Remove $wgExceptionHooks

Skip deprecation period because it is very unlikely that anyone used this:
it does not appear anywhere on gerrit/git, no nontrivial google hits,
the documentation has been flat out wrong for 9 years and no one
noticed it, and the whole feature is fairly useless as you need to declare
it separately for every single exception class you expect.

Change-Id: I85844a238d3135d05eeba10331149624b04bafe2

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 21 May 2017 20:08:00 +0000 (22:08 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I2bb6141b1dab503cdde3ea2165166bad2fa91351

6 years agoMerge "resourceloader: Allow modules to be registered via a factory callback"
jenkins-bot [Sun, 21 May 2017 17:28:31 +0000 (17:28 +0000)]
Merge "resourceloader: Allow modules to be registered via a factory callback"

6 years agoresourceloader: Allow modules to be registered via a factory callback
daniel [Thu, 4 May 2017 16:10:28 +0000 (18:10 +0200)]
resourceloader: Allow modules to be registered via a factory callback

This should work the same way as registering API modules via a factory callback.
Point in case: Ifb8611473a971 could avoid global state using this mechanism.

Change-Id: Ifbf29006141ce2a2dff42efa352f406502a06bc6

6 years agoMove loading of mediawiki.toc from Parser to Skin
Timo Tijhof [Sat, 20 May 2017 13:39:40 +0000 (15:39 +0200)]
Move loading of mediawiki.toc from Parser to Skin

This was the only addModules() call ever to be inside Parser.
Introduced in a54ef1a203d. Prior to that, mediawiki.toc had always been loaded
by OutputPage (via mediawiki.util; and before that, via wikibits).

This patch restores that, and also fixes T130632 by making OutputPage get
it from the Skin, instead of hardcoding this somewhere in addParserOutput().

* Remove deprecated method OutputPage::enableTOC().
* Move mEnableTOC to addParserOutputText().

Bug: T130632
Change-Id: Iaad84d241a4c4348c712ac1087a664b8c9c46da4

6 years agoApiParse: Add Skin::getDefaultModules() in useskin mode
Timo Tijhof [Fri, 21 Apr 2017 00:25:21 +0000 (17:25 -0700)]
ApiParse: Add Skin::getDefaultModules() in useskin mode

Bug: T130632
Change-Id: Idc41934eb89ec8f928bbea3b2135c3f246fe3925

6 years agoOutputPage: Move hardcoded default modules to Skin::getDefaultModules
Timo Tijhof [Sat, 20 May 2017 13:07:37 +0000 (15:07 +0200)]
OutputPage: Move hardcoded default modules to Skin::getDefaultModules

These modules should not be hardcoded in OutputPage::output() which
makes them impossible to override and also very hard to retrieve
through the API for action=parse. Move these instead to Skin which
is where all other default module loading happens already.

Moving these modules is in preparation for customising ApiParse
to support "really" returning all would-be loaded modules on a page
when setting 'useskin', which is also needed for Live Preview
and in theory for ajax navigation and other scenarios where there
is a delay between the "initial" page rendering, and a later re-render
which may not have all all the necessary modules.

Bug: T130632
Change-Id: Ic4afccf0cd0d428d7fbc36d4e747415af3ab49f5

6 years agomediawiki.action.edit.preview: Enable 'useskin' mode for action=parse API
Timo Tijhof [Fri, 12 May 2017 18:19:14 +0000 (19:19 +0100)]
mediawiki.action.edit.preview: Enable 'useskin' mode for action=parse API

Bug: T130632
Change-Id: Ie3615866e88aaca2ec117f3342d64357c22b2754

6 years agoApiParse: Add 'useskin' param for general OutputPage/Skin support
Timo Tijhof [Tue, 25 Apr 2017 03:53:50 +0000 (20:53 -0700)]
ApiParse: Add 'useskin' param for general OutputPage/Skin support

Required for Idc41934eb89.

* If 'useskin' is set, run ParserOutput through OutputPage (with proper
  Skin set up). Specifically call addParserOutputMetadata().

  Then use OutputPage isntead of ParserOutput to retrieve that subset
  of meta data. Such as modules, lang links and config vars.

* Deprecate 'effectivelanglinks' in favour of 'useskin'.

* Simplify 'headhtml' support and re-use this new code.

Change-Id: Iaa85ac49f6e0cbdf7f1bb0f50a8f7730d119f0a2

6 years agoMerge "Put print click handler on link, not on list item"
jenkins-bot [Sun, 21 May 2017 15:45:41 +0000 (15:45 +0000)]
Merge "Put print click handler on link, not on list item"

6 years agoMerge "In Autopromote skip edit count lookup if requirement is 0 or invalid"
jenkins-bot [Sun, 21 May 2017 15:20:55 +0000 (15:20 +0000)]
Merge "In Autopromote skip edit count lookup if requirement is 0 or invalid"

6 years agoPut print click handler on link, not on list item
Brion Vibber [Sun, 21 May 2017 15:03:10 +0000 (17:03 +0200)]
Put print click handler on link, not on list item

Was responding to clicks outside the link, which was confusing.

Bug: T24256
Change-Id: I22f7cf20a08bb4204b0442defeb7cfb83899b969

6 years agoIn Autopromote skip edit count lookup if requirement is 0 or invalid
TK-999 [Wed, 15 Feb 2017 10:34:52 +0000 (11:34 +0100)]
In Autopromote skip edit count lookup if requirement is 0 or invalid

Autopromote makes a DB call to fetch user edit count when checking edit count requirements. We can skip this call if requirement is set to 0 or invalid (less than 0).

Bug: T157718
Change-Id: I7bcfa6e7e4991fe7b48bef84ad24621564261abc

6 years agoUpdate CREDITS
Timo Tijhof [Sun, 21 May 2017 14:18:36 +0000 (16:18 +0200)]
Update CREDITS

Also update mailmap to avoid duplicates.

Change-Id: Ic305027c47a96d6d7ea8892823c4ceb687f17e13

6 years agoMerge "Print: prefer JS print over printable version."
jenkins-bot [Sun, 21 May 2017 13:32:20 +0000 (13:32 +0000)]
Merge "Print: prefer JS print over printable version."

6 years agoPrint: prefer JS print over printable version.
Derk-Jan Hartman [Tue, 25 Apr 2017 13:05:42 +0000 (15:05 +0200)]
Print: prefer JS print over printable version.

Bug: T24256
Change-Id: Ic3dc15e578ce4a94959285c9ae579e9088423544

6 years agoMerge "Fix EnhancedChangesList::getDiffHistLinks null exception"
jenkins-bot [Sun, 21 May 2017 12:28:57 +0000 (12:28 +0000)]
Merge "Fix EnhancedChangesList::getDiffHistLinks null exception"

6 years agoMerge "Match Parsoid's attribute sanitization for video elements"
jenkins-bot [Sun, 21 May 2017 11:57:06 +0000 (11:57 +0000)]
Merge "Match Parsoid's attribute sanitization for video elements"

6 years agoMerge "HTMLUsersMultiselectField: Make auto-infusable when used inside a legacy HTMLForm"
jenkins-bot [Sun, 21 May 2017 10:07:20 +0000 (10:07 +0000)]
Merge "HTMLUsersMultiselectField: Make auto-infusable when used inside a legacy HTMLForm"

6 years agoFix EnhancedChangesList::getDiffHistLinks null exception
Brian Wolff [Fri, 19 May 2017 22:08:14 +0000 (22:08 +0000)]
Fix EnhancedChangesList::getDiffHistLinks null exception

If a page is deleted, rc_cur_id is missing, but it takes
a while before job queue deletes RC entries. If we encounter
something like that, just skip it since its bound for
deletion anyways.

Bug: T164059
Change-Id: I286109a9707e54939c0da31656ef54fd29acf481

6 years agoMerge "Allow namespaces defined in extension.json to be overwritten locally."
jenkins-bot [Sun, 21 May 2017 08:02:22 +0000 (08:02 +0000)]
Merge "Allow namespaces defined in extension.json to be overwritten locally."

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 20 May 2017 19:58:31 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id9a991314902c759c4fac6202896c582e346737c

6 years agoMerge "ApiSandbox: Fix HTTP error handling"
jenkins-bot [Sat, 20 May 2017 19:35:34 +0000 (19:35 +0000)]
Merge "ApiSandbox: Fix HTTP error handling"

6 years agoMerge "Various test fixes for postgres"
jenkins-bot [Sat, 20 May 2017 19:11:35 +0000 (19:11 +0000)]
Merge "Various test fixes for postgres"

6 years agoresourceloader: Add tests for OutputPage::buildExemptModules
Timo Tijhof [Fri, 12 May 2017 22:20:02 +0000 (23:20 +0100)]
resourceloader: Add tests for OutputPage::buildExemptModules

Bug: T147667
Change-Id: I40245359925ef5dc4e01ada396503a758d6b95fe

6 years agoMerge "Added increase editcount upon page move"
jenkins-bot [Sat, 20 May 2017 14:55:34 +0000 (14:55 +0000)]
Merge "Added increase editcount upon page move"

6 years agoMerge "Improve grammar of message on Special:GoToInterwiki"
jenkins-bot [Sat, 20 May 2017 14:46:30 +0000 (14:46 +0000)]
Merge "Improve grammar of message on Special:GoToInterwiki"

6 years agoMerge "Remove untranslated "editinguser" message from tyv (tuvinian)"
jenkins-bot [Sat, 20 May 2017 14:40:38 +0000 (14:40 +0000)]
Merge "Remove untranslated "editinguser" message from tyv (tuvinian)"

6 years agoMerge "Typofixes in two apihelp messages for search and templates"
jenkins-bot [Sat, 20 May 2017 14:37:07 +0000 (14:37 +0000)]
Merge "Typofixes in two apihelp messages for search and templates"

6 years agoImprove grammar of message on Special:GoToInterwiki
TTO [Sun, 9 Apr 2017 12:30:38 +0000 (12:30 +0000)]
Improve grammar of message on Special:GoToInterwiki

Change-Id: Idd19a8455b82c86cf5a891efb17199fc9f625286

6 years agoAdded increase editcount upon page move
Ad Huikeshoven [Sat, 20 May 2017 13:36:52 +0000 (15:36 +0200)]
Added increase editcount upon page move

Bug: T163966
Change-Id: Ie055f676534e98963c68f8b8185cca65fa8e76b1

6 years agoTypofixes in two apihelp messages for search and templates
Federico Leva [Sat, 20 May 2017 14:18:54 +0000 (16:18 +0200)]
Typofixes in two apihelp messages for search and templates

Spotted by Dgstranz:
* https://translatewiki.net/wiki/Thread:Support/MediaWiki:Apihelp-query%2Bsearch-param-enablerewrites/en
* https://translatewiki.net/wiki/Thread:Support/MediaWiki:Apihelp-query%2Btemplates-param-namespace/en

Change-Id: I5655d95c6cdd74433d358f15873d4a3a30738f50

6 years agoHTMLUsersMultiselectField: Make auto-infusable when used inside a legacy HTMLForm
Bartosz Dziewoński [Sat, 20 May 2017 14:07:35 +0000 (16:07 +0200)]
HTMLUsersMultiselectField: Make auto-infusable when used inside a legacy HTMLForm

Change-Id: I23b3a86f06a10b066e6671e398da37c62e3e61b1

6 years agoRemove untranslated "editinguser" message from tyv (tuvinian)
Federico Leva [Sat, 20 May 2017 14:11:30 +0000 (16:11 +0200)]
Remove untranslated "editinguser" message from tyv (tuvinian)

https://translatewiki.net/wiki/Thread:Support/MediaWiki:Editinguser/tyv

Change-Id: I7ac5da1d7bfeca09e88a8f7dc13073eed0195e69

6 years agoAllow more customization on the default toggle system
Moritz Oberhauser [Thu, 6 Apr 2017 10:43:18 +0000 (12:43 +0200)]
Allow more customization on the default toggle system

The naming convention remains unchainched. Default toggles are added if no mw-collapsible-toggle child element is present. Premade toggles have already one ore more mw-collapsible-toggle elements defined.

Default and premade toggles (mw-collapsible-toggle) still cannot be mixed/combined with remote toggles (mw-customtoggle).

* The default toggle got less rigid by removing dependency on <a> elements.
* Support for multiple premade toggles was introduced.
* The expand/collapse messages can be used by premade toggles via mw-collapsible-text.
* Removed the linksPassthru option. This step allowed merging premadeToggleHandler into actionHandler.
* The pass through functionality is now applied to all <a> elements since the default toggle does no longer depends on those.
* Removed mw-collapsible-bracket because it was not used and is deprecated by mw-collapsible-text.
* The test suite was adapted to reflect the latest changes.

Change-Id: Ic8627c4c185e8e4175e6fef1c8e1c2190e54edaa

6 years agoMerge "Disable broken TemplateCategoriesTest unit test"
jenkins-bot [Sat, 20 May 2017 12:01:13 +0000 (12:01 +0000)]
Merge "Disable broken TemplateCategoriesTest unit test"

6 years agoMerge "Add HHVM version check"
jenkins-bot [Sat, 20 May 2017 11:43:22 +0000 (11:43 +0000)]
Merge "Add HHVM version check"

6 years agoDisable broken TemplateCategoriesTest unit test
Timo Tijhof [Sat, 20 May 2017 11:35:43 +0000 (13:35 +0200)]
Disable broken TemplateCategoriesTest unit test

Bug: T165099
Change-Id: I370e48965fdfc948aa02533ebfeb0a540fb53c12

6 years agoApiSandbox: Fix HTTP error handling
Brad Jorsch [Sat, 20 May 2017 10:09:20 +0000 (12:09 +0200)]
ApiSandbox: Fix HTTP error handling

Since bf69459, ApiSandbox seems to stall out when an API request
results in an HTTP error (e.g. due to a PHP fatal error). Before that
revision, it displayed the 'apisandbox-results-error' message in this
situation.

Apparently the jQuery 3 changes to Deferred behavior caused it to be
impossible to have a then() filter return `this` (or anything else) in
order to avoid replacing the existing promise that's being resolved or
rejected.

Bug: T165857
Change-Id: I3f646cdfe7fe8987437980790788821f51e728d1

6 years agoMerge "Make sure all functions in Database.php are documented"
jenkins-bot [Sat, 20 May 2017 10:54:26 +0000 (10:54 +0000)]
Merge "Make sure all functions in Database.php are documented"

6 years agoMerge "Fix Closure detection in MediaWikiTestCase"
jenkins-bot [Sat, 20 May 2017 10:48:43 +0000 (10:48 +0000)]
Merge "Fix Closure detection in MediaWikiTestCase"

6 years agoMerge "Add \b to regexes in BlockLevelPass to avoid confusing tr & track"
jenkins-bot [Sat, 20 May 2017 10:24:55 +0000 (10:24 +0000)]
Merge "Add \b to regexes in BlockLevelPass to avoid confusing tr & track"

6 years agoMerge "More magic word translations for Catalan (ca)"
jenkins-bot [Sat, 20 May 2017 10:15:01 +0000 (10:15 +0000)]
Merge "More magic word translations for Catalan (ca)"

6 years agoAdd release notes for T151633
Sébastien Santoro [Sat, 20 May 2017 09:35:45 +0000 (09:35 +0000)]
Add release notes for T151633

This is a follow-up for f87b3b68860e.

Thanks to @Sfic to have submitted this solution.

Bug: T151633
Change-Id: Ia87d925f81be68a69b9b5f9893b7fc71afe950db

6 years agoMerge "Use Devanagari digits for list items on ne.wikipedia"
jenkins-bot [Sat, 20 May 2017 06:22:41 +0000 (06:22 +0000)]
Merge "Use Devanagari digits for list items on ne.wikipedia"

6 years agoMerge "Fix the web updater"
jenkins-bot [Sat, 20 May 2017 02:06:26 +0000 (02:06 +0000)]
Merge "Fix the web updater"

6 years agoAdd \b to regexes in BlockLevelPass to avoid confusing tr & track
Brion Vibber [Fri, 19 May 2017 22:45:48 +0000 (00:45 +0200)]
Add \b to regexes in BlockLevelPass to avoid confusing tr & track

With TimedMediaHandler in video.js mode, videos can be inline,
without a wrapper div.

Previously, in this mode two paragraphs where one contained a
video would end up merged into one paragraph, due to BlockLevelPass
matching "<track .../>" against "<tr" in its regexes.

Added \b to a couple of the regexes to protect against such errors,
and corrected a parser test case that had bad output listed, where
"<link .../>" matched against "<li".

Bug: T165817
Change-Id: I06e82b881f5ebddae5e7df7fb940adfa54f6b659

6 years agoHack around icu breakage for fa sorting
Brian Wolff [Fri, 19 May 2017 21:32:00 +0000 (21:32 +0000)]
Hack around icu breakage for fa sorting

Bug: T139110
Change-Id: I35bcdaf309f595258289f01bbe5713ce6d1ffad1

6 years agoFix Closure detection in MediaWikiTestCase
Marius Hoch [Fri, 19 May 2017 21:06:58 +0000 (23:06 +0200)]
Fix Closure detection in MediaWikiTestCase

Sometimes the closure are hidden in arrays, catch this.

The $maxDepth check is just for sanity, I don't think it's
actually needed.

Follows-Up: c2c7452577e

Bug: T111641
Change-Id: Id5e036ce4949b8106873fd938f54c2774d3d6a4a

6 years agoFix the web updater
Paladox [Fri, 19 May 2017 20:43:26 +0000 (20:43 +0000)]
Fix the web updater

It kept failing with Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ESCAPE '`'' at line 1 (localhost)

Bug: T165805
Change-Id: I2671415fc34b1e6226104c88ca21fafc860bb7fb

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 19 May 2017 20:08:33 +0000 (22:08 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Icd2487d8cf826e9736277723e84e2520106b2a5c

6 years agoMerge "Add type hint to ThumbnailRenderJob::hitThumbUrl"
jenkins-bot [Fri, 19 May 2017 19:40:45 +0000 (19:40 +0000)]
Merge "Add type hint to ThumbnailRenderJob::hitThumbUrl"

6 years agoMerge "Add workaround for HHVM issue 6206"
jenkins-bot [Fri, 19 May 2017 19:33:48 +0000 (19:33 +0000)]
Merge "Add workaround for HHVM issue 6206"

6 years agoMerge "Add missing doUpdates() call to refreshLinks.php"
jenkins-bot [Fri, 19 May 2017 19:33:36 +0000 (19:33 +0000)]
Merge "Add missing doUpdates() call to refreshLinks.php"

6 years agoMerge "Avoid postgres PrefixSearchTest failures due to collation differences"
jenkins-bot [Fri, 19 May 2017 19:33:33 +0000 (19:33 +0000)]
Merge "Avoid postgres PrefixSearchTest failures due to collation differences"

6 years agoAdd type hint to ThumbnailRenderJob::hitThumbUrl
Aaron Schulz [Fri, 19 May 2017 19:17:27 +0000 (12:17 -0700)]
Add type hint to ThumbnailRenderJob::hitThumbUrl

Change-Id: Ifab9d74ae9147349b0a3417f35088b96ee47b6fa

6 years agoAdd missing doUpdates() call to refreshLinks.php
Aaron Schulz [Wed, 17 May 2017 18:56:40 +0000 (11:56 -0700)]
Add missing doUpdates() call to refreshLinks.php

Follows-up b8b01aa589ce which accidentally removed this call.

Bug: T157545
Change-Id: Id4efdccb60e7829269df601b83f64288f6190db4

6 years agoUse test user helper methods in UserGroupMembershipTest/UserTest
Aaron Schulz [Thu, 18 May 2017 20:16:55 +0000 (13:16 -0700)]
Use test user helper methods in UserGroupMembershipTest/UserTest

This avoids postgres failures when trying to insert users with name
"false" (cast to 0, which fails since integer != text type).

Bug: T75174
Change-Id: I809edd94117811d22492eaba440fad6aaea1195b

6 years agoAdd workaround for HHVM issue 6206
Marius Hoch [Fri, 19 May 2017 18:50:58 +0000 (20:50 +0200)]
Add workaround for HHVM issue 6206

Just use the actual global on HHVM, like we do on
Zend, but avoid hitting the warning.

This is a workaround for https://github.com/facebook/hhvm/issues/6206

Bug: T111641
Change-Id: I15ef0e90827c94a8b2609484b0dddcb78f04284c

6 years agoUse Devanagari digits for list items on ne.wikipedia
Sébastien Santoro [Fri, 19 May 2017 13:17:20 +0000 (13:17 +0000)]
Use Devanagari digits for list items on ne.wikipedia

Nepalese uses Devanagari, so we wish to use this alphabet for
list items' digits.

Bug: T151633
Change-Id: Id9cb42932fd8b8aa2cfb5418c4a3cd16ec37a60e

6 years agoMerge "MediaSearchWidget: Only resize new results"
jenkins-bot [Fri, 19 May 2017 16:25:39 +0000 (16:25 +0000)]
Merge "MediaSearchWidget: Only resize new results"

6 years agoMake sure all functions in Database.php are documented
Kaldari [Sat, 13 May 2017 01:10:47 +0000 (18:10 -0700)]
Make sure all functions in Database.php are documented

Will add @inheritdoc in a follow-up commit for functions
documented in the parent classes.

Part of 2017 MediaWiki Documentation Day

Change-Id: I002a1f6451940ecbcacea7b3ca2fc6ad0f4eba47

6 years agoMerge "Improve HTTP logging"
jenkins-bot [Fri, 19 May 2017 15:48:47 +0000 (15:48 +0000)]
Merge "Improve HTTP logging"

6 years agoMediaSearchWidget: Only resize new results
Thalia [Wed, 17 May 2017 17:13:17 +0000 (19:13 +0200)]
MediaSearchWidget: Only resize new results

When repositioning images based on the "change" event,
ignore images that have already been assigned to a row.

Bug: T163727
Change-Id: Ida7556d8848f98d97d82aef9caf5c1d43bb47d7b

6 years agoMerge "Tests: correct order of assertEquals arguments"
jenkins-bot [Fri, 19 May 2017 12:47:11 +0000 (12:47 +0000)]
Merge "Tests: correct order of assertEquals arguments"

6 years agoMerge "MimeAnalyzer: Detect magic bytes for mp3"
jenkins-bot [Fri, 19 May 2017 12:14:27 +0000 (12:14 +0000)]
Merge "MimeAnalyzer: Detect magic bytes for mp3"