lhc/web/wiklou.git
4 years agoRemoved deprecated ContentHandler hooks.
rlot [Sun, 15 Jan 2017 18:49:28 +0000 (19:49 +0100)]
Removed deprecated ContentHandler hooks.

Plus removed unused "ContentHandler::runLegacyHooks"

Bug: T154498
Change-Id: Ie398fd4e06d3e286fe8e24112d0c8b4ac7d883dc

4 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 18 Jan 2017 20:55:10 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2ce862aae175fb1287086106a1fefb3e31de488b

4 years agoMerge "Remove deprecated mediawiki.UI Less variables"
jenkins-bot [Wed, 18 Jan 2017 19:25:26 +0000 (19:25 +0000)]
Merge "Remove deprecated mediawiki.UI Less variables"

4 years agoMerge "Remove deprecated `.mw-ui-constructive` class for text and anchors"
jenkins-bot [Wed, 18 Jan 2017 19:23:04 +0000 (19:23 +0000)]
Merge "Remove deprecated `.mw-ui-constructive` class for text and anchors"

4 years agoMerge "OutputPage: Ignore protocol-relative urls in transformResourcePath()"
jenkins-bot [Wed, 18 Jan 2017 18:43:32 +0000 (18:43 +0000)]
Merge "OutputPage: Ignore protocol-relative urls in transformResourcePath()"

4 years agoMerge "tests: Add unit tests for OutputPage::transformResourcePath"
jenkins-bot [Wed, 18 Jan 2017 18:27:32 +0000 (18:27 +0000)]
Merge "tests: Add unit tests for OutputPage::transformResourcePath"

4 years agoOutputPage: Ignore protocol-relative urls in transformResourcePath()
Timo Tijhof [Wed, 18 Jan 2017 06:07:05 +0000 (06:07 +0000)]
OutputPage: Ignore protocol-relative urls in transformResourcePath()

transformResourcePath is only supposed to be called with something
that starts with a '/' (absolute path from document root).

While the primary caller (CSSMin) only calls this method if the path
makes sense as a local file path, ResourceLoaderSkinModule did not,
and wgLogo may be set to a full url that includes a domain.

