lhc/web/wiklou.git
7 years agoMerge "Follow up to I42e74ed3bcd0bfa9ec0c344ba67668210450c975"
jenkins-bot [Thu, 5 Jan 2017 18:50:05 +0000 (18:50 +0000)]
Merge "Follow up to I42e74ed3bcd0bfa9ec0c344ba67668210450c975"

7 years agoMerge "Updated mediawiki_selenium Ruby gem"
jenkins-bot [Thu, 5 Jan 2017 17:42:51 +0000 (17:42 +0000)]
Merge "Updated mediawiki_selenium Ruby gem"

7 years agoFollow up to I42e74ed3bcd0bfa9ec0c344ba67668210450c975
Justin Du [Thu, 5 Jan 2017 16:44:11 +0000 (10:44 -0600)]
Follow up to I42e74ed3bcd0bfa9ec0c344ba67668210450c975

* Make pagelang-unchanged-language-default message documentation more explicit
* Use same code when displaying pagelang-unchanged-language-default and pagelang-unchanged-language
* Use 'this action' instead of 'this API'

Change-Id: I4bb4e380e090e507a26ca24b5364d8cfc7a7de71

7 years agoPHP code style: No space after unary not operator
Fomafix [Wed, 4 Jan 2017 10:46:37 +0000 (11:46 +0100)]
PHP code style: No space after unary not operator

Change-Id: I4d3df0cfcda4d88e405164123893e57786fbe15e

7 years agoMerge "Proper handling of invalid/unknown time zones"
jenkins-bot [Thu, 5 Jan 2017 15:11:02 +0000 (15:11 +0000)]
Merge "Proper handling of invalid/unknown time zones"

7 years agoCollationFa: Third time's the charm
Bartosz Dziewoński [Wed, 28 Dec 2016 15:10:24 +0000 (16:10 +0100)]
CollationFa: Third time's the charm

We have to use a tertiary sortkey for everything with the primary
sortkey of 2627. Otherwise, the "Remove duplicate prefixes" logic
in IcuCollation would remove them.

The following characters will now be considered separate letters in
the 'xx-uca-fa' collation for the purpose of displaying the headings
on category pages: ء ئ ا و ٲ ٳ

Bug: T139110
Change-Id: Ibbea5d76348e4cdc38b74cba44286910b2ed592f

7 years agoMerge "Code style: no space after unary minus operator"
jenkins-bot [Thu, 5 Jan 2017 14:15:14 +0000 (14:15 +0000)]
Merge "Code style: no space after unary minus operator"

7 years agoCode style: no space after unary minus operator
Bartosz Dziewoński [Thu, 5 Jan 2017 13:38:32 +0000 (14:38 +0100)]
Code style: no space after unary minus operator

Searched for /([^\d\w\s\)\]]\s*)- \d/ to find potential issues.
It seems there's no PHPCS check for this, huh.

Also fixed typo in a comment in LoginSignupSpecialPage.

Change-Id: Iaab1a1f5a9f234971e550e7909aa5c3e0c02a983

7 years agoMerge "Fixed typo in comment"
jenkins-bot [Thu, 5 Jan 2017 10:40:04 +0000 (10:40 +0000)]
Merge "Fixed typo in comment"

7 years agoMerge "Add language fallback from rup (Aromanian) to ro (Romanian)"
jenkins-bot [Thu, 5 Jan 2017 10:29:54 +0000 (10:29 +0000)]
Merge "Add language fallback from rup (Aromanian) to ro (Romanian)"

7 years agoMerge "Adding new interface for review filters to RecentChanges"
jenkins-bot [Thu, 5 Jan 2017 06:29:10 +0000 (06:29 +0000)]
Merge "Adding new interface for review filters to RecentChanges"

7 years agoProper handling of invalid/unknown time zones
This, that and the other [Sun, 25 Dec 2016 04:55:11 +0000 (15:55 +1100)]
Proper handling of invalid/unknown time zones

Currently, a user who has an invalid time zone stored in the database is
effectively locked out of their account on HHVM sites. This patch addresses
this by (1) preventing users from setting invalid time zones, and (2) not
throwing an unhandled exception if a user's TZ is unknown.

When the user saves their preferences, the code silently rewrites invalid
time zones to UTC. I think this is OK, since to cause this to happen you
have to manually muck around with the Preferences page DOM or submit the
form from a script.

