lhc/web/wiklou.git
7 years agomediawiki.special.watchlist: Optimize JavaScript code
Fomafix [Thu, 15 Dec 2016 14:01:49 +0000 (15:01 +0100)]
mediawiki.special.watchlist: Optimize JavaScript code

* Create progress bar not before submit.
* Reenable the disabled reset button after response.
  Currently a reload of the watch list after reset may lead to a disabled
  reset button.
* Reduce indenting by make an early return.
* Add some line breaks for better readability.
* Add some comments.

Follows-up to 9ea1142fad935999ac64e2920321520c1bbbfb61

Change-Id: Ibfafa140172bae55be01383ef7a9899104d46938

7 years agoMerge "Enable supplying inline interwiki results"
jenkins-bot [Thu, 15 Dec 2016 19:22:39 +0000 (19:22 +0000)]
Merge "Enable supplying inline interwiki results"

7 years agoMerge "Set $linktrail for MessagesKu_latn.php"
jenkins-bot [Thu, 15 Dec 2016 13:58:50 +0000 (13:58 +0000)]
Merge "Set $linktrail for MessagesKu_latn.php"

7 years agoMerge "Add CollationFa"
jenkins-bot [Thu, 15 Dec 2016 13:37:56 +0000 (13:37 +0000)]
Merge "Add CollationFa"

7 years agoAdd CollationFa
Amir Sarabadani [Sun, 31 Jul 2016 14:36:49 +0000 (19:06 +0430)]
Add CollationFa

Bug: T139110
Change-Id: Ie15a2ee1c22ff4a1d2b721ed137227fe83dd12ea

7 years agoSet $linktrail for MessagesKu_latn.php
Ghybu [Thu, 15 Dec 2016 01:19:31 +0000 (01:19 +0000)]
Set $linktrail for MessagesKu_latn.php

Bug: T153233
Change-Id: I488129a002a92481412667706dbd2c534aa8d45b

7 years agoMerge "SpecialUserrights: Use session data instead of URL parameter for success"
jenkins-bot [Thu, 15 Dec 2016 10:16:01 +0000 (10:16 +0000)]
Merge "SpecialUserrights: Use session data instead of URL parameter for success"

7 years agoMerge "Fix linking Special:ChangeContentModel from action=info"
jenkins-bot [Thu, 15 Dec 2016 07:46:34 +0000 (07:46 +0000)]
Merge "Fix linking Special:ChangeContentModel from action=info"

7 years agoMerge "SpecialRunJobs: Use wfHttpError to generate error messages"
jenkins-bot [Thu, 15 Dec 2016 06:58:28 +0000 (06:58 +0000)]
Merge "SpecialRunJobs: Use wfHttpError to generate error messages"

7 years agoMerge "Add maintenance/view.php for viewing page contents"
jenkins-bot [Thu, 15 Dec 2016 06:54:13 +0000 (06:54 +0000)]
Merge "Add maintenance/view.php for viewing page contents"

7 years agoSpecialRunJobs: Use wfHttpError to generate error messages
Fomafix [Sat, 24 Sep 2016 18:51:32 +0000 (20:51 +0200)]
SpecialRunJobs: Use wfHttpError to generate error messages

wfHttpError generates HTML so the content fits to the Content-Type.

Bug: T146546
Change-Id: Ia90f22564ecb3807aff3b787242bc74fe1678def

7 years agoRELEASE-NOTES: Fixup for dfb50ab9f3
Timo Tijhof [Thu, 15 Dec 2016 06:16:31 +0000 (22:16 -0800)]
RELEASE-NOTES: Fixup for dfb50ab9f3

Change-Id: Ibe2efcd11c3f97ca343f43168bde278e44537be9

7 years agoMerge "Back off from job types longer for DB read-only errors"
jenkins-bot [Thu, 15 Dec 2016 06:11:22 +0000 (06:11 +0000)]
Merge "Back off from job types longer for DB read-only errors"

7 years agoMerge "Escape return path extra params to php mail()"
jenkins-bot [Thu, 15 Dec 2016 06:05:55 +0000 (06:05 +0000)]
Merge "Escape return path extra params to php mail()"