While chance made it so that protocol-including urls were already
discarded, protocol-relative urls were mistaken for being a path
inside the file system root with a duplicate slash (e.g.
'//tmp/foo.txt', as 'foo.txt' in /fmp, instead of '/foo.txt' at
http://tmp).

This should be fixed upstream in the wikimedia/relpath library,
but workaround it for now since it really shouldn't be called
with urls in the first place.

Bug: T155310
Change-Id: I9b063f1219ddeca5cc2c8a48832cdf8c9eaffe58

4 years agoMerge "Tweak formatting of 'restrictionsfield-help'"
jenkins-bot [Wed, 18 Jan 2017 16:14:52 +0000 (16:14 +0000)]
Merge "Tweak formatting of 'restrictionsfield-help'"

4 years agoMerge "Pass the language code to the MessagesPreLoad hook"
jenkins-bot [Wed, 18 Jan 2017 08:00:48 +0000 (08:00 +0000)]
Merge "Pass the language code to the MessagesPreLoad hook"

4 years agotests: Add unit tests for OutputPage::transformResourcePath
Timo Tijhof [Wed, 18 Jan 2017 05:58:46 +0000 (05:58 +0000)]
tests: Add unit tests for OutputPage::transformResourcePath

Bug: T155310
Change-Id: Ic5a4af705c3734a7992037e59dc43fafe447ba12

4 years agoMerge "RCFilters: Clean up focus handling in capsule widget"
jenkins-bot [Wed, 18 Jan 2017 01:45:21 +0000 (01:45 +0000)]
Merge "RCFilters: Clean up focus handling in capsule widget"

4 years agoTweak formatting of 'restrictionsfield-help'
Bartosz Dziewoński [Wed, 18 Jan 2017 01:25:16 +0000 (02:25 +0100)]
Tweak formatting of 'restrictionsfield-help'

`<pre>` looks better for multiline code blocks than `<code>`.

Before: https://phabricator.wikimedia.org/F5302938
After: https://phabricator.wikimedia.org/F5302939

Change-Id: I1a180fee5e635e5f08c6730a9c390d7c4325ff9d

4 years agoRCFilters: Clean up focus handling in capsule widget
Roan Kattouw [Fri, 6 Jan 2017 23:59:48 +0000 (15:59 -0800)]
RCFilters: Clean up focus handling in capsule widget

Don't let the parent class's weird implementation run when the
widget is focused through other code paths (e.g. clicking on
the non-input part of it).

We still need to fix the behavior when you click in the
input twice (the first click shows the popup and the second
click hides it), but this is much better already.

Related to I21b8cff4048 in oojs-ui.

Bug: T149452
Change-Id: I08743c64ea32feace757e2a8626df2f5310cfbc9

4 years agoMerge "Update OOjs UI to v0.18.4"
jenkins-bot [Wed, 18 Jan 2017 01:13:32 +0000 (01:13 +0000)]
Merge "Update OOjs UI to v0.18.4"

4 years agoUpdate OOjs UI to v0.18.4
James D. Forrester [Wed, 18 Jan 2017 00:12:07 +0000 (16:12 -0800)]
Update OOjs UI to v0.18.4

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.4

Change-Id: I09eacfe7597b26e33ef50e606afcee0cefca1d1c

4 years agoExtract 'did you mean' widget out of SpecialSearch
Erik Bernhardson [Mon, 28 Nov 2016 21:59:03 +0000 (13:59 -0800)]
Extract 'did you mean' widget out of SpecialSearch

Bug: T150390
Change-Id: I41d767550ab4112fcd9cc4094b27a14c7d29169b

4 years agoExtract main search result rendering from SpecialSearch
Erik Bernhardson [Wed, 16 Nov 2016 23:41:16 +0000 (15:41 -0800)]
Extract main search result rendering from SpecialSearch

Has a pre-existing problem related to the link offset of secondary
inline results. Specifically the offset of secondary inline starts
at the provided offset, even though there may be primary results
displayed above it.

Bug: T150390
Change-Id: Id1d6b357f45a2cf615d9412cc95dd597c724e8b6

4 years agoMerge "SpecialSearchResults hooks does not use by-ref anymore"
jenkins-bot [Tue, 17 Jan 2017 23:50:03 +0000 (23:50 +0000)]
Merge "SpecialSearchResults hooks does not use by-ref anymore"

4 years agoMerge "Extract search form from SpecialSearch into widget"
jenkins-bot [Tue, 17 Jan 2017 23:32:29 +0000 (23:32 +0000)]
Merge "Extract search form from SpecialSearch into widget"

4 years agoExtract search form from SpecialSearch into widget
Erik Bernhardson [Wed, 16 Nov 2016 00:10:33 +0000 (16:10 -0800)]
Extract search form from SpecialSearch into widget

Bug: T150390
Change-Id: Ibda84349e1f552641805d6236605c8718540817f

4 years agoMerge "Cleanup execution flow through SpecialSearch::execute()"
jenkins-bot [Tue, 17 Jan 2017 22:57:42 +0000 (22:57 +0000)]
Merge "Cleanup execution flow through SpecialSearch::execute()"

4 years agoSpecialSearchResults hooks does not use by-ref anymore
Stanislav Malyshev [Tue, 17 Jan 2017 22:51:51 +0000 (14:51 -0800)]
SpecialSearchResults hooks does not use by-ref anymore

In general, there's no reason to use by-ref on objects unless
the hook is supposed to replace them (this one isn't).

Change-Id: I153a7d590faceb1e2c4fe7d95a5cb931cda0c301

4 years agoMerge "Add test case for Opus file check"
jenkins-bot [Tue, 17 Jan 2017 21:57:53 +0000 (21:57 +0000)]
Merge "Add test case for Opus file check"

4 years agoCleanup execution flow through SpecialSearch::execute()
Erik Bernhardson [Tue, 15 Nov 2016 01:11:43 +0000 (17:11 -0800)]
Cleanup execution flow through SpecialSearch::execute()

Not a big change, but makes it so there is only one path into
SpecialSearch::showResults(). Makes things a little easier to follow.
Also moves the code for checking if full text search is disabled into
execute(), makes sense to check before even trying to make a search
engine. Also moves some setup code out of execute and into the setupPage
function

Bug: T150393
Change-Id: Ib527fc3a3c39eb2e56985e5d1e4905fc4562353c

4 years agoAdd test case for Opus file check
Brion Vibber [Tue, 17 Jan 2017 21:23:02 +0000 (13:23 -0800)]
Add test case for Opus file check

Test case for Opus file check so we don't regress!
Confirms the fix for T151352 that Opus files return
type 'audio' and not 'multimedia'.

Bug: T151352
Change-Id: Ib868793d90b60609ccec25726e6fbaa28bffebaf

4 years agoMerge "fix line length warnings from Jenkins"
jenkins-bot [Tue, 17 Jan 2017 21:02:07 +0000 (21:02 +0000)]
Merge "fix line length warnings from Jenkins"

4 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 17 Jan 2017 20:53:37 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If5b73fd92e39b1d19c581109a09b1b18600beb79

4 years agoMerge "Special case opus mime detction"
jenkins-bot [Tue, 17 Jan 2017 18:51:15 +0000 (18:51 +0000)]
Merge "Special case opus mime detction"

4 years agoMerge "Remove trailing empty lines in PHP"
jenkins-bot [Tue, 17 Jan 2017 10:54:13 +0000 (10:54 +0000)]
Merge "Remove trailing empty lines in PHP"

4 years agoTypofix: Categorie -> Category
Chad Horohoe [Tue, 17 Jan 2017 06:52:45 +0000 (22:52 -0800)]
Typofix: Categorie -> Category

Follows-up f81bb12266

Change-Id: I902522e8a3003cf7fa15c29208fdf7e45e4610f8

4 years agoMerge "Un-deprecate ArticleAfterFetchContentObject hook"
jenkins-bot [Tue, 17 Jan 2017 00:13:15 +0000 (00:13 +0000)]
Merge "Un-deprecate ArticleAfterFetchContentObject hook"

4 years agoRemove trailing empty lines in PHP
Fomafix [Mon, 16 Jan 2017 20:50:28 +0000 (21:50 +0100)]
Remove trailing empty lines in PHP

Performed using
find . -name \*.php -exec sed -i -e :a -e '/./,$!d;/^\n*$/{$d;N;};/\n$/ba' {} \;

Change-Id: I5d0627f94c73690cf3a8a453539c22c760c2aa60

4 years agomaintenance/importImages: Don't sleep after the last upload
Sébastien Santoro [Mon, 16 Jan 2017 15:14:34 +0000 (15:14 +0000)]
maintenance/importImages: Don't sleep after the last upload

Currently, the importImages maintenance script offers an option
to sleep an arbitrary amount of seconds after each upload.

The current logic implementation had a side effect to also sleep
after the last image upload. This is not a desired behavior, as
the tasks are done and a clean exit with a report are welcome.

Instead, sleep will now occur before the second upload and the
ones to follow.

Change-Id: Ia675f210582c3075e9b59b002a00cb1fc4b44cac

4 years agoMerge "Update .mailmap for the generation of CREDITS"
jenkins-bot [Mon, 16 Jan 2017 20:03:11 +0000 (20:03 +0000)]
Merge "Update .mailmap for the generation of CREDITS"

4 years agofix line length warnings from Jenkins
Mark A. Hershberger [Sat, 14 Jan 2017 20:20:03 +0000 (15:20 -0500)]
fix line length warnings from Jenkins

Example: https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs-HEAD/15477/console

Change-Id: I80f5c2ec4de0c6c06f7084ed4cc8a2ec006f6f70

4 years agoMerge "mw.htmlform: Fix 'hide-if' disabling OOUI fields"
jenkins-bot [Mon, 16 Jan 2017 19:07:51 +0000 (19:07 +0000)]
Merge "mw.htmlform: Fix 'hide-if' disabling OOUI fields"

4 years agoFix Hebrew grammar transformation for letter He
Amire80 [Mon, 16 Jan 2017 18:07:14 +0000 (10:07 -0800)]
Fix Hebrew grammar transformation for letter He

It must only be transformed in the beginning of the word.

Change-Id: Iec6e2032775b9efd92cc2d649944f4892f813b24

4 years agoRedocumented $wgAutopromote
victorbarbu [Mon, 14 Dec 2015 09:15:35 +0000 (11:15 +0200)]
Redocumented $wgAutopromote

Completely rewritten the documentation of $wgAutopromote to make it
easier to understand.

Change-Id: I0746c09f7a97dd18feeb774643367fa1a0c09fd4

4 years agoMerge "Fix broken variable inclusions in API unblock parameter documentation"
jenkins-bot [Mon, 16 Jan 2017 13:11:55 +0000 (13:11 +0000)]
Merge "Fix broken variable inclusions in API unblock parameter documentation"

4 years agoFix broken variable inclusions in API unblock parameter documentation
TTO [Mon, 16 Jan 2017 13:00:50 +0000 (13:00 +0000)]
Fix broken variable inclusions in API unblock parameter documentation

Change-Id: I06bf55b3f7f0e05e059f648d92c0cb2d54255d18

4 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 16 Jan 2017 12:56:03 +0000 (13:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I85b324ab91de1c83d35657233501f7439e8c2842

4 years agomw.htmlform: Fix 'hide-if' disabling OOUI fields
Bartosz Dziewoński [Sun, 15 Jan 2017 12:51:21 +0000 (13:51 +0100)]
mw.htmlform: Fix 'hide-if' disabling OOUI fields

Follow-up to 5d5dbc83da4bc339e6c2f7fb3d346ba259192b68.

The logic here is supposed to be the same as in the block above, but
it was inverted. I think this code used to be `.setRequired( false )`
at some point, and I changed the 'setRequired' but forgot the 'false'.

Change-Id: Iabb112d3d0519df079bc2c9afab7d4436fff6562

4 years agoUn-deprecate ArticleAfterFetchContentObject hook
Reedy [Sun, 15 Jan 2017 07:06:51 +0000 (07:06 +0000)]
Un-deprecate ArticleAfterFetchContentObject hook

Accidentally done in I58a0c46b95b8ef02ff55851cfdec7e9d6eeed83c

Bug: T154672
Change-Id: I900232ea01a434b40091fca4627739310d7b3f1d

4 years agoMerge "Added "autoHideSeconds" setting in mw.notify()"
jenkins-bot [Sun, 15 Jan 2017 01:07:38 +0000 (01:07 +0000)]
Merge "Added "autoHideSeconds" setting in mw.notify()"

4 years agoSpecial case opus mime detction
Derk-Jan Hartman [Sat, 14 Jan 2017 20:21:37 +0000 (12:21 -0800)]
Special case opus mime detction

Bug: T151352
Change-Id: I44be5d6b407752b39fc8148d31e9f01de28014dc

4 years agoAdd custom InterwikiLookup to MediaWikiTitleCodec
Yuri Astrakhan [Sat, 14 Jan 2017 11:24:50 +0000 (03:24 -0800)]
Add custom InterwikiLookup to MediaWikiTitleCodec

This patch allows for a custom InterwikiLookup service
when constructing MediaWikiTitleCodec instances.
If not specified, it continues to get the service from
MediaWikiServices::getInstance()->getInterwikiLookup().

This patch will allow a fully customized instance
creation, without any global state.

Change-Id: Ica87aff5df4534aae0a32e307b27d88b3df023b4

4 years agoAdded "autoHideSeconds" setting in mw.notify()
rlot [Fri, 13 Jan 2017 16:46:17 +0000 (17:46 +0100)]
Added "autoHideSeconds" setting in mw.notify()

"autoHideSeconds" is now option of Notification, instead of global variable.

Bug: T155228
Change-Id: If0d141b67515546f1605f24c2f4a50a05d5f2ba4

4 years agoFix namespace handling for uncategorized-categories-exceptionlist
Umherirrender [Fri, 13 Jan 2017 18:30:51 +0000 (19:30 +0100)]
Fix namespace handling for uncategorized-categories-exceptionlist

Some categories have a namespace at begin, which is not handled correct
when just using Title::newFromText

Change-Id: I7e12b66028a8e8292473e3a58e2b271c7f3a2274

4 years agoMerge "Add parameter to API modules to apply change tags to log entries"
jenkins-bot [Fri, 13 Jan 2017 17:42:04 +0000 (17:42 +0000)]
Merge "Add parameter to API modules to apply change tags to log entries"

4 years agoWhat's %MediaWiki? Remove random % from comment
Chad Horohoe [Fri, 13 Jan 2017 04:44:32 +0000 (20:44 -0800)]
What's %MediaWiki? Remove random % from comment

Change-Id: I5e13a7b408885c390bb0b7b3cc1f585d43e327b2

4 years agoRemove wiki.phtml
Reedy [Tue, 16 Feb 2016 13:38:50 +0000 (13:38 +0000)]
Remove wiki.phtml

Change-Id: Ic2d422e16e3db236cf26731eafcec18f29cbcfb0

4 years agoMerge "Remove check for MW_NO_SETUP"
jenkins-bot [Fri, 13 Jan 2017 01:29:16 +0000 (01:29 +0000)]
Merge "Remove check for MW_NO_SETUP"

4 years agoMerge "Move libs/time/defines.php inclusion from GlobalFunctions to Defines.php"
jenkins-bot [Fri, 13 Jan 2017 01:26:35 +0000 (01:26 +0000)]
Merge "Move libs/time/defines.php inclusion from GlobalFunctions to Defines.php"

4 years agoMerge "Remove fully initialized debug message, dubiously useful"
jenkins-bot [Fri, 13 Jan 2017 01:26:31 +0000 (01:26 +0000)]
Merge "Remove fully initialized debug message, dubiously useful"

4 years agoMove libs/time/defines.php inclusion from GlobalFunctions to Defines.php
Timo Tijhof [Fri, 13 Jan 2017 00:46:25 +0000 (16:46 -0800)]
Move libs/time/defines.php inclusion from GlobalFunctions to Defines.php

* Verified none of these constants depend on each other.
* Move them to the top of Defines.php for consistency.

Change-Id: I19c77e706d69bff513e4abafd0300207de0dbb1d

4 years agoRemove check for MW_NO_SETUP
Chad Horohoe [Fri, 13 Jan 2017 01:01:14 +0000 (17:01 -0800)]
Remove check for MW_NO_SETUP

This protection is in place for a single extension, Maintenance.
Said extension is probably broken anyway and has been for quite
some time.

Plus, it doesn't even really work like it would intend, the extension
uses special pages and this is a require_once, so a subsequent
request to WebStart.php (which isn't even called by extensions)
wouldn't re-require it.

tldr: This is pointless

Change-Id: I22e7418d2b46c00d4009c370c24ac4b8bc43190a

4 years agoMerge "Remove random check (and possible inclusion) of Autoloader from Setup"
jenkins-bot [Fri, 13 Jan 2017 00:59:02 +0000 (00:59 +0000)]
Merge "Remove random check (and possible inclusion) of Autoloader from Setup"

4 years agoRemove fully initialized debug message, dubiously useful
Chad Horohoe [Fri, 13 Jan 2017 00:55:43 +0000 (16:55 -0800)]
Remove fully initialized debug message, dubiously useful

Change-Id: I406e44a3751788c4282f5cb22377d258f06671c3

4 years agoRemove deprecated mediawiki.UI Less variables
Volker E [Mon, 9 Jan 2017 23:31:58 +0000 (15:31 -0800)]
Remove deprecated mediawiki.UI Less variables

Removing Less variables, which have been deprecated since MW 1.24, and
are not longer in use in any Wikimedia projects as of today.

Bug: T154950
Depends-on: I9bcd90ebbebbaece13e0cf9f36afd5964d49dc3b
Change-Id: Icbf146eb409b85a89c4dc4fb8b46eda4cf2d3193

4 years agoRemove random check (and possible inclusion) of Autoloader from Setup
Chad Horohoe [Fri, 13 Jan 2017 00:41:56 +0000 (16:41 -0800)]
Remove random check (and possible inclusion) of Autoloader from Setup

This is not even possible. You would've fatal'd 800 ways to Sunday
before you get remotely this far.

Change-Id: Iaf469e56394db93215af1aa54dc96876d5079ea9

4 years agoRemove deprecated `.mw-ui-constructive` class for text and anchors
Volker E [Fri, 13 Jan 2017 00:35:31 +0000 (16:35 -0800)]
Remove deprecated `.mw-ui-constructive` class for text and anchors

Removing deprecated, no longer in use `.mw-ui-constructive` modifier
CSS class for mediawiki.UI text and anchors.

Bug: T155203
Change-Id: I9bcd90ebbebbaece13e0cf9f36afd5964d49dc3b

4 years agoAdd parameter to API modules to apply change tags to log entries
This, that and the other [Thu, 12 Jan 2017 07:14:55 +0000 (18:14 +1100)]
Add parameter to API modules to apply change tags to log entries

Adds support for tagging log entries for the block, import,
managetags, and move API modules, using a 'tags' parameter.

Bug: T97720
Change-Id: I9d75d2cece317a7704c4bc6d734ad3cafe24544e

4 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 12 Jan 2017 22:16:56 +0000 (23:16 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1b63f27592e62509f88b38ed8ab282208cc59f46

4 years agobuild: Upgrade karma-chrome-launcher to support Chromium on Mac/Windows
Antoine Musso [Tue, 20 Dec 2016 15:38:09 +0000 (16:38 +0100)]
build: Upgrade karma-chrome-launcher to support Chromium on Mac/Windows

Before karma-chrome-launcher 2.0.0, Chromium was only detected on Linux
and as part of the "Chrome" setting. "Chromium" is now recognised as a
separate browser and is detected on Mac and Windows as well.

https://github.com/karma-runner/karma-chrome-launcher/issues/45

Add a grunt target for Chromium so users may run the following to use
Chromium instead of Chrome:

    grunt karma:chromium

Since we keep the default of "Chrome", we'll need an override for CI
since we install Chromium there instead of Chrome.

Depends on Ie9f906f8 being merged and Nodepool images updated.

Bug: T153756
Change-Id: I6ba0d971e7e8c3022d2ab6268ae637688189d768

4 years agoFix two typos
datguy [Thu, 12 Jan 2017 18:07:48 +0000 (19:07 +0100)]
Fix two typos

Changed evaluting > evaluating and catgeories > categories.

Bug: T155135
Change-Id: Ieeaaf76b2fb762810a85ec10e82381f70067884e

4 years agoMerge "Arrange Special:Version/credits into columns and remove space at top"
jenkins-bot [Thu, 12 Jan 2017 05:16:09 +0000 (05:16 +0000)]
Merge "Arrange Special:Version/credits into columns and remove space at top"

4 years agoMerge "Remove cols and rows preferences"
jenkins-bot [Thu, 12 Jan 2017 05:04:35 +0000 (05:04 +0000)]
Merge "Remove cols and rows preferences"

4 years agoArrange Special:Version/credits into columns and remove space at top
This, that and the other [Thu, 12 Jan 2017 03:33:59 +0000 (14:33 +1100)]
Arrange Special:Version/credits into columns and remove space at top

Make the long list of names more manageable and readable.

Change-Id: I3bb5da73ecf0c46b77a675324dcd62c9c4ea60da

4 years agoMerge "mw.Api: Deprecate mw.Api.errors, mw.Api.warnings"
jenkins-bot [Wed, 11 Jan 2017 23:35:37 +0000 (23:35 +0000)]
Merge "mw.Api: Deprecate mw.Api.errors, mw.Api.warnings"

4 years agoMerge "Fix inconsistent capitalisation for link labels in EditWatchlist"
jenkins-bot [Wed, 11 Jan 2017 23:33:23 +0000 (23:33 +0000)]
Merge "Fix inconsistent capitalisation for link labels in EditWatchlist"

4 years agoMerge "phan: Don't hardcode 'php7.0' binary"
jenkins-bot [Wed, 11 Jan 2017 22:41:38 +0000 (22:41 +0000)]
Merge "phan: Don't hardcode 'php7.0' binary"

4 years agophan: Don't hardcode 'php7.0' binary
addshore [Wed, 11 Jan 2017 22:22:07 +0000 (14:22 -0800)]
phan: Don't hardcode 'php7.0' binary

This isn't available on all systems, e.g. Fedora just uses "php". People
with multiple versions of PHP installed can use an alternatives system
or something to make sure PHP 7 is used.

Change-Id: I03ef7c2d4223ade32f7a89c3a88706ae8c6e8156

4 years agomw.Api: Deprecate mw.Api.errors, mw.Api.warnings
Bartosz Dziewoński [Wed, 11 Jan 2017 21:52:58 +0000 (13:52 -0800)]
mw.Api: Deprecate mw.Api.errors, mw.Api.warnings

Change-Id: I90f1ca1f26d647f34059fec342778568f7a5ff71

4 years agoMerge "Add Backlinks to Special:(Change|Remove)Credentials"
jenkins-bot [Wed, 11 Jan 2017 21:40:56 +0000 (21:40 +0000)]
Merge "Add Backlinks to Special:(Change|Remove)Credentials"

4 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Wed, 11 Jan 2017 21:32:25 +0000 (21:32 +0000)]
Merge "Localisation updates from https://translatewiki.net."

4 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 11 Jan 2017 21:19:13 +0000 (22:19 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic632fe7485a41b620a6df51ae7b7922b8969f20c

4 years agoApiSandbox: Honor ApiBase::PARAM_ALLOW_DUPLICATES flag
Brad Jorsch [Wed, 11 Jan 2017 20:33:26 +0000 (12:33 -0800)]
ApiSandbox: Honor ApiBase::PARAM_ALLOW_DUPLICATES flag

Requires I1a94f8cd5 to function, but shouldn't cause any problems
without it.

Bug: T155121
Change-Id: I71bcf91b860461a4c9dade2a6ec70ee2a5ea29e1

4 years agoMerge "HTMLDateTimeField: Remove hacks for HTML5 form validation attributes"
jenkins-bot [Wed, 11 Jan 2017 20:22:58 +0000 (20:22 +0000)]
Merge "HTMLDateTimeField: Remove hacks for HTML5 form validation attributes"

4 years agoMerge "Html: Unblacklist HTML5 form validation attributes"
jenkins-bot [Wed, 11 Jan 2017 20:22:53 +0000 (20:22 +0000)]
Merge "Html: Unblacklist HTML5 form validation attributes"

4 years agoMerge "ApiResult: Add ApiResult::formatExpiry()"
jenkins-bot [Wed, 11 Jan 2017 20:15:28 +0000 (20:15 +0000)]
Merge "ApiResult: Add ApiResult::formatExpiry()"

4 years agoAdd Backlinks to Special:(Change|Remove)Credentials
Florian [Sat, 4 Jun 2016 22:48:38 +0000 (00:48 +0200)]
Add Backlinks to Special:(Change|Remove)Credentials

If an user wants to change or remove more then one set of credentials, he has
to know that he has to remove the parameters from the special pages in the url
bar of the browser or has to click through the workflow, which he used to view
the special page for the first change/remove.

This change adds a backlink to Special:(Change|Remove)Credentials when there was
a success of the change or remove of a credential. This link helps the user to find
back to the special page to change or remove a second set of credentials, if he wants.

Change-Id: Icd459518b258b7e717ca113829add6597eb6e7b8

4 years agoMerge "MysqlInstaller: Restore missing function"
jenkins-bot [Wed, 11 Jan 2017 19:19:52 +0000 (19:19 +0000)]
Merge "MysqlInstaller: Restore missing function"

4 years agoApiResult: Add ApiResult::formatExpiry()
Brad Jorsch [Wed, 11 Jan 2017 19:04:41 +0000 (11:04 -0800)]
ApiResult: Add ApiResult::formatExpiry()

This allows for removing $wgContLang from many API modules where it was
only used to call $wgContLang->formatExpiry() in a way in which the
results don't actually depend on the language.

Change-Id: Ib0f25f288b9b87d2e4131297c552e5971696db87

4 years agoMerge "HTMLForm: Suppress HTML5 form validation for non-JS users when needed"
jenkins-bot [Wed, 11 Jan 2017 19:03:17 +0000 (19:03 +0000)]
Merge "HTMLForm: Suppress HTML5 form validation for non-JS users when needed"

4 years agoMerge "SpecialPageLanguage: Redirect to redirect by adding redirect=no"
jenkins-bot [Wed, 11 Jan 2017 18:57:20 +0000 (18:57 +0000)]
Merge "SpecialPageLanguage: Redirect to redirect by adding redirect=no"

4 years agoMerge "Remove unused imports from test classes"
jenkins-bot [Wed, 11 Jan 2017 18:54:06 +0000 (18:54 +0000)]
Merge "Remove unused imports from test classes"

4 years agoMerge "Improved parsing in reason suggests"
jenkins-bot [Wed, 11 Jan 2017 18:49:05 +0000 (18:49 +0000)]
Merge "Improved parsing in reason suggests"

4 years agoMysqlInstaller: Restore missing function
Bartosz Dziewoński [Wed, 11 Jan 2017 18:23:00 +0000 (10:23 -0800)]
MysqlInstaller: Restore missing function

Copied from rSVN45497.

I'm not sure how to reproduce the circumstances in which this code gets
called, so I didn't test it. But what we did before was clearly wrong.

Bug: T154670
Change-Id: Id9b0282e7e65543999c9737950f5073ba2e81962

4 years agoMerge "Allow to define exceptions for Special:UncategorizedCategories on-wiki"
jenkins-bot [Wed, 11 Jan 2017 18:06:05 +0000 (18:06 +0000)]
Merge "Allow to define exceptions for Special:UncategorizedCategories on-wiki"

4 years agoImproved parsing in reason suggests
rlot [Wed, 11 Jan 2017 16:47:26 +0000 (17:47 +0100)]
Improved parsing in reason suggests

Bug: T155086
Change-Id: I3a3167b7bfd9b5921df1cf3e4a3cf3e1da4ca001

4 years agoAllow to define exceptions for Special:UncategorizedCategories on-wiki
Florian [Wed, 30 Mar 2016 20:05:25 +0000 (22:05 +0200)]
Allow to define exceptions for Special:UncategorizedCategories on-wiki

The new system message uncategorized-categories-exceptionlist can be changed
on-wiki to hold a list of categories, that shouldn't be visible on the special
page Special:UncategorizedCategories (with a trailing "* "), even if
these categories aren't in any category.

Bug: T126117
Change-Id: I65989e40f3caa2fad7b8b35109c0466e01084f72

4 years agoMerge "mediawiki.messagePoster.factory.js: Use formatversion=2 for API request"
jenkins-bot [Wed, 11 Jan 2017 17:17:13 +0000 (17:17 +0000)]
Merge "mediawiki.messagePoster.factory.js: Use formatversion=2 for API request"

4 years agoAdd more specific Site[] type hints to SiteStore classes
Thiemo Mättig [Tue, 10 Jan 2017 10:51:49 +0000 (11:51 +0100)]
Add more specific Site[] type hints to SiteStore classes

Change-Id: Ie52313861972fd1b269375dfc8f94afdf67bcb9f

4 years agoSpecialPageLanguage: Redirect to redirect by adding redirect=no
Fomafix [Sat, 4 Jun 2016 09:28:29 +0000 (09:28 +0000)]
SpecialPageLanguage: Redirect to redirect by adding redirect=no

Change-Id: Ifcdfcc2073141d7f2b6742f173ccebdacf9b03b0

4 years agomediawiki.messagePoster.factory.js: Use formatversion=2 for API request
Fomafix [Tue, 19 Apr 2016 05:07:12 +0000 (07:07 +0200)]
mediawiki.messagePoster.factory.js: Use formatversion=2 for API request

This simplifies precessing the response.
The parameter indexpageids: true is not necessary anymore.

Change-Id: I375237a249a81a4a3941ad4cace205b348cee9fc

4 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 11 Jan 2017 00:11:45 +0000 (01:11 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I76f26ecfc04c72821aefae58cb13e639942c8aff

4 years agoHTMLDateTimeField: Remove hacks for HTML5 form validation attributes
Bartosz Dziewoński [Thu, 24 Nov 2016 15:22:29 +0000 (16:22 +0100)]
HTMLDateTimeField: Remove hacks for HTML5 form validation attributes

No longer needed after I08244addcf9b6eb96137895f28e7b750914fef5c.
Also remove datetime.js from mediawiki.htmlform module.

Change-Id: Ic2410c689de3f70f573fa1c71456e6d3f334f80b

4 years agoHtml: Unblacklist HTML5 form validation attributes
Bartosz Dziewoński [Thu, 24 Nov 2016 15:18:24 +0000 (16:18 +0100)]
Html: Unblacklist HTML5 form validation attributes

We blacklisted them in 2010. Modern browsers support them fairly well,
and it doesn't seem to conflict with any of our code.

I tested this with SecurePoll poll creation form, which contains an
astonishingly wide range of form controls and validation options.

Change-Id: I08244addcf9b6eb96137895f28e7b750914fef5c

4 years agoHTMLForm: Suppress HTML5 form validation for non-JS users when needed
Bartosz Dziewoński [Fri, 2 Dec 2016 18:17:35 +0000 (19:17 +0100)]
HTMLForm: Suppress HTML5 form validation for non-JS users when needed

Our 'hide-if' fields are fundamentally incompatible with HTML5 form
validation attributes. If you have a checkbox field A, and field B
that is required, but hidden if A is unchecked - that's impossible to
express with HTML5 form validation. The only thing you can do is
remove the validation on B (or on the entire form).

The field contents are still validated server-side, just like if the
browser did not support HTML5 forms. The validation is also re-enabled
in JavaScript, since we have extra support for 'hide-if' field that
makes them work.

Change-Id: Ia7ffa76965a7c14af9b6d2db007b6255498398d9

4 years agoMerge "Reduce WAN object cache logging spam for reject set() calls"
jenkins-bot [Tue, 10 Jan 2017 22:00:13 +0000 (22:00 +0000)]
Merge "Reduce WAN object cache logging spam for reject set() calls"