jenkins-bot [Wed, 14 Dec 2016 09:03:15 +0000 (09:03 +0000)]
Merge ""Image size limit" text should always read left-to-right"
jenkins-bot [Wed, 14 Dec 2016 08:52:20 +0000 (08:52 +0000)]
Merge "Convert legacy bugs ID to Phabricator tasks ID for Parser class"
jenkins-bot [Wed, 14 Dec 2016 08:51:26 +0000 (08:51 +0000)]
Merge "Add script to support per-line @suppress annotations in Phan"
Fomafix [Wed, 14 Dec 2016 06:20:57 +0000 (07:20 +0100)]
Apply color palette change also to wikitable cell border
In
e7a4daf the color of the wikitable border was changed but not the color of
the cells. This leads to a different border color for empty cells and for
non-empty cells.
Change-Id: Ifb691b7f7c388b068e26ccecb94f822432552466
jenkins-bot [Wed, 14 Dec 2016 02:17:26 +0000 (02:17 +0000)]
Merge "Add googleweblight to JS blacklist"
Elliott Eggleston [Tue, 13 Dec 2016 20:48:18 +0000 (14:48 -0600)]
Add googleweblight to JS blacklist
Google runs JS on their proxy servers and outputs a page which may
be broken in creative ways (e.g. clicking anywhere triggers the
fundraising banner). Treat them as a non-JS browser to minimize
bugginess.
Currently broken with CentralNotice banner:
https://googleweblight.com/?lite_url=https://en.wikipedia.org
Images below the fold never load:
https://googleweblight.com/?lite_url=https://en.wikipedia.org/wiki/Barack_Obama
Bug: T152602
Change-Id: Ia277ab51634b770a950616a842bedb29fcbf1f12
Translation updater bot [Tue, 13 Dec 2016 21:03:43 +0000 (22:03 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I37f811dd07e6704c47cc159715f2e24ddaf50ab0
Erik Bernhardson [Tue, 13 Dec 2016 18:25:48 +0000 (10:25 -0800)]
Add script to support per-line @suppress annotations in Phan
Adds the functionality of per-line @suppress annotations. Phan already
supports per-class or per-method annotations, but does not have any
per-line support due to the PHP AST only returning comments that are
class/property/method level docblocks.
This is a bit of a hack, but get's the job done. Removes the
PhanTypeInvalidLeftOperand issue from blacklist and suppresses it
to demonstrate the supression works as expected.
Change-Id: I5066b3b431fb69175a711ee366e95f31c7c47639
Erik Bernhardson [Tue, 13 Dec 2016 17:47:25 +0000 (09:47 -0800)]
Adjust phan to allow for making progress strengthening analysis
With phan set to only report critical errors it will be quite hard
to cleanup the code base to the point where we are running stronger
analysis. Instead of setting minimimum severity to critical, set
minimum severity to low and suppress all existing issues.
This will allow developers to choose an issue type from the list, fix
it, and update the config.php to report on the issue in the future.
Change-Id: I2771a4ff37f43cca215b939ed7d82f137d72cea6
jenkins-bot [Tue, 13 Dec 2016 17:00:52 +0000 (17:00 +0000)]
Merge "Block API: Allow blocking/unblocking by user's ID"
Bartosz Dziewoński [Tue, 13 Dec 2016 14:11:43 +0000 (15:11 +0100)]
Do not lose message parameters in UploadFromChunks::verifyChunk()
This code is gross, and my changes do not really make it better,
but it works more correctly more often.
Bug: T147720
Change-Id: If9ce05045ada1e3f55e031639e4c4ebc2a216de8
Subin Siby [Wed, 7 Dec 2016 17:04:02 +0000 (22:34 +0530)]
Block API: Allow blocking/unblocking by user's ID
Add feature to block/unblock users by their ID. For this,a new
parameter `userid` is added to block & unblock API request.
Bug: T34496
Change-Id: I084a4e275cd937053c505cd388a365b316990ece
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
Sébastien Santoro [Sun, 11 Dec 2016 22:45:07 +0000 (22:45 +0000)]
Convert legacy bugs ID to Phabricator tasks ID for Parser class
Side edits to comments:
- update a @fixme as T10068 has been declined
- fix spelling
Change-Id: I7f9f191ff68bb56de72563dde957ccf4731267e4
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
jenkins-bot [Tue, 13 Dec 2016 02:11:15 +0000 (02:11 +0000)]
Merge "Mark pages on watchlist as visited using JS without reload"
jenkins-bot [Tue, 13 Dec 2016 02:05:07 +0000 (02:05 +0000)]
Merge "Move Special:Watchlist auto-reload check from PHP to JS"
Translation updater bot [Mon, 12 Dec 2016 20:58:59 +0000 (21:58 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I1b174ddfd90298e39e68a7495439e8c3b08feb1c
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
Reedy [Mon, 12 Dec 2016 19:20:22 +0000 (19:20 +0000)]
Article::fetchContent() was removed
Bug: T145728
Change-Id: Ie8bc12e391f2983452bf472333ea3cfaa72e4918
jenkins-bot [Mon, 12 Dec 2016 19:10:05 +0000 (19:10 +0000)]
Merge "WikiPage::getText() was removed"
Reedy [Mon, 12 Dec 2016 18:51:37 +0000 (18:51 +0000)]
WikiPage::getText() was removed
Bug: T145728
Change-Id: I9e5ac149ad1780719b5c8f4e27048168cf33c0b9
jenkins-bot [Mon, 12 Dec 2016 18:43:04 +0000 (18:43 +0000)]
Merge "ImageHistoryPseudoPager: Don't ignore limit from URL"
jenkins-bot [Mon, 12 Dec 2016 14:45:52 +0000 (14:45 +0000)]
Merge "WikiPage::prepareTextForEdit() was removed"
Reedy [Mon, 12 Dec 2016 01:09:59 +0000 (01:09 +0000)]
WikiPage::prepareTextForEdit() was removed
Bug: T145728
Change-Id: If15777c04a52bd398092884fab592cfb0930255b
Huji Lee [Sun, 27 Nov 2016 04:44:44 +0000 (23:44 -0500)]
"Image size limit" text should always read left-to-right
Bug: T144386
Change-Id: I10ab5ed71c114bbfefcc841d8a3d4b280bf1acf2
jenkins-bot [Sun, 11 Dec 2016 21:44:43 +0000 (21:44 +0000)]
Merge "installer: Restore PHP 5.3 compatibility in index.php"
Translation updater bot [Sun, 11 Dec 2016 20:55:33 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I204f2ce7bacf1bcf382dc51b2a574e405220d5d3
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
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
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
Translation updater bot [Sat, 10 Dec 2016 21:17:07 +0000 (22:17 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I73bab410a14742c1c93b79bceb7de73feed5d752
jenkins-bot [Sat, 10 Dec 2016 01:44:08 +0000 (01:44 +0000)]
Merge "Fix links problem on Special:Search"
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
jenkins-bot [Fri, 9 Dec 2016 22:59:17 +0000 (22:59 +0000)]
Merge "Special:RC 'hidemajor' filter"
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"
Translation updater bot [Fri, 9 Dec 2016 21:44:01 +0000 (22:44 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ic25484ba66bfe1291c39d7e12ed08fa7d8b633c6
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
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
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
jenkins-bot [Fri, 9 Dec 2016 18:51:16 +0000 (18:51 +0000)]
Merge "ApiQueryUsers: Add ability to search by user ID"
jenkins-bot [Fri, 9 Dec 2016 17:27:42 +0000 (17:27 +0000)]
Merge "Revert "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
jenkins-bot [Fri, 9 Dec 2016 16:43:33 +0000 (16:43 +0000)]
Merge "Remove 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
jenkins-bot [Fri, 9 Dec 2016 00:51:52 +0000 (00:51 +0000)]
Merge "Use the phan exit code directly"
jenkins-bot [Fri, 9 Dec 2016 00:49:05 +0000 (00:49 +0000)]
Merge "Use 1 processes instead of 4 for phan"
Erik Bernhardson [Thu, 8 Dec 2016 22:41:32 +0000 (14:41 -0800)]
Use the phan exit code directly
Change-Id: Ic99e334576e350d11c57ac4b74085c99313401c4
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
jenkins-bot [Thu, 8 Dec 2016 22:09:02 +0000 (22:09 +0000)]
Merge "API: More i18n cleanup"
jenkins-bot [Thu, 8 Dec 2016 21:31:58 +0000 (21:31 +0000)]
Merge "HtmlArmor: Document that null is an acceptable value"
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
Translation updater bot [Thu, 8 Dec 2016 21:05:13 +0000 (22:05 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Iba22019e88d103bf2c7b98309e57e24be3328dff
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
jenkins-bot [Thu, 8 Dec 2016 19:51:51 +0000 (19:51 +0000)]
Merge "Let mw.Api recognize errorformat!=bc"
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
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
jenkins-bot [Thu, 8 Dec 2016 18:34:27 +0000 (18:34 +0000)]
Merge "Replace Linker::link() usage with LinkRenderer"
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"
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
jenkins-bot [Thu, 8 Dec 2016 10:03:53 +0000 (10:03 +0000)]
Merge "Add configuration for running etsy/phan against core"
jenkins-bot [Thu, 8 Dec 2016 07:26:08 +0000 (07:26 +0000)]
Merge "Chinese Conversion Table Update 2016-7"
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
Translation updater bot [Wed, 7 Dec 2016 21:40:46 +0000 (22:40 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ic36aaa135b8702f13e4dd4400878d8d9cc2146ce
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
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
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
jenkins-bot [Wed, 7 Dec 2016 08:58:41 +0000 (08:58 +0000)]
Merge "ApiRevisionDelete: Use standard formatting for errors and warnings"
jenkins-bot [Wed, 7 Dec 2016 06:55:33 +0000 (06:55 +0000)]
Merge "Replace 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
jenkins-bot [Wed, 7 Dec 2016 05:51:21 +0000 (05:51 +0000)]
Merge "Replace Linker::link() with LinkRenderer in all revisiondelete pages"
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
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
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
jenkins-bot [Wed, 7 Dec 2016 01:07:58 +0000 (01:07 +0000)]
Merge "RC/Watchlist: Filter out parameters that cannot be displayed"
jenkins-bot [Wed, 7 Dec 2016 00:39:16 +0000 (00:39 +0000)]
Merge "Cleanup static analysis errors"
jenkins-bot [Wed, 7 Dec 2016 00:24:18 +0000 (00:24 +0000)]
Merge "Update OOjs UI to v0.18.2"
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
jenkins-bot [Tue, 6 Dec 2016 23:52:47 +0000 (23:52 +0000)]
Merge "profiler: Support tideways for PHP7 profiling"
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
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
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
jenkins-bot [Tue, 6 Dec 2016 21:57:32 +0000 (21:57 +0000)]
Merge "Special:RC tests: ignore order when asserting conditions"
jenkins-bot [Tue, 6 Dec 2016 21:41:18 +0000 (21:41 +0000)]
Merge "MapCacheLRU: Properly handle bogus cache keys"
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
Brad Jorsch [Tue, 6 Dec 2016 21:17:23 +0000 (16:17 -0500)]
ApiRevisionDelete: Use standard formatting for errors and warnings
Change-Id: I8e88c356ac81572d866fbdd8f15e7a8dd4384c06
Translation updater bot [Tue, 6 Dec 2016 21:13:44 +0000 (22:13 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I57e6697462f86b9ef684d82e739781b04dbfa250
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
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
jenkins-bot [Tue, 6 Dec 2016 19:57:45 +0000 (19:57 +0000)]
Merge "API: i18n for warnings and errors"
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
jenkins-bot [Tue, 6 Dec 2016 19:07:01 +0000 (19:07 +0000)]
Merge "registration: Provide credits information to callbacks"
jenkins-bot [Tue, 6 Dec 2016 19:06:57 +0000 (19:06 +0000)]
Merge "registration: Refactor validation logic to avoid duplication"
jenkins-bot [Tue, 6 Dec 2016 18:14:41 +0000 (18:14 +0000)]
Merge "Convert Special:DeletedContributions to use OOUI."
jenkins-bot [Tue, 6 Dec 2016 18:09:31 +0000 (18:09 +0000)]
Merge "registration: Don't let extensions load late"
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
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
Translation updater bot [Mon, 5 Dec 2016 21:19:57 +0000 (22:19 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I74a8995410784d438e0168919c5216aacadfc723
jenkins-bot [Mon, 5 Dec 2016 19:57:21 +0000 (19:57 +0000)]
Merge "phpunit: Make getResourceLoaderContext() more extendable"
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