7 years agoMerge "A full word instead of an acronym for the revid message"
jenkins-bot [Thu, 15 Dec 2016 06:04:50 +0000 (06:04 +0000)]
Merge "A full word instead of an acronym for the revid message"

7 years agoMerge "Always show exceptions of type 'error' in LTR"
jenkins-bot [Thu, 15 Dec 2016 06:02:19 +0000 (06:02 +0000)]
Merge "Always show exceptions of type 'error' in LTR"

7 years agoMake DifferenceEngine's markPatrolledLink and getRevisionHeader public so that hooked...
Jack Phoenix [Fri, 9 Dec 2016 06:59:52 +0000 (08:59 +0200)]
Make DifferenceEngine's markPatrolledLink and getRevisionHeader public so that hooked functions can use them where needed

The said hooks were added to core in
https://gerrit.wikimedia.org/r/#/c/298026/ . One of the many intended use
cases is https://gerrit.wikimedia.org/r/#/c/326074/ which currently fatals
due to these two being protected, and obviously we don't want to lose
functionality when hooking into one (or more) of the aforementioned hooks.

Change-Id: I260c8b57c0bb2af3a6982bd7142b112a4a023391
Depends-On: I02de9069854532faec4c0c1798a10f862e6dfd7c

7 years agoA few more hooks in DifferenceEngine
Jack Phoenix [Thu, 17 Nov 2016 02:14:26 +0000 (04:14 +0200)]
A few more hooks in DifferenceEngine

For mucking with the class member variable mNewContent and optionally
allowing the suppression of the "missing revision" message when revision
data is not found for a requested revision.

Originally implemented as the "GetUserMessagesDiffCurrent" hook (yes,
these three separate hooks in three separate places were essentially the
same) by Wikia for their SiteWideMessages extension.

Change-Id: Ie0c175af2af418d4ed3de28c94df918115312da3

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 14 Dec 2016 20:56:06 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1b8437a0df98dccdd524ef3a0ff8493a98bf59f1

7 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Wed, 14 Dec 2016 19:55:46 +0000 (14:55 -0500)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 73798df0632e10313b82987d0b99e93c73407ca7

Change-Id: Ia0e511311eb05276617cc7bdff72b07347591ca3

7 years agoMerge "Fix parameter type docs"
jenkins-bot [Wed, 14 Dec 2016 19:41:20 +0000 (19:41 +0000)]
Merge "Fix parameter type docs"

7 years agoMerge "Document type of LogEntry::isPatrollable property"
jenkins-bot [Wed, 14 Dec 2016 19:30:11 +0000 (19:30 +0000)]
Merge "Document type of LogEntry::isPatrollable property"

7 years agoMerge "mediawiki.special.apisandbox: Avoid bitwise tricks when checking for integers"
jenkins-bot [Wed, 14 Dec 2016 18:56:19 +0000 (18:56 +0000)]
Merge "mediawiki.special.apisandbox: Avoid bitwise tricks when checking for integers"

7 years agoMerge "Fix small typos in includes/lib/lockManager/LockManager.php"
jenkins-bot [Wed, 14 Dec 2016 17:41:55 +0000 (17:41 +0000)]
Merge "Fix small typos in includes/lib/lockManager/LockManager.php"

7 years agoMerge "Fix assigning void return value to a variable"
jenkins-bot [Wed, 14 Dec 2016 17:09:25 +0000 (17:09 +0000)]
Merge "Fix assigning void return value to a variable"

7 years agoMerge "API: Expose wfIsBadImage() in prop=imageinfo"
jenkins-bot [Wed, 14 Dec 2016 16:07:53 +0000 (16:07 +0000)]
Merge "API: Expose wfIsBadImage() in prop=imageinfo"

7 years agoFix parameter type docs
Leszek Manicki [Wed, 14 Dec 2016 16:01:47 +0000 (17:01 +0100)]
Fix parameter type docs

Changes:
 - uses int instead of number as param and return value type,
 - uses stdClass instead of stdObject
 - fixes ResourceLoaderClientHtml constructor's $target param type:
   it is string|null, not an array (previously misspelled as "aray")
 - changes the type of references to XML parser in XMP lib to resource
   instead of not existing XMLParser