Bug: T137182
Change-Id: I28c5e2ac9f2e681718c6080fb49b3b01e4af46dd

7 years agoMerge "Add API action to set the language of a page"
jenkins-bot [Thu, 5 Jan 2017 03:29:02 +0000 (03:29 +0000)]
Merge "Add API action to set the language of a page"

7 years agoAdd API action to set the language of a page
MtDu [Wed, 4 Jan 2017 00:51:24 +0000 (18:51 -0600)]
Add API action to set the language of a page

Currently, a user who wants to set a page's language must use the
Special:PageLanguage interface. However, this is not easy for bots and
scripts to use. The addition of action=setpagelanguage to the API makes
this process easier for such users.

Bug: T74958
Change-Id: I42e74ed3bcd0bfa9ec0c344ba67668210450c975

7 years agoAdding new interface for review filters to RecentChanges
Moriel Schottlender [Tue, 8 Nov 2016 01:14:13 +0000 (17:14 -0800)]
Adding new interface for review filters to RecentChanges

Add a new filter experience to Special:RecentChanges with
a drop-down filter menu. Put it behind the rcenhancedfilters
preference, which is hidden for now.

Bug: T149435
Bug: T149452
Bug: T144448
Change-Id: Ic545ff1462998b610d7edae59472ecce2e7d51ea

7 years agoImplement OO.ui.isMobile
Ed Sanders [Wed, 4 Jan 2017 23:45:33 +0000 (23:45 +0000)]
Implement OO.ui.isMobile

Check for MobileFrontend being used (skin='minerva').

Change-Id: If66f2fb10f96e270ed1433f0db74310734bd6156

7 years agoPull rendering of single result out of SpecialSearch
Erik Bernhardson [Tue, 15 Nov 2016 00:14:31 +0000 (16:14 -0800)]
Pull rendering of single result out of SpecialSearch

First step in refactoring the search results page. Pulls out widgets
to render our two styles of search result, Full and Simple.

Bug: T150390
Change-Id: If78cb0c29ae394f16e465c15a8e8246c1b56dcea

7 years agoMerge "Replace invalid UTF-8 sequences with U+FFFD in edit summaries"
jenkins-bot [Wed, 4 Jan 2017 21:31:58 +0000 (21:31 +0000)]
Merge "Replace invalid UTF-8 sequences with U+FFFD in edit summaries"

7 years agoReplace invalid UTF-8 sequences with U+FFFD in edit summaries
This, that and the other [Sun, 1 Jan 2017 04:04:56 +0000 (15:04 +1100)]
Replace invalid UTF-8 sequences with U+FFFD in edit summaries

Bug: T95353
Change-Id: Ib22b563e7bc4022754752632f0eebfad00e8eb01

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

Change-Id: I76593d3c6b29ff62339b74bcffb174653d59747d

7 years agoMerge "mediawiki.page.watch.ajax: Use title with spaces instead of _"
jenkins-bot [Wed, 4 Jan 2017 20:39:30 +0000 (20:39 +0000)]
Merge "mediawiki.page.watch.ajax: Use title with spaces instead of _"

7 years agomediawiki.page.watch.ajax: Use title with spaces instead of _
Fomafix [Wed, 4 Jan 2017 17:45:57 +0000 (18:45 +0100)]
mediawiki.page.watch.ajax: Use title with spaces instead of _

Since 1f15d1d5828dfbc70d036a52da57460ea0e89175 titles with spaces get shown
with _ instead of spaces in the success notification message.

Change-Id: I80bd1d2440ce8b815abb1fe19f4bd080bcc00fcc

7 years agoEditPage: Make makeTemplatesOnThisPageList() public
Bartosz Dziewoński [Wed, 4 Jan 2017 17:21:47 +0000 (18:21 +0100)]
EditPage: Make makeTemplatesOnThisPageList() public

We want to use it in VE: I63e663d05aefb47274f1f28bdcafc5317c2fc4f6.

Bug: T149009
Change-Id: Id617f9afbddf094140133f9659efc4b4e746148c

7 years agoMerge "Add missing QueryAllSpecialPagesTest $queryPages property"
jenkins-bot [Wed, 4 Jan 2017 16:41:54 +0000 (16:41 +0000)]
Merge "Add missing QueryAllSpecialPagesTest $queryPages property"

