lhc/web/wiklou.git
7 years agoRemove "Generated by PHPUnit" comments in 3 files
Thiemo Mättig [Fri, 9 Dec 2016 09:15:28 +0000 (10:15 +0100)]
Remove "Generated by PHPUnit" comments in 3 files

Change-Id: I8624f8cd0f658a37384a948076e8f6d68f484ce1

7 years agoSet $wgUserEmailUseReplyTo = true by default
Kunal Mehta [Thu, 8 Dec 2016 22:13:59 +0000 (14:13 -0800)]
Set $wgUserEmailUseReplyTo = true by default

Mainly to work around restrictive DMARC policies (e.g., Yahoo!).

Bug: T66795
Change-Id: I3b34f6820915cc68d46ff6fd38feacd06efd2b69

7 years agoMerge "Mark pages on watchlist as visited using JS without reload"
jenkins-bot [Tue, 13 Dec 2016 02:11:15 +0000 (02:11 +0000)]
Merge "Mark pages on watchlist as visited using JS without reload"

7 years agoMerge "Move Special:Watchlist auto-reload check from PHP to JS"
jenkins-bot [Tue, 13 Dec 2016 02:05:07 +0000 (02:05 +0000)]
Merge "Move Special:Watchlist auto-reload check from PHP to JS"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 12 Dec 2016 20:58:59 +0000 (21:58 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1b174ddfd90298e39e68a7495439e8c3b08feb1c

7 years agoMark pages on watchlist as visited using JS without reload
Geoffrey Mon [Sat, 10 Dec 2016 03:06:18 +0000 (22:06 -0500)]
Mark pages on watchlist as visited using JS without reload

When the "mark pages as visited" is clicked, a dialog appears,
asking for confirmation. On confirmation, an API request is sent
to mark all pages as visited, and all unvisited watchlist entries
are changed to appear visited.

Based on a userscript by User:NQ (from English Wikipedia)
https://en.wikipedia.org/wiki/User:NQ/WatchlistResetConfirm.js

Bug: T150045
Change-Id: I45fb02a1edc1b0331925e9a244a2455f86ad3886

7 years agoArticle::fetchContent() was removed
Reedy [Mon, 12 Dec 2016 19:20:22 +0000 (19:20 +0000)]
Article::fetchContent() was removed

Bug: T145728
Change-Id: Ie8bc12e391f2983452bf472333ea3cfaa72e4918

7 years agoMerge "WikiPage::getText() was removed"
jenkins-bot [Mon, 12 Dec 2016 19:10:05 +0000 (19:10 +0000)]
Merge "WikiPage::getText() was removed"

7 years agoWikiPage::getText() was removed
Reedy [Mon, 12 Dec 2016 18:51:37 +0000 (18:51 +0000)]
WikiPage::getText() was removed

Bug: T145728
Change-Id: I9e5ac149ad1780719b5c8f4e27048168cf33c0b9

7 years agoMerge "ImageHistoryPseudoPager: Don't ignore limit from URL"
jenkins-bot [Mon, 12 Dec 2016 18:43:04 +0000 (18:43 +0000)]
Merge "ImageHistoryPseudoPager: Don't ignore limit from URL"

7 years agoMerge "WikiPage::prepareTextForEdit() was removed"
jenkins-bot [Mon, 12 Dec 2016 14:45:52 +0000 (14:45 +0000)]
Merge "WikiPage::prepareTextForEdit() was removed"

7 years agoWikiPage::prepareTextForEdit() was removed
Reedy [Mon, 12 Dec 2016 01:09:59 +0000 (01:09 +0000)]
WikiPage::prepareTextForEdit() was removed

Bug: T145728
Change-Id: If15777c04a52bd398092884fab592cfb0930255b

7 years agoMerge "installer: Restore PHP 5.3 compatibility in index.php"
jenkins-bot [Sun, 11 Dec 2016 21:44:43 +0000 (21:44 +0000)]
Merge "installer: Restore PHP 5.3 compatibility in index.php"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 11 Dec 2016 20:55:33 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I204f2ce7bacf1bcf382dc51b2a574e405220d5d3

7 years agoinstaller: Restore PHP 5.3 compatibility in index.php
Bartosz Dziewoński [Sun, 11 Dec 2016 20:29:45 +0000 (21:29 +0100)]
installer: Restore PHP 5.3 compatibility in index.php

This file should remain compatible with PHP 5.3, so that we can
actually display the error message about old PHP version, rather than
a syntax error.

Change-Id: If12f79f5d375e925291728aac7c9db18ca226d26

7 years agoImageHistoryPseudoPager: Don't ignore limit from URL
Bartosz Dziewoński [Sun, 11 Dec 2016 19:00:20 +0000 (20:00 +0100)]
ImageHistoryPseudoPager: Don't ignore limit from URL

I thought the parent class would handle this for us, but no: our setLimit()
call has been overriding the limit from URL set in parent constructor.

Follow-up to f94d5239b528c406c85e090152805a1306e13ded.

Bug: T152813
Change-Id: I93762021f70613bfde72da1eb737e9fa32d7d97c

7 years agoMove Special:Watchlist auto-reload check from PHP to JS
Geoffrey Mon [Sat, 10 Dec 2016 01:58:57 +0000 (20:58 -0500)]
Move Special:Watchlist auto-reload check from PHP to JS

This makes the watchlist js load all the time, instead of only
if the auto-reload preference is set, so we can put other things
in the same js module.

Bug: T150045
Change-Id: Ib8acca39593fe3d2369dc3187a9a55413553843d

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 10 Dec 2016 21:17:07 +0000 (22:17 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I73bab410a14742c1c93b79bceb7de73feed5d752

7 years agoMerge "Fix links problem on Special:Search"
jenkins-bot [Sat, 10 Dec 2016 01:44:08 +0000 (01:44 +0000)]
Merge "Fix links problem on Special:Search"

7 years agoInclude numerical namespace in slow-parse.log
Kunal Mehta [Fri, 9 Dec 2016 22:55:28 +0000 (14:55 -0800)]
Include numerical namespace in slow-parse.log

This makes it easier to sort by namespace rather than trying to parse it
out of the title.

Change-Id: I946cb00548bcb69bd2be98c15a9f1e02e546fa24

7 years agoMerge "Special:RC 'hidemajor' filter"
jenkins-bot [Fri, 9 Dec 2016 22:59:17 +0000 (22:59 +0000)]
Merge "Special:RC 'hidemajor' filter"

7 years agoMerge "Make refreshImageMetadata not fail completely if it doesn't like a single...
jenkins-bot [Fri, 9 Dec 2016 22:44:00 +0000 (22:44 +0000)]
Merge "Make refreshImageMetadata not fail completely if it doesn't like a single file"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 9 Dec 2016 21:44:01 +0000 (22:44 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic25484ba66bfe1291c39d7e12ed08fa7d8b633c6

7 years agoFix links problem on Special:Search
Phantom42 [Fri, 9 Dec 2016 21:20:07 +0000 (23:20 +0200)]
Fix links problem on Special:Search

Fix bug that most links on Special:Search did not have text rendered
Also restore some changes from commit f736c3709a54be33f808e8d12f85707b90763165
where Linker::link() usage was replaced by LinkRenderer

This reverts commit 791d5319bff0be23c3ea474a84d42ed788355688

Change-Id: Id25d1b1acd0dcafc47511b2db3782e5d441f3731

7 years agoFollow-up e8dd1f43fb169: fix JS error when $wgTranslateNumerals is false
Roan Kattouw [Fri, 9 Dec 2016 21:23:42 +0000 (13:23 -0800)]
Follow-up e8dd1f43fb169: fix JS error when $wgTranslateNumerals is false

Bug: T152800
Change-Id: I99c341168dada063876a66689d68e0b9adf7f09a

7 years agoMake refreshImageMetadata not fail completely if it doesn't like a single file
Reedy [Fri, 9 Dec 2016 19:23:28 +0000 (19:23 +0000)]
Make refreshImageMetadata not fail completely if it doesn't like a single file

Change-Id: I1170cf91ba6dea08d35457c9859b8c18482d4aa6

7 years agoMerge "ApiQueryUsers: Add ability to search by user ID"
jenkins-bot [Fri, 9 Dec 2016 18:51:16 +0000 (18:51 +0000)]
Merge "ApiQueryUsers: Add ability to search by user ID"

7 years agoMerge "Revert "Replace Linker::link() usage with LinkRenderer""
jenkins-bot [Fri, 9 Dec 2016 17:27:42 +0000 (17:27 +0000)]
Merge "Revert "Replace Linker::link() usage with LinkRenderer""

7 years agoRevert "Replace Linker::link() usage with LinkRenderer"
EBernhardson [Fri, 9 Dec 2016 16:53:42 +0000 (16:53 +0000)]
Revert "Replace Linker::link() usage with LinkRenderer"

Most links on Special:Search no longer have links with text rendered.
Please revert this revert and fix the issue before re-merging.

This reverts commit f736c3709a54be33f808e8d12f85707b90763165.

Change-Id: Id92c484adc1d3339f9412bfb60ffe213cc1315ee

7 years agoMerge "Remove empty lines from PHP and JavaScript comment blocks"
jenkins-bot [Fri, 9 Dec 2016 16:43:33 +0000 (16:43 +0000)]
Merge "Remove empty lines from PHP and JavaScript comment blocks"

7 years agoRemove empty lines from PHP and JavaScript comment blocks
Thiemo Mättig [Thu, 8 Dec 2016 16:23:46 +0000 (17:23 +0100)]
Remove empty lines from PHP and JavaScript comment blocks

This is a pure documentation change. It mostly removes empty lines from
comments (and entirely empty comments), as well as adds a few missing
documentation blocks and fixes a minor mistake. I hope it's ok to have
this in one patch. I can split it, please tell me.

Change-Id: I9668338602ac77b903ab6b02ff56bd52743c37c4

7 years agoMerge "Use the phan exit code directly"
jenkins-bot [Fri, 9 Dec 2016 00:51:52 +0000 (00:51 +0000)]
Merge "Use the phan exit code directly"

7 years agoMerge "Use 1 processes instead of 4 for phan"
jenkins-bot [Fri, 9 Dec 2016 00:49:05 +0000 (00:49 +0000)]
Merge "Use 1 processes instead of 4 for phan"

7 years agoUse the phan exit code directly
Erik Bernhardson [Thu, 8 Dec 2016 22:41:32 +0000 (14:41 -0800)]
Use the phan exit code directly

Change-Id: Ic99e334576e350d11c57ac4b74085c99313401c4

7 years agoUse 1 processes instead of 4 for phan
Erik Bernhardson [Thu, 8 Dec 2016 22:12:38 +0000 (14:12 -0800)]
Use 1 processes instead of 4 for phan

Running against mediawiki core phan needs around 1GB of memory
per process. >4GB is too excessive for a default setting. Instead
set the default to 1 process and add the ability for users to
select more processes on the command line.

Bug: T132636
Change-Id: I3d9fa462916fba519fe6d7f1916f881eefb6a942

7 years agoMerge "API: More i18n cleanup"
jenkins-bot [Thu, 8 Dec 2016 22:09:02 +0000 (22:09 +0000)]
Merge "API: More i18n cleanup"

7 years agoMerge "HtmlArmor: Document that null is an acceptable value"
jenkins-bot [Thu, 8 Dec 2016 21:31:58 +0000 (21:31 +0000)]
Merge "HtmlArmor: Document that null is an acceptable value"

7 years agoAPI: More i18n cleanup
Brad Jorsch [Thu, 8 Dec 2016 17:56:37 +0000 (12:56 -0500)]
API: More i18n cleanup

* Use errorformat for action=login Failed responses in non-BC mode.
* We removed 'messageHtml' from action=rollback's response on error, but
  left it for success. Remove it there too, it's even less useful.
* We changed action=watch's reporting of errors, but left the
  mostly-pointless reporting of "success" UI messages. These should be
  handled on the client side.

Change-Id: Ia6c402a4254fbacf4c2c3f125ce8bf0bcc71e509

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 8 Dec 2016 21:05:13 +0000 (22:05 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iba22019e88d103bf2c7b98309e57e24be3328dff

7 years agoHtmlArmor: Document that null is an acceptable value
Kunal Mehta [Wed, 7 Dec 2016 05:25:56 +0000 (21:25 -0800)]
HtmlArmor: Document that null is an acceptable value

And that you'll get null back.

Change-Id: Ibd74e6af16b51796b46c2e23b7442740f5f69a0f

7 years agoMerge "Let mw.Api recognize errorformat!=bc"
jenkins-bot [Thu, 8 Dec 2016 19:51:51 +0000 (19:51 +0000)]
Merge "Let mw.Api recognize errorformat!=bc"

7 years agoApiQueryUsers: Add ability to search by user ID
rlot [Mon, 5 Dec 2016 07:35:42 +0000 (08:35 +0100)]
ApiQueryUsers: Add ability to search by user ID

Added new 'userids' parameter to ApiQueryUsers.php. It accepts user ID numbers.

Bug: T34494
Change-Id: I8021bc8660f19e90f0f7d43ea0e82d5258c586ab

7 years agoLet mw.Api recognize errorformat!=bc
Matthias Mullie [Thu, 8 Dec 2016 17:05:23 +0000 (18:05 +0100)]
Let mw.Api recognize errorformat!=bc

Iae0e2ce3bd42dd4776a9779664086119ac188412 introduced a new
API error format where, in case of error, there is no
'error' property in the response, but an 'errors'.
mw.Api doesn't recognize those as errors and just resolves
the deferred, instead of rejecting it.

Change-Id: I4c05ef7d7574e2ca538170609fab85d8463b7b68

7 years agoMerge "Replace Linker::link() usage with LinkRenderer"
jenkins-bot [Thu, 8 Dec 2016 18:34:27 +0000 (18:34 +0000)]
Merge "Replace Linker::link() usage with LinkRenderer"

7 years agoMerge "Special:Userrights should set isself on page view, not just on submit"
jenkins-bot [Thu, 8 Dec 2016 17:56:53 +0000 (17:56 +0000)]
Merge "Special:Userrights should set isself on page view, not just on submit"

7 years agoProvide context to ChangeTags::buildTagFilterSelector
Matěj Suchánek [Wed, 19 Oct 2016 19:06:14 +0000 (19:06 +0000)]
Provide context to ChangeTags::buildTagFilterSelector

Bug: T105649
Change-Id: I5f44f4c054010c865ddb51e7d69107bdf2e88c00

7 years agoMerge "Add configuration for running etsy/phan against core"
jenkins-bot [Thu, 8 Dec 2016 10:03:53 +0000 (10:03 +0000)]
Merge "Add configuration for running etsy/phan against core"

7 years agoMerge "Chinese Conversion Table Update 2016-7"
jenkins-bot [Thu, 8 Dec 2016 07:26:08 +0000 (07:26 +0000)]
Merge "Chinese Conversion Table Update 2016-7"

7 years agoAdd configuration for running etsy/phan against core
Erik Bernhardson [Fri, 1 Jul 2016 00:11:52 +0000 (17:11 -0700)]
Add configuration for running etsy/phan against core

Adds the necessary configuration and stubs for phan static analysis to
run against mediawiki core. A variety of fixes have been applied to core
recently such with this current configuration we are completely passing,
except for one issue with a bug in Phan (https://github.com/etsy/phan/issues/286)

In it's current configuration Phan will detect fatal errors trying to
access non existant classes, undefined method calls, and other errors.
The analysis can be expanded as we cleanup more of the codebase.  This
is in preparation for working on getting the CI to run phan as part of
the review process. I have found phan to be usefull in CirrusSearch
(although with stricter config) for catching bugs and I think it could
help in core as well.

We arn't too far from being able to disable `null_casts_as_any_type`,
there are only a few classes that need adjusting. Lots more work needs
to be done to reduce `minimum_severity` from 10 to 5 (normal) or
0 (low).

Change-Id: Iafd55b1380f37d7b0d195eed081f8042166690e8

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 7 Dec 2016 21:40:46 +0000 (22:40 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic36aaa135b8702f13e4dd4400878d8d9cc2146ce

7 years agoSpecial:Userrights should set isself on page view, not just on submit
Huji Lee [Wed, 7 Dec 2016 19:15:52 +0000 (14:15 -0500)]
Special:Userrights should set isself on page view, not just on submit

Partially reverts I57e9ca4f20fe557e4024c4f5a4865170f02ebb45

Bringing back lines that were incorrectly removed

Bug: T152600
Change-Id: I5e1171be4cb75a6d7cce5f99b9d31dc0cb5d8db3

7 years agoReplace Linker::link() usage with LinkRenderer
Phantom42 [Mon, 5 Dec 2016 19:02:51 +0000 (21:02 +0200)]
Replace Linker::link() usage with LinkRenderer

Linker::link() replaced with LinkRenderer in some pages in includes/specials

Bug: T149346
Change-Id: I937bdc99d1342e73f20b8437a9b55dffb04161c5

7 years agoSpecial:RC 'hidemajor' filter
Stephane Bisson [Tue, 8 Nov 2016 20:36:46 +0000 (15:36 -0500)]
Special:RC 'hidemajor' filter

'hidemajor', along with the existing 'hideminor'
RC filter, allow showing just the minor edits,
just the major edits, or both.

This will be used by the ERI project.

Bug: T149863
Change-Id: I936a4a1b13d8c4a15c745012cd0f82207d9e57ca

7 years agoMerge "ApiRevisionDelete: Use standard formatting for errors and warnings"
jenkins-bot [Wed, 7 Dec 2016 08:58:41 +0000 (08:58 +0000)]
Merge "ApiRevisionDelete: Use standard formatting for errors and warnings"

7 years agoMerge "Replace Linker::link() & Linker::linkKnown() with LinkRenderer"
jenkins-bot [Wed, 7 Dec 2016 06:55:33 +0000 (06:55 +0000)]
Merge "Replace Linker::link() & Linker::linkKnown() with LinkRenderer"

7 years agoReplace Linker::link() & Linker::linkKnown() with LinkRenderer
Yifei He [Mon, 5 Dec 2016 06:47:27 +0000 (14:47 +0800)]
Replace Linker::link() & Linker::linkKnown() with LinkRenderer

Change-Id: I1350819165095d9be79aea8d9189760a4dbddd40

7 years agoMerge "Replace Linker::link() with LinkRenderer in all revisiondelete pages"
jenkins-bot [Wed, 7 Dec 2016 05:51:21 +0000 (05:51 +0000)]
Merge "Replace Linker::link() with LinkRenderer in all revisiondelete pages"

7 years agoSpecial:RC filter: hideunpatrolled
Stephane Bisson [Thu, 1 Dec 2016 19:58:18 +0000 (14:58 -0500)]
Special:RC filter: hideunpatrolled

Allows hiding edits that have not been patrolled.
In other words, showing only edits that have been patrolled.

Will be used by the new Special:RC filters (ERI project).

Bug: T152061
Change-Id: I3cd896812c5af87bc4be53d493055c37298c712f

7 years agoSpecial:RC filter: hidehumans
Stephane Bisson [Mon, 14 Nov 2016 18:51:48 +0000 (13:51 -0500)]
Special:RC filter: hidehumans

Allows showing only bot edits

Will be used by the ERI project.

Bug: T149862
Change-Id: I748eb3c614abd7b8b228efe3da5e9cb569a8618f

7 years agoSpecial:RC filters: hide page edits, new pages, log entries
Stephane Bisson [Mon, 14 Nov 2016 19:17:42 +0000 (14:17 -0500)]
Special:RC filters: hide page edits, new pages, log entries

New RC filters for ERI project:
  hidepageedits
  hidenewpages
  hidelog

Bug: T150060
Change-Id: I6fe852fb0f5386c3385ada5189ceaf0d9bbc979d

7 years agoMerge "RC/Watchlist: Filter out parameters that cannot be displayed"
jenkins-bot [Wed, 7 Dec 2016 01:07:58 +0000 (01:07 +0000)]
Merge "RC/Watchlist: Filter out parameters that cannot be displayed"

7 years agoMerge "Cleanup static analysis errors"
jenkins-bot [Wed, 7 Dec 2016 00:39:16 +0000 (00:39 +0000)]
Merge "Cleanup static analysis errors"

7 years agoMerge "Update OOjs UI to v0.18.2"
jenkins-bot [Wed, 7 Dec 2016 00:24:18 +0000 (00:24 +0000)]
Merge "Update OOjs UI to v0.18.2"

7 years agoCleanup static analysis errors
Erik Bernhardson [Wed, 7 Dec 2016 00:06:39 +0000 (16:06 -0800)]
Cleanup static analysis errors

While prepping the code base for using etsy/phan i found a few problems.
A couple are real problems, while others are just places etsy couldn't
figure out the types.

* AuthPlugin referenced UserLoginTemplate which doesn't exist. Tracing
  back usages this accepts classes that extend from BaseTemplate.
* DatabaseSqlite had an invalid @var annotation.
* LoadBalancer had some missing or under-defined annotations. Make them
  more specific where possible.
* SqlBagOStuff didn't have the appropriate use statement for
  WaitConditionLoop and probably doesn't work. Also updated annotations
  that point to non-existent DatabaseBase to use IDatabase.

Change-Id: Iff2270b418ad2f8f97cfdb6df646c435d3283536

7 years agoMerge "profiler: Support tideways for PHP7 profiling"
jenkins-bot [Tue, 6 Dec 2016 23:52:47 +0000 (23:52 +0000)]
Merge "profiler: Support tideways for PHP7 profiling"

7 years agoUpdate OOjs UI to v0.18.2
Volker E [Tue, 6 Dec 2016 23:42:12 +0000 (15:42 -0800)]
Update OOjs UI to v0.18.2

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

Change-Id: Id08147e9015fc68a882733268a2bf860dd1ccb27

7 years agoprofiler: Support tideways for PHP7 profiling
Kunal Mehta [Sun, 4 Dec 2016 03:31:37 +0000 (19:31 -0800)]
profiler: Support tideways for PHP7 profiling

xhprof does not support PHP7, and it doesn't seem like upstream will be
working on that any time soon.

Tideways is a profiler that is basically a drop-in replacement for
xhprof with functions renamed. So Xhprof::enable() and Xhprof::disable()
will now try to use tideways if that is installed and xhprof is not.

Bug: T152186
Change-Id: I0d7d2de56ac638ca2851c662f527049bd620c0e9

7 years agoMake remote content skin tabs non-File specific
Kunal Mehta [Fri, 16 Sep 2016 01:22:36 +0000 (18:22 -0700)]
Make remote content skin tabs non-File specific

This is one of the steps for implementing shadow namespaces -
generalizing foreign file specific code to be usable for any namespace.
This allows us to no-longer special case WikiFilePage in SkinTemplate
when building content_navigation, and will let GlobalUserPage to add
similar tabs just by overriding the same functions.

The new WikiPage::getWikiDisplayName() and WikiPage::getSourceURL()
functions will return expected values for both local and remote content.

Change-Id: Ib3d7dcbefe95da351872e63f306799eef83e00a7

7 years agoMerge "Special:RC tests: ignore order when asserting conditions"
jenkins-bot [Tue, 6 Dec 2016 21:57:32 +0000 (21:57 +0000)]
Merge "Special:RC tests: ignore order when asserting conditions"

7 years agoMerge "MapCacheLRU: Properly handle bogus cache keys"
jenkins-bot [Tue, 6 Dec 2016 21:41:18 +0000 (21:41 +0000)]
Merge "MapCacheLRU: Properly handle bogus cache keys"

7 years agoRevert "Localisation updates from https://translatewiki.net."
Raimond Spekking [Tue, 6 Dec 2016 21:28:31 +0000 (21:28 +0000)]
Revert "Localisation updates from https://translatewiki.net."

includes/api/i18n/qqq.json looks insane, probably conflict with https://gerrit.wikimedia.org/r/#/c/321406/

This reverts commit 50135c64ca83c5903ddbc04a9af8638321dc25e0.

Change-Id: I63d88b6ef11eb796ff80e83763a2b0c99363b7f9

7 years agoApiRevisionDelete: Use standard formatting for errors and warnings
Brad Jorsch [Tue, 6 Dec 2016 21:17:23 +0000 (16:17 -0500)]
ApiRevisionDelete: Use standard formatting for errors and warnings

Change-Id: I8e88c356ac81572d866fbdd8f15e7a8dd4384c06

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 6 Dec 2016 21:13:44 +0000 (22:13 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I57e6697462f86b9ef684d82e739781b04dbfa250

7 years agoMapCacheLRU: Properly handle bogus cache keys
Chad Horohoe [Tue, 6 Dec 2016 20:42:49 +0000 (12:42 -0800)]
MapCacheLRU: Properly handle bogus cache keys

They can only be strings or integers. Anything else is wrong. We
should be throwing exceptions here so developers find this early
when running tests and manual testing.

Exceptions (instead of warnings) allow us to get a full useful
stacktrace.

Change-Id: I823ce33523283509c14a05f816f261d6b400e243

7 years agoAPI: Fix i18n for apihelp-main-param-errorformat
Brad Jorsch [Tue, 6 Dec 2016 20:20:39 +0000 (15:20 -0500)]
API: Fix i18n for apihelp-main-param-errorformat

Renamed the parameter at some point, but forgot to update this message.

Change-Id: I84fb44e7419bd7aee28f4dfd2bd37c51384330cc

7 years agoMerge "API: i18n for warnings and errors"
jenkins-bot [Tue, 6 Dec 2016 19:57:45 +0000 (19:57 +0000)]
Merge "API: i18n for warnings and errors"

7 years agoReplace Linker::link() with LinkRenderer in all revisiondelete pages
divadsn [Mon, 5 Dec 2016 19:23:28 +0000 (19:23 +0000)]
Replace Linker::link() with LinkRenderer in all revisiondelete pages

* RevDelArchiveItem
* RevDelArchivedFileItem
* RevDelFileItem
* RevDelLogItem
* RevDelRevisionItem

Bug: T149346
Change-Id: I96f83d06b4d3ccf3f76ccfca843a6aaf76d89063

7 years agoMerge "registration: Provide credits information to callbacks"
jenkins-bot [Tue, 6 Dec 2016 19:07:01 +0000 (19:07 +0000)]
Merge "registration: Provide credits information to callbacks"

7 years agoMerge "registration: Refactor validation logic to avoid duplication"
jenkins-bot [Tue, 6 Dec 2016 19:06:57 +0000 (19:06 +0000)]
Merge "registration: Refactor validation logic to avoid duplication"

7 years agoMerge "Convert Special:DeletedContributions to use OOUI."
jenkins-bot [Tue, 6 Dec 2016 18:14:41 +0000 (18:14 +0000)]
Merge "Convert Special:DeletedContributions to use OOUI."

7 years agoMerge "registration: Don't let extensions load late"
jenkins-bot [Tue, 6 Dec 2016 18:09:31 +0000 (18:09 +0000)]
Merge "registration: Don't let extensions load late"

7 years agoobjectcache: Remove broken apcu_set() calls
Aaron Schulz [Tue, 6 Dec 2016 06:03:21 +0000 (01:03 -0500)]
objectcache: Remove broken apcu_set() calls

The method call was misnamed (should be apcu_store) and not needed anyway,
since the other BagOStuff classes fail if no key is present.

Change-Id: I726965e665c2d0c5843d8dd33504810d130b9e98

7 years agoAPI: i18n for warnings and errors
Brad Jorsch [Wed, 19 Oct 2016 16:54:25 +0000 (12:54 -0400)]
API: i18n for warnings and errors

API warnings and error messages are currently hard-coded English
strings. This patch changes that.

With a few exceptions, this patch should be compatible with non-updated
extensions:
* The change to ApiBase::$messageMap will blow up anything trying to
  mess with it.
* The changes to the 'ApiCheckCanExecute' hook will cause a wrong
  (probably unparsed) error message to be emitted for extensions not
  already using an ApiMessage. Unless they're currently broken like
  Wikibase.

Bug: T37074
Bug: T47843
Depends-On: Ia2b66b57cd4eaddc30b3ffdd7b97d6ca3e02d898
Depends-On: I2e1bb975bb0045476c03ebe6cdec00259bae22ec
Depends-On: I53987bf87c48f6c00deec17a8e957d24fcc3eaa6
Depends-On: Ibf93a459eb62d30f7c70d20e91ec9faeb80d10ed
Depends-On: I3cf889811f44a15935e454dd42f081164d4a098c
Depends-On: Ieae527de86735ddcba34724730e8730fb277b99b
Depends-On: I535344c29d51521147c2a26c341dae38cec3e931
Change-Id: Iae0e2ce3bd42dd4776a9779664086119ac188412

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 5 Dec 2016 21:19:57 +0000 (22:19 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I74a8995410784d438e0168919c5216aacadfc723

7 years agoMerge "phpunit: Make getResourceLoaderContext() more extendable"
jenkins-bot [Mon, 5 Dec 2016 19:57:21 +0000 (19:57 +0000)]
Merge "phpunit: Make getResourceLoaderContext() more extendable"

7 years agoMisleading messages on Special:Userrights
Huji Lee [Mon, 5 Dec 2016 19:03:50 +0000 (14:03 -0500)]
Misleading messages on Special:Userrights

Corrects what is not addressed by I57e9ca4f20fe557e4024c4f5a4865170f02ebb45

Bug: T152428
Change-Id: I105be73acc5a2bc088b557ccafbdf9db726480da

7 years agoMerge "OOjs UI: Backport I73f95965694ec7fb0fa9a474742286e1105e5c85"
jenkins-bot [Mon, 5 Dec 2016 16:45:21 +0000 (16:45 +0000)]
Merge "OOjs UI: Backport I73f95965694ec7fb0fa9a474742286e1105e5c85"

7 years agoUse single quotes
Niklas Laxström [Mon, 5 Dec 2016 13:02:00 +0000 (14:02 +0100)]
Use single quotes

Follow-up to Icc9bc096

Change-Id: I4863e0e7946fd59022846198e86302f556fee617

7 years agoOOjs UI: Backport I73f95965694ec7fb0fa9a474742286e1105e5c85
Bartosz Dziewoński [Mon, 5 Dec 2016 00:58:03 +0000 (01:58 +0100)]
OOjs UI: Backport I73f95965694ec7fb0fa9a474742286e1105e5c85

Bug: T151061
Change-Id: I715d2ac077c5a6f9de420d90f19ef4b631168f26

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 4 Dec 2016 20:53:04 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Idc4a0a2896c29601b3f099c3bb2a622e995cfc4e

7 years agoRemoved deprecated class RevisiondeleteAction
rlot [Sun, 4 Dec 2016 15:05:49 +0000 (16:05 +0100)]
Removed deprecated class RevisiondeleteAction

RevisiondeleteAction was deprecated in release 1.25

Bug: T61113
Change-Id: I9238d0558b21fccde70e7e23a169e114362f793e

7 years agoregistration: Don't let extensions load late
Florian Schmidt [Sat, 3 Dec 2016 17:46:48 +0000 (18:46 +0100)]
registration: Don't let extensions load late

We want all extensions to be queued together and load at the same time
so in the future we can properly evaluate dependencies as a whole. If
extensions load late, they would bypass this, potentially causing
issues.

Bug: T117277
Change-Id: I09b306bd6f6ccf4210f36be0118e7f17f2c3d264

7 years agoMerge "Add integration test for MWHttpRequest user/pass options"
jenkins-bot [Sun, 4 Dec 2016 06:31:50 +0000 (06:31 +0000)]
Merge "Add integration test for MWHttpRequest user/pass options"

7 years agoMerge "Replaced Linker::link() usage with LinkRenderer in some special pages"
jenkins-bot [Sun, 4 Dec 2016 06:19:39 +0000 (06:19 +0000)]
Merge "Replaced Linker::link() usage with LinkRenderer in some special pages"

7 years agoReplaced Linker::link() usage with LinkRenderer in some special pages
Subin Siby [Sat, 3 Dec 2016 08:01:49 +0000 (13:31 +0530)]
Replaced Linker::link() usage with LinkRenderer in some special pages

Bug: T149346
Change-Id: I73c2b7402012a49e4419b6214f1d03f2e819220b

7 years agoregistration: Provide credits information to callbacks
Kunal Mehta [Thu, 1 Dec 2016 07:19:37 +0000 (23:19 -0800)]
registration: Provide credits information to callbacks

Registration callbacks now provide basic credits information (name,
path, type, authors, license-name, version, etc.) as the first argument.
The main use case right now for this is to support extension VERSION
constants for backwards-compatibility.

In addition, callbacks now run *after* attributes are exposed, so
callbacks could use data from them if they wanted to.

Bug: T151136
Change-Id: Ic5965dd4e259e1f46222ac92b8e78750e67b51d6

7 years agoMerge "Add $magicWords translation for Bengali (bn)"
jenkins-bot [Sun, 4 Dec 2016 01:27:18 +0000 (01:27 +0000)]
Merge "Add $magicWords translation for Bengali (bn)"

7 years agoAdd integration test for MWHttpRequest user/pass options
Gergő Tisza [Sat, 3 Dec 2016 23:36:09 +0000 (23:36 +0000)]
Add integration test for MWHttpRequest user/pass options

Change-Id: I5bcb263a725e8042ee51109080d2075744fe7001

7 years agoMerge "Clarify in emailuserfooter that by responding one reveals their email address"
jenkins-bot [Sat, 3 Dec 2016 22:56:05 +0000 (22:56 +0000)]
Merge "Clarify in emailuserfooter that by responding one reveals their email address"

7 years agoClarify in emailuserfooter that by responding one reveals their email address
Huji Lee [Fri, 2 Dec 2016 21:25:23 +0000 (16:25 -0500)]
Clarify in emailuserfooter that by responding one reveals their email address

Bug: T152242
Change-Id: I686f7bb8dd1d225620266ac9cbecadcf06bd7705