Change-Id: I98c363ebc6658d1f4dcabad97a9a92f3fcd7ea8c

7 years agoDocument type of LogEntry::isPatrollable property
Leszek Manicki [Wed, 14 Dec 2016 15:09:34 +0000 (16:09 +0100)]
Document type of LogEntry::isPatrollable property

Change-Id: I557b92f25f15f57123af329c79ef1752025aedf3

7 years agomediawiki.special.apisandbox: Avoid bitwise tricks when checking for integers
Bartosz Dziewoński [Wed, 14 Dec 2016 13:33:13 +0000 (14:33 +0100)]
mediawiki.special.apisandbox: Avoid bitwise tricks when checking for integers

In addition to being more obvious than `n | 0`, `Math.floor( n )` also
works correctly for numbers outside of 32-bit int range.

Change-Id: I254457500e141c0dd4e28c707fb4a00c1b04c272

7 years agoMerge "mediawiki.page.watch: Avoid dynamic message keys"
jenkins-bot [Wed, 14 Dec 2016 13:33:05 +0000 (13:33 +0000)]
Merge "mediawiki.page.watch: Avoid dynamic message keys"

7 years agomediawiki.page.watch: Avoid dynamic message keys
Bartosz Dziewoński [Wed, 14 Dec 2016 13:17:58 +0000 (14:17 +0100)]
mediawiki.page.watch: Avoid dynamic message keys

Restructure the code to avoid constructing message names by adding
strings together. Makes it easier to find the usages.

Also, simplify a check for odd/even namespace numbers.

Change-Id: I0b6794cc07ed2a600499632d240b71898715c5b0

7 years agoFix assigning void return value to a variable
Leszek Manicki [Wed, 14 Dec 2016 10:07:42 +0000 (11:07 +0100)]
Fix assigning void return value to a variable

Change-Id: I1e675d121938c5b6b7f8165681c645154e3a70d0

7 years agoMerge "Add externallinks.el_index_60 column and indexes"
jenkins-bot [Wed, 14 Dec 2016 09:47:09 +0000 (09:47 +0000)]
Merge "Add externallinks.el_index_60 column and indexes"

7 years agoMerge "Export: Use BCP 47 language code for attribute xml:lang"
jenkins-bot [Wed, 14 Dec 2016 09:21:34 +0000 (09:21 +0000)]
Merge "Export: Use BCP 47 language code for attribute xml:lang"

7 years agoMerge "Message: Fix buggy parameter handling in Message::params()"
jenkins-bot [Wed, 14 Dec 2016 09:03:22 +0000 (09:03 +0000)]
Merge "Message: Fix buggy parameter handling in Message::params()"

7 years agoMerge "The automatic test in MediaWikiTestCase was marked as risky"
jenkins-bot [Wed, 14 Dec 2016 09:03:19 +0000 (09:03 +0000)]
Merge "The automatic test in MediaWikiTestCase was marked as risky"

7 years agoMerge ""Image size limit" text should always read left-to-right"
jenkins-bot [Wed, 14 Dec 2016 09:03:15 +0000 (09:03 +0000)]
Merge ""Image size limit" text should always read left-to-right"

7 years agoFix small typos in includes/lib/lockManager/LockManager.php
Amir Sarabadani [Wed, 14 Dec 2016 09:03:12 +0000 (12:33 +0330)]
Fix small typos in includes/lib/lockManager/LockManager.php

Change-Id: Ib3e3c6e01dc1ad4604b1cf6c95467f25444f38a2

7 years agoMerge "Convert legacy bugs ID to Phabricator tasks ID for Parser class"
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"

7 years agoMerge "Add script to support per-line @suppress annotations in Phan"
jenkins-bot [Wed, 14 Dec 2016 08:51:26 +0000 (08:51 +0000)]
Merge "Add script to support per-line @suppress annotations in Phan"

7 years agoAPI: Expose wfIsBadImage() in prop=imageinfo
Kunal Mehta [Sun, 16 Oct 2016 20:18:05 +0000 (13:18 -0700)]
API: Expose wfIsBadImage() in prop=imageinfo

If iiprop=badfile is set, expose the wfIsBadImage() status as a boolean.
This is mainly intended for use by Parsoid, but could be useful for
other API users too. The context title can be set by using the
badfilecontextitle parameter.

Also be a little more paranoid and make sure wfIsBadImage() always
returns a boolean.

Bug: T148343
Change-Id: I3432ead92b8d2a17de5243285f2760fc39b501ae

7 years agoApply color palette change also to wikitable cell border
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

7 years agoMerge "Add googleweblight to JS blacklist"
jenkins-bot [Wed, 14 Dec 2016 02:17:26 +0000 (02:17 +0000)]
Merge "Add googleweblight to JS blacklist"

7 years agoAdd 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

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

Change-Id: I37f811dd07e6704c47cc159715f2e24ddaf50ab0

7 years agoAdd script to support per-line @suppress annotations in Phan
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

7 years agoExport: Use BCP 47 language code for attribute xml:lang
Fomafix [Fri, 1 Jan 2016 20:31:59 +0000 (20:31 +0000)]
Export: Use BCP 47 language code for attribute xml:lang

The patch changes for example
 https://crh.wikipedia.org/wiki/Mahsus:Export/Ba%C5%9F_Saife
from
 xml:lang="crh-latn"
to
 xml:lang="crh-Latn"

Change-Id: I2fb218fe026c5ffee081fb8aaee7b154a8732bdc

7 years agoAdjust phan to allow for making progress strengthening analysis
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

7 years agoMerge "Block API: Allow blocking/unblocking by user's ID"
jenkins-bot [Tue, 13 Dec 2016 17:00:52 +0000 (17:00 +0000)]
Merge "Block API: Allow blocking/unblocking by user's ID"

7 years agoDo not lose message parameters in UploadFromChunks::verifyChunk()
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

7 years agoBlock API: Allow blocking/unblocking by user's ID
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

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 agoConvert legacy bugs ID to Phabricator tasks ID for Parser class
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

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 agoAlways show exceptions of type 'error' in LTR
Huji Lee [Tue, 13 Dec 2016 01:23:41 +0000 (20:23 -0500)]
Always show exceptions of type 'error' in LTR

Bug: T153027
Change-Id: Iad5b9a01f5b8cdaa2ed94b3ece937acc1f6faa60

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 ago"Image size limit" text should always read left-to-right
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

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 agoThe automatic test in MediaWikiTestCase was marked as risky
Seb35 [Sun, 11 Dec 2016 20:16:11 +0000 (21:16 +0100)]
The automatic test in MediaWikiTestCase was marked as risky

MediaWikiTestCase::testMediaWikiTestCaseParentSetupCalled is
marked as risky when strict code coverage is activated in
PHPUnit (--coverage-html ../../docs/code-coverage
--strict-coverage --debug -v).

This patch adds the annotation @coversNothing to disable
code coverage on this test. As an automatically-added test,
it must adapt to a number of different environments, so it
is not feasible to add the exhaustive list of @uses classes.

Bug: T152923
Change-Id: Ic670ff2d89f1c5df500c0d10b153d4efd013d7f4

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 agoEscape return path extra params to php mail()
Brian Wolff [Sat, 10 Dec 2016 13:03:21 +0000 (13:03 +0000)]
Escape return path extra params to php mail()

PHP only escapes some dangerous shell characters. This is a hardening
measure, as MW's sanitizeEmail routines should also have prevented
evil characters from being in mail addresses in the first place.

Bug: T152717
Change-Id: I3736d612ed40d257ee3dde8e98eb30ccf432670a

7 years agoBack off from job types longer for DB read-only errors
Aaron Schulz [Sat, 10 Dec 2016 07:26:34 +0000 (23:26 -0800)]
Back off from job types longer for DB read-only errors

Such error are likely to persist longer than other random
exceptions. In that case, it is better to avoid burning
through the job retry count.

Change-Id: I6785bd608856f98d21e0b0b05d3899a7081c38e2

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