7 years agoMerge "Align fieldset borders with WikimediaUI color palette"
jenkins-bot [Wed, 4 Jan 2017 16:14:30 +0000 (16:14 +0000)]
Merge "Align fieldset borders with WikimediaUI color palette"

7 years agoFixed typo in comment
WMDE-Fisch [Wed, 4 Jan 2017 14:48:33 +0000 (15:48 +0100)]
Fixed typo in comment

Change-Id: I58dba2018a20c34537222ba7711a39c75855be52

7 years agoFix var name in ApiUpload
WMDE-Fisch [Wed, 4 Jan 2017 11:54:45 +0000 (12:54 +0100)]
Fix var name in ApiUpload

Found via phan.

Change-Id: I38b35db6b83d0728bcc8e0990f646b7d331cab13

7 years agoAlign fieldset borders with WikimediaUI color palette
Amir Sarabadani [Wed, 4 Jan 2017 10:22:25 +0000 (13:52 +0330)]
Align fieldset borders with WikimediaUI color palette

Unnoticeable change

Bug: T152025
Change-Id: Ia7d7cc66f96af8d78a8c520c302287bf57da8629

7 years agoMerge "Avoid hardcoding cache and cache key in populateInterwiki.php"
jenkins-bot [Wed, 4 Jan 2017 04:42:25 +0000 (04:42 +0000)]
Merge "Avoid hardcoding cache and cache key in populateInterwiki.php"

7 years agophpunit: Use assertEquals(, $delta) in UserTest instead of greater/lessThan
Timo Tijhof [Wed, 4 Jan 2017 03:29:35 +0000 (19:29 -0800)]
phpunit: Use assertEquals(, $delta) in UserTest instead of greater/lessThan

Follows-up 9d8358e09.

Documented at
https://phpunit.de/manual/4.8/en/appendixes.assertions.html#appendixes.assertions.assertEquals

Change-Id: Id337626c069663883d6a4bde58432637d33eb8c0

7 years agoMerge "Make some replication logging more structured"
jenkins-bot [Wed, 4 Jan 2017 03:29:49 +0000 (03:29 +0000)]
Merge "Make some replication logging more structured"

7 years agoAvoid hardcoding cache and cache key in populateInterwiki.php
Timo Tijhof [Wed, 4 Jan 2017 03:00:10 +0000 (19:00 -0800)]
Avoid hardcoding cache and cache key in populateInterwiki.php

Follows-up 0ac10f3790.

Bug: T114577
Change-Id: I1f5fbc40adc66a673428e495be94fc8118d6e14f

7 years agoMerge "Avoid starting transactions in getHeartbeatData()"
jenkins-bot [Wed, 4 Jan 2017 02:29:46 +0000 (02:29 +0000)]
Merge "Avoid starting transactions in getHeartbeatData()"

7 years agoparser: Update outdated comment about ImageGallery
Timo Tijhof [Wed, 4 Jan 2017 02:15:40 +0000 (18:15 -0800)]
parser: Update outdated comment about ImageGallery

Follows-up f90634a6.

Change-Id: Ic17dc03cc37b85f222f3bb525e4cb39afc6f22ae

7 years agoRelease notes for un-deprecation of WikiRevision::getText
TTO [Wed, 4 Jan 2017 01:25:54 +0000 (01:25 +0000)]
Release notes for un-deprecation of WikiRevision::getText

This function was un-deprecated in
I3f0e0f7fe38bd4e2001efbe17cdba6bcc90b036f, mainly to stop Google
Code-In students from continually trying to remove the function before
we have decided what to do with it (see T152282).

Change-Id: I460c76f2dea89646545a969c3637433070059b1c

7 years agoUpdate OOjs UI to v0.18.3
James D. Forrester [Wed, 4 Jan 2017 00:27:21 +0000 (16:27 -0800)]
Update OOjs UI to v0.18.3

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

Change-Id: I8f26c0024d44dd2bac2c19c869254a7154c4103e

7 years agoRevert "Protect language converter markup in the preprocessor."
C. Scott Ananian [Tue, 3 Jan 2017 21:47:59 +0000 (16:47 -0500)]
Revert "Protect language converter markup in the preprocessor."

This effectively reverts commit 28774022769d2273be16c6c6e1cca710a1fd97ef in
order to unblock the deploy train.  The underlying behavior might not be
incorrect, but it was unexpected.

Bug: T153761
Change-Id: Ifc9c7cf3482dd5d222ff4da24a6d4cc401e9d965

7 years agoMerge "Cleanup after Iba0138a6"
jenkins-bot [Tue, 3 Jan 2017 21:00:45 +0000 (21:00 +0000)]
Merge "Cleanup after Iba0138a6"

7 years agoMerge "tests: mock should not __clone Database"
jenkins-bot [Tue, 3 Jan 2017 20:58:47 +0000 (20:58 +0000)]
Merge "tests: mock should not __clone Database"

7 years agoMerge "ApiSandbox: Display params as JSON on request page"
jenkins-bot [Tue, 3 Jan 2017 20:47:06 +0000 (20:47 +0000)]
Merge "ApiSandbox: Display params as JSON on request page"

7 years agoMerge "DateTimeInputWidget: Only show calendar when focusing date components, not...
jenkins-bot [Tue, 3 Jan 2017 20:27:47 +0000 (20:27 +0000)]
Merge "DateTimeInputWidget: Only show calendar when focusing date components, not time components"

7 years agoCleanup after Iba0138a6
Brad Jorsch [Tue, 3 Jan 2017 19:55:12 +0000 (14:55 -0500)]
Cleanup after Iba0138a6

Iba0138a6 removed the custom error handler in Hooks::run(), but didn't
remove the comment describing it and left behind an unused variable.

Change-Id: I9b043fa8bd79625e63d35f95f2fa3ac1b214275c

7 years agoApiClearHasMsg: Clean up after I341b395e
Brad Jorsch [Tue, 3 Jan 2017 19:23:32 +0000 (14:23 -0500)]
ApiClearHasMsg: Clean up after I341b395e

Since I341b395e, $this->getRequest()->wasPosted() should never be false.
So don't bother testing for it.

Change-Id: Iccc60424ed5442d950f4968297fdd18001b3a02a

7 years agoMerge "tests: speed up fetchTextTest"
jenkins-bot [Tue, 3 Jan 2017 16:54:45 +0000 (16:54 +0000)]
Merge "tests: speed up fetchTextTest"

7 years agotests: mock should not __clone Database
Antoine Musso [Tue, 3 Jan 2017 16:46:29 +0000 (17:46 +0100)]
tests: mock should not __clone Database

The Database __clone relies on a connLogger which is set in the
constructor.
However, when creating a mock of Database, PHPUnit 5.x does a __clone
which uses a connLogger. That leads to a fatal error.

The sole caller is FileBackendDBRepoWrapperTest, have its mock to skip
invoking __clone().

Change-Id: I2ee3b561104bdacc0232ba5e90b3eae3fbaa6f8f

7 years agoAdd missing QueryAllSpecialPagesTest $queryPages property
addshore [Tue, 3 Jan 2017 16:25:52 +0000 (16:25 +0000)]
Add missing QueryAllSpecialPagesTest $queryPages property

Change-Id: Ic19e1b5f656599ed1dc06818403a0a8bca8004b7

7 years agoProper instantiating of QueryPage special pages in QueryAllSpecialPagesTest
Amir Sarabadani [Tue, 3 Jan 2017 15:59:16 +0000 (19:29 +0330)]
Proper instantiating of QueryPage special pages in QueryAllSpecialPagesTest

Change-Id: If4420067011da756b8a36917f1c35fd2d380dae9

7 years agoMerge "Remove unused static methods in LanguageConverter subclasses"
jenkins-bot [Tue, 3 Jan 2017 15:21:50 +0000 (15:21 +0000)]
Merge "Remove unused static methods in LanguageConverter subclasses"

7 years agoMerge "Do not try to change directory when running Phan tests with no params"
jenkins-bot [Tue, 3 Jan 2017 15:15:58 +0000 (15:15 +0000)]
Merge "Do not try to change directory when running Phan tests with no params"

7 years agoDisable statistics update on import with maintenance/importDump.php
Subin Siby [Tue, 3 Jan 2017 14:35:34 +0000 (20:05 +0530)]
Disable statistics update on import with maintenance/importDump.php

Disable updating statistics in importDump.php to quickly finish imports from command line.

Bug: T144600
Change-Id: Ib827c068fb20cc03aab47e3106d489f18be1dac6

7 years agotests: speed up fetchTextTest
Antoine Musso [Tue, 3 Jan 2017 14:39:27 +0000 (15:39 +0100)]
tests: speed up fetchTextTest

The test is adding/resetting database data on every tests, however it is
not necessary.

Switch from addDBData to addDBDataOnce.
Drop the tablesUsed[] additions, they are not needed and trigger a
resetDB().
Change the textId### variables tracking created revisions to static
variables so they are kept between tests.

On my setup the test run time goes down from 1.7 sec to 0.5 sec.

Change-Id: Ibd3183b7fbf7dcf2c0c6d1268e1b94b11919cbf3

7 years agoAdd reciprocal language fallback for nn and nb (Norwegian)
Federico Leva [Fri, 30 Dec 2016 16:14:10 +0000 (17:14 +0100)]
Add reciprocal language fallback for nn and nb (Norwegian)

https://translatewiki.net/wiki/Thread:Portal_talk:Nb/Language_fallbacks

Change-Id: I597e317ef33758dba8eaa9d6dd458ea3922e3f33

7 years agoRemove unused static methods in LanguageConverter subclasses
Leszek Manicki [Tue, 3 Jan 2017 14:13:51 +0000 (15:13 +0100)]
Remove unused static methods in LanguageConverter subclasses

It seems LanguageConverter::parseManualRule was removed by
69dbeb97f15b65dd5773852d76c3bc93caefc862 (2008),
and LanguageConverter::parserConvert by
c568220e610177114e71973375514d33871d6345 (2010),
so it seems safe and reasonable to remove their implementations
from few remaining language-specific Converter classes.

Change-Id: I7092f5c8856723fabd2b1f99944451344feb5711

7 years agoDo not try to change directory when running Phan tests with no params
Leszek Manicki [Tue, 3 Jan 2017 10:22:05 +0000 (11:22 +0100)]
Do not try to change directory when running Phan tests with no params

When running tests with:
PHAN=/path/to/phan/phan /path/to/mediawiki-core/tests/phan/bin/phan
the script changes to the home dir (does "cd" with no param),
which results in git error message (unless the home dir happens
to be a git repository).

Change-Id: Ib11e419fb5cca51ceaed0e9c7c86ae9c5c4ae0f2

7 years agoMerge "Converted Special:Tags to OOUI"
jenkins-bot [Tue, 3 Jan 2017 09:36:38 +0000 (09:36 +0000)]
Merge "Converted Special:Tags to OOUI"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 3 Jan 2017 08:41:42 +0000 (09:41 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3c2e46f88790b464af07c50531fecaa8bb378ab5

7 years agoMerge "Added $wgHTTPImportTimeout setting"
jenkins-bot [Tue, 3 Jan 2017 06:54:56 +0000 (06:54 +0000)]
Merge "Added $wgHTTPImportTimeout setting"

7 years agoAdded $wgHTTPImportTimeout setting
rlot [Mon, 2 Jan 2017 19:00:53 +0000 (20:00 +0100)]
Added $wgHTTPImportTimeout setting

Bug: T17000
Change-Id: Ic97ae4faec173c32af38df4554831dca7068226b

7 years agoMake some replication logging more structured
Aaron Schulz [Mon, 2 Jan 2017 21:26:18 +0000 (13:26 -0800)]
Make some replication logging more structured

Change-Id: I0ec3c615047b666ff5ee430453c1de2a1316ef61

7 years agoFully deprecate 'ContentAction' hook
rlot [Mon, 2 Jan 2017 13:48:31 +0000 (14:48 +0100)]
Fully deprecate 'ContentAction' hook

Bug: T54027
Change-Id: Ia765e25a9f76b34f7b10125d3b6e0c8e00fac2ca

7 years agoAdd tags support to userrights
Yuriy Shnitkovskiy [Mon, 2 Jan 2017 11:26:36 +0000 (13:26 +0200)]
Add tags support to userrights

Bug: T97720
Change-Id: I4f6dacd0ddf7b45d62aff6f85c329bc15be27daf

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 2 Jan 2017 08:52:49 +0000 (09:52 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I25c8759845c580058ec97bd49dfe6189ef671c36

7 years agoMerge "mediawiki.requestIdleCallback: Improve documentation"
jenkins-bot [Mon, 2 Jan 2017 08:08:21 +0000 (08:08 +0000)]
Merge "mediawiki.requestIdleCallback: Improve documentation"

7 years agoMerge "RaggettWrapper: Don't use ReplacementArray"
jenkins-bot [Mon, 2 Jan 2017 08:06:00 +0000 (08:06 +0000)]
Merge "RaggettWrapper: Don't use ReplacementArray"

7 years agoMerge "Add `showThumbnails` option to slideshow galleries"
jenkins-bot [Mon, 2 Jan 2017 07:06:52 +0000 (07:06 +0000)]
Merge "Add `showThumbnails` option to slideshow galleries"

7 years agoConverted Special:Tags to OOUI
awu42 [Sun, 1 Jan 2017 23:16:30 +0000 (18:16 -0500)]
Converted Special:Tags to OOUI

Updated forms to use OOUI with HTMLForm::factory()

Bug: T117742
Change-Id: I6ec8dd59af482ed22ac3bee29c35d4a056540ac2

7 years agoAvoid passing $this by reference in hooks
Yuriy Shnitkovskiy [Sun, 1 Jan 2017 23:07:11 +0000 (01:07 +0200)]
Avoid passing $this by reference in hooks

Renamed $this passed by reference usages in hooks inside includes directory

Bug: T153505
Change-Id: Ib3e6a288a423958e75b5c1bfe53dc29e0f3fee6d

7 years agoMerge "Replace mocks of DatabaseMysql by DatabaseMysqli"
jenkins-bot [Sun, 1 Jan 2017 20:16:50 +0000 (20:16 +0000)]
Merge "Replace mocks of DatabaseMysql by DatabaseMysqli"

7 years agoMerge "jquery.tablesorter: Sort invalid elements as -Infinity"
jenkins-bot [Sun, 1 Jan 2017 18:56:09 +0000 (18:56 +0000)]
Merge "jquery.tablesorter: Sort invalid elements as -Infinity"

7 years agojquery.tablesorter: Sort invalid elements as -Infinity
Derk-Jan Hartman [Fri, 30 Dec 2016 13:10:32 +0000 (14:10 +0100)]
jquery.tablesorter: Sort invalid elements as -Infinity

NaN is problematic when sorting. We used 0 before, but that means that
these items get mixed in between 0 elements or in the middle of a column
when it has both negative and positive numbers. Therefore sort as
-Infinity instead, which is a proper number and will always sort to the
edge.

Bug: T154307
Change-Id: I4837669205a6c6d470f19b26d721efd2ccdcc3a0

7 years agoRemoved deprecated Title::moveNoAuth function
awu42 [Sat, 31 Dec 2016 19:14:43 +0000 (14:14 -0500)]
Removed deprecated Title::moveNoAuth function

(deprecated since 1.25)

Bug: T61113
Change-Id: I7a007dd87ea3bcbb1121738c84b0e654ba17ccbf

7 years agoRemoved deprecated class ImageGallery
divadsn [Sat, 31 Dec 2016 13:16:03 +0000 (13:16 +0000)]
Removed deprecated class ImageGallery

Bug: T61113
Change-Id: If315002ef7d1a3937f150d0dda930976c1d95f57

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 1 Jan 2017 09:30:42 +0000 (10:30 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iedf2413090c44a301cae52973264cc35f81a0f7b

7 years agoAdd tagging support to imagerotate, revisiondelete, and tag API modules
Justin Du [Fri, 30 Dec 2016 03:39:51 +0000 (21:39 -0600)]
Add tagging support to imagerotate, revisiondelete, and tag API modules

Adds a tags parameter. This allows a user with the applychangetags right to tag the log entry corresponding to the action.

Bug: T97720
Change-Id: I11418d22ee780944e92d82e32b271b8276c396bf

7 years agoRemove WebRequest::checkSessionCookie() method as being deprecated
Victor Barbu [Wed, 28 Dec 2016 21:41:30 +0000 (23:41 +0200)]
Remove WebRequest::checkSessionCookie() method as being deprecated

Bug: T61113
Change-Id: I5285dbfc47d6429e16b7e7839bf55d48320d0bf0

7 years agoFix wrong class name for ImageGalleryBase in comments
divadsn [Sat, 31 Dec 2016 13:37:59 +0000 (13:37 +0000)]
Fix wrong class name for ImageGalleryBase in comments

This change is part of change 329773.

Change-Id: I2766e2ff3e64a84f52a5d7fa065bbc38280866c1

7 years agoReplace mocks of DatabaseMysql by DatabaseMysqli
Seb35 [Sat, 31 Dec 2016 11:52:16 +0000 (12:52 +0100)]
Replace mocks of DatabaseMysql by DatabaseMysqli

The class DatabaseMysql corresponds to the PHP extension 'mysql' which is
deprecated since PHP 5.5, and the class DatabaseMysqli corresponds to the
PHP extension 'mysqli' which is the current MySQL driver. Given the class
DatabaseMysql is likely to be removed in the future, this change is a
first step towards this.

Bug: T120333
Change-Id: I7b8363838449cae09b360221d8f50ace3a008f11

7 years agoMerge "TitleValue: Include the invalid DB key in the message when throwing"
jenkins-bot [Sat, 31 Dec 2016 11:10:46 +0000 (11:10 +0000)]
Merge "TitleValue: Include the invalid DB key in the message when throwing"

7 years agoRemove doubled title on Special:MIMESearch
Florian [Tue, 24 May 2016 16:56:12 +0000 (18:56 +0200)]
Remove doubled title on Special:MIMESearch

Having a page title (from skin) and the same text in the first
form on that page (directly after the page title) is doubled
and doesn't look very good. This change removes the form title
completely, as it is obvious enough what the form does (the input
has it's own label and the page title is clearly visible).

Follow up: I6c8b0f3be92bc455fe62846508d0b21c778b993d

Change-Id: I56c2f05ebe5b15f50eba6297c39326e1504b8229

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 31 Dec 2016 08:34:10 +0000 (09:34 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4d073c77288bda2ee9310aa43108a89b87d546cb

7 years agoTitleValue: Include the invalid DB key in the message when throwing
This, that and the other [Sat, 31 Dec 2016 05:30:32 +0000 (16:30 +1100)]
TitleValue: Include the invalid DB key in the message when throwing

The current output "Bad value for parameter $dbkey: invalid DB key" is
useless for actually working out which DB key is to blame.

Bug: T146778
Change-Id: Iaf57e25ab27b5065469c5dc5de0a1b881c48210c

7 years agoImprove strings for the contentmodel log
This, that and the other [Sat, 31 Dec 2016 04:38:47 +0000 (15:38 +1100)]
Improve strings for the contentmodel log

Consistent terminology ("content model" not "contentmodel" or
"Contentmodel"; "change" not "modification"; "non-default" not
"non-standard") and clearer wording.

Change-Id: Ia24f30713588a35d077f52e6b25f59cd8b1c7c2f

7 years agoAdd a 'ChangeUserGroups' hook in Special:Userrights
Justin Du [Sat, 31 Dec 2016 02:39:44 +0000 (20:39 -0600)]
Add a 'ChangeUserGroups' hook in Special:Userrights

Currently, there is no hook that runs before a user's groups are changed. Adding a hook here will allow for action before the groups are changed.

Bug: T49338
Change-Id: I87dbb6a8eb897f4a40215d33d1a0b24af7efa871

7 years agoAdd 'UnblockUser' and 'UnblockUserComplete' hooks to Special:Unblock
Justin Du [Sat, 31 Dec 2016 01:29:34 +0000 (19:29 -0600)]
Add 'UnblockUser' and 'UnblockUserComplete' hooks to Special:Unblock

Currently, there are two hooks ('BlockIP' and 'BlockIPComplete') that run when a user or IP is blocked in Special:Block, but no similar hooks when a user is unblocked in Special:Unblock. Adding these two hooks allows an extension to add and remove criteria about a user/IP unblock before it occurs and for possible action after an unblock is completed.

Bug: T50546
Change-Id: I9d9888dc5f1bb6a8bc62e90e6a423bf56b05173b

7 years agoReplaced &$this with $this
awu42 [Fri, 30 Dec 2016 16:55:28 +0000 (11:55 -0500)]
Replaced &$this with $this

Replaced &$this in includes/Title.php to avoid error in PHP 7.1

Bug: T153505
Change-Id: I76eaae609a817af42687d87bcf0d13da7ba01c05

7 years agoMerge "Make SpecialPage::getLinkRenderer() public"
jenkins-bot [Fri, 30 Dec 2016 15:47:39 +0000 (15:47 +0000)]
Merge "Make SpecialPage::getLinkRenderer() public"

7 years agoAdd ->text() to prevent double HTML escaping
Fomafix [Fri, 30 Dec 2016 15:01:03 +0000 (16:01 +0100)]
Add ->text() to prevent double HTML escaping

wfMessage() without ->text() makes an automatic HTML escaping.
Html::element() makes also a HTML escaping of the content.
This leads to a double escaping and raw HTML in shown on the rendered page.

Change-Id: I68165492c828837f842e7885f557644ca1bb0a8c

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 30 Dec 2016 09:03:31 +0000 (10:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I93d8f62640eb192034ac0caf523f1efa820caefe

7 years agoChange the punctuation of apierror-baddiff
Amire80 [Fri, 30 Dec 2016 06:46:56 +0000 (08:46 +0200)]
Change the punctuation of apierror-baddiff

A comma implies that one of three different things happened.
A full stop makes it clear that one thing happened, and one of
the two reasons in the next sentence was the reason for it.

Change-Id: I79aa8222dd0f6f1af74bc2017c4e058a559ef719

7 years agoMerge "Database: Avoid internal use of ignoreErrors()"
jenkins-bot [Thu, 29 Dec 2016 20:38:26 +0000 (20:38 +0000)]
Merge "Database: Avoid internal use of ignoreErrors()"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 29 Dec 2016 08:47:32 +0000 (09:47 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I09da6dbd70b11f52646813bd78e2e42ab61706cb

7 years agoMerge "Replace some usages of &$this in hook parameters"
jenkins-bot [Wed, 28 Dec 2016 21:30:23 +0000 (21:30 +0000)]
Merge "Replace some usages of &$this in hook parameters"

7 years agoReplace some usages of &$this in hook parameters
Victor Barbu [Sun, 25 Dec 2016 19:32:22 +0000 (21:32 +0200)]
Replace some usages of &$this in hook parameters

Affected classes:
- ApiBase
- ApiPageSet
- HistoryPager
- RawAction

Bug: T153505
Change-Id: I0862476a39a1c3206a84f79c1b8f7db41bc47959

7 years agoAdd language fallback from rup (Aromanian) to ro (Romanian)
Federico Leva [Wed, 28 Dec 2016 20:37:41 +0000 (21:37 +0100)]
Add language fallback from rup (Aromanian) to ro (Romanian)

https://translatewiki.net/wiki/Thread:Portal_talk:Rup/User_Romanian_when_no_translation_available

All translators and roa_rup.wiki editors have been asked to join
the discussion.

Change-Id: If49561f3bca65fb0d1e413e175710ef744ad2ca0

7 years agoApiSandbox: Display params as JSON on request page
Ed Sanders [Fri, 23 Dec 2016 13:02:51 +0000 (13:02 +0000)]
ApiSandbox: Display params as JSON on request page

In the future we can provide more formats via a dropdown
(e.g. PHP object notation, MW formatted javascript, ...)
but for now JSON is a very commonly used format, and easily
adaptable.

Bug: T130501
Change-Id: I9c24a2309d2474e9543e2b577fe90d160a1b6cbc

7 years agoUpdated mediawiki_selenium Ruby gem
Željko Filipin [Wed, 28 Dec 2016 12:04:17 +0000 (13:04 +0100)]
Updated mediawiki_selenium Ruby gem

mediawiki_selenium gem had a dependency on json gem 1.8 and it does not
work on recently released Ruby 2.4.

mediawiki_selenium 1.7.4 depends on json 2.0, and it works fine on Ruby
2.4.

Bug: T154232
Change-Id: I540943c0bc18c1a5f7755cdc60c636eff17d7914

7 years agoMerge "Add release notes for recent language fallback additions"
jenkins-bot [Wed, 28 Dec 2016 10:26:04 +0000 (10:26 +0000)]
Merge "Add release notes for recent language fallback additions"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 28 Dec 2016 09:19:21 +0000 (10:19 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic17ad3e58b95bee1275374e01d1e3dead7662320

7 years agoAdd release notes for recent language fallback additions
Federico Leva [Wed, 28 Dec 2016 08:19:55 +0000 (09:19 +0100)]
Add release notes for recent language fallback additions

Change-Id: Iead6f9160eb19b413104f65bbb9f23b4e65d9865

7 years agoMerge "EditPage: Avoid use of &$this in hooks"
jenkins-bot [Wed, 28 Dec 2016 07:47:35 +0000 (07:47 +0000)]
Merge "EditPage: Avoid use of &$this in hooks"