lhc/web/wiklou.git
7 years agoMerge "Add GENDER support to protection null revision edit summary"
jenkins-bot [Fri, 4 Nov 2016 06:13:20 +0000 (06:13 +0000)]
Merge "Add GENDER support to protection null revision edit summary"

7 years agoAdd GENDER support to protection null revision edit summary
This, that and the other [Fri, 11 Dec 2015 08:26:05 +0000 (19:26 +1100)]
Add GENDER support to protection null revision edit summary

The edit summary for protection null revisions are still messy
"Lego messages", but now with GENDER support.

The message documentation (qqq) for "protectedarticle",
"modifiedarticleprotection", and "unprotectedarticle" was incorrect, but
now matches the fact that these are IRC-only messages.

Bug: T121091
Change-Id: Ia1151fb5aab8334d3351588531fcdac499fcc486

7 years agoMerge "Disable magic links by default"
jenkins-bot [Fri, 4 Nov 2016 02:38:28 +0000 (02:38 +0000)]
Merge "Disable magic links by default"

7 years agoMerge "Don't cache replacement patterns in wfEscapeWikitext() during tests"
jenkins-bot [Fri, 4 Nov 2016 02:37:12 +0000 (02:37 +0000)]
Merge "Don't cache replacement patterns in wfEscapeWikitext() during tests"

7 years agoMerge "Add tracking categories when magic links are used"
jenkins-bot [Fri, 4 Nov 2016 02:29:54 +0000 (02:29 +0000)]
Merge "Add tracking categories when magic links are used"

7 years agoDisable magic links by default
Kunal Mehta [Thu, 3 Nov 2016 18:16:00 +0000 (11:16 -0700)]
Disable magic links by default

And add release notes for all the magic links changes in 1.28.

Bug: T147536
Change-Id: I66b2c4424b17cc86bbd7339de588f1c00cd2f18d

7 years agoDon't cache replacement patterns in wfEscapeWikitext() during tests
Kunal Mehta [Thu, 3 Nov 2016 18:50:44 +0000 (11:50 -0700)]
Don't cache replacement patterns in wfEscapeWikitext() during tests

Parser tests depend upon being able to change the value of
$wgEnableMagicLinks at runtime, so skip caching the replacement patterns
while parser tests or phpunit tests are being run.

Change-Id: Ic9fe4fe898aa353bdefa2bf8207b77d2ac14887f

7 years agoAdd tracking categories when magic links are used
Kunal Mehta [Thu, 3 Nov 2016 18:06:20 +0000 (11:06 -0700)]
Add tracking categories when magic links are used

This adds 3 tracking categories, one for each type of magic link (ISBN,
RFC, PMID). This will allow wikis to gauge usage and identify pages that
need migrating.

These will only show up if the respective magic links are enabled via
$wgEnableMagicLinks.

Change-Id: Ic483f0c493112bf6373e1b37961e1241c20c3582

7 years agoinstaller: Make help link in sidebar same as default Main Page one
MtDu [Thu, 3 Nov 2016 23:47:15 +0000 (18:47 -0500)]
installer: Make help link in sidebar same as default Main Page one

Point to www.mediawiki.org instead of meta.wikimedia.org.

Bug: T148004
Change-Id: I1bc8a84773e69529aed719ce36f1196f12b56226

7 years agoMake LBFactorySingle external LB methods throw exceptions
Aaron Schulz [Thu, 3 Nov 2016 21:01:08 +0000 (14:01 -0700)]
Make LBFactorySingle external LB methods throw exceptions

There are no external clusters with this LB factory class,
so calling these methods makes no sense.

Change-Id: I63a9c6c76ba036980cfaab3ef03574295e46c6bf

7 years agoMerge "Break long lines in OutputPage::sendCacheControl()"
jenkins-bot [Thu, 3 Nov 2016 21:56:16 +0000 (21:56 +0000)]
Merge "Break long lines in OutputPage::sendCacheControl()"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 3 Nov 2016 21:27:38 +0000 (22:27 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia3c53700406b070077e3f2381c7735d54e545c9b

7 years agoBreak long lines in OutputPage::sendCacheControl()
Aaron Schulz [Thu, 3 Nov 2016 20:06:59 +0000 (13:06 -0700)]
Break long lines in OutputPage::sendCacheControl()

Change-Id: I72d494f4c97aef9d500bb5d7b36dad30a44f501a

7 years agoMerge "htmlform: Tighten CSS rules for .mw-htmlform-flatlist"
jenkins-bot [Thu, 3 Nov 2016 19:25:41 +0000 (19:25 +0000)]
Merge "htmlform: Tighten CSS rules for .mw-htmlform-flatlist"

7 years agoMerge "Don't fatal on invalid timestamps"
jenkins-bot [Thu, 3 Nov 2016 19:21:54 +0000 (19:21 +0000)]
Merge "Don't fatal on invalid timestamps"

7 years agoMerge "Improve getUrlDomainDistance() return values"
jenkins-bot [Thu, 3 Nov 2016 19:16:53 +0000 (19:16 +0000)]
Merge "Improve getUrlDomainDistance() return values"

7 years agoMerge "DatabaseMysqlBase visibility cleanups"
jenkins-bot [Thu, 3 Nov 2016 19:16:06 +0000 (19:16 +0000)]
Merge "DatabaseMysqlBase visibility cleanups"

7 years agoDon't fatal on invalid timestamps
Kunal Mehta [Thu, 27 Oct 2016 19:06:30 +0000 (12:06 -0700)]
Don't fatal on invalid timestamps

Database::timestamp() intentionally lets errors bubble up, so catch
invalid user-provided timestamps in
ReverseChronologicalPage::getDateCond(), and avoid using an offset in
that case.

Bug: T149257
Change-Id: Ida85eb44b66e8a0166e7f68a101ff094e04b1c8e

7 years agohtmlform: Tighten CSS rules for .mw-htmlform-flatlist
Bartosz Dziewoński [Tue, 18 Oct 2016 22:45:56 +0000 (15:45 -0700)]
htmlform: Tighten CSS rules for .mw-htmlform-flatlist

They accidentally applied to a MenuOptionWidget in autocompletion dropdowns, too.

Change-Id: I54d0988e78b65e0fb922ef353626453cce56e474

7 years agoAdd hooks for WatchedItemQueryService / ApiQueryWatchlist
Brad Jorsch [Tue, 11 Oct 2016 20:17:22 +0000 (16:17 -0400)]
Add hooks for WatchedItemQueryService / ApiQueryWatchlist

In order for an extension to add data to ApiQueryWatchlist, we need to
provide a way to allow it to manipulate the database query made by
WatchedItemQueryService. We also need some hooks in ApiQueryWatchlist to
handle the marshalling of data to and from WatchedItemQueryService.

To better handle hooking, this also moves some of the continuation logic
from ApiQueryWatchlist to WatchedItemQueryService.

Bug: T147939
Change-Id: Ie45376980f92da964a579887b28175c00fd8f57e

7 years agoDatabaseMysqlBase visibility cleanups
Aaron Schulz [Thu, 3 Nov 2016 05:24:51 +0000 (22:24 -0700)]
DatabaseMysqlBase visibility cleanups

Change-Id: I015fc37a5525a31fb779ba841a1966675ebc494d

7 years agoImprove getUrlDomainDistance() return values
Aaron Schulz [Thu, 3 Nov 2016 04:56:00 +0000 (21:56 -0700)]
Improve getUrlDomainDistance() return values

This change is just cosmetic given the caller it has.

Change-Id: I591f92e56d9f5574d032dda380bc03b491b10738

7 years agoMerge "resourceloader: Optimise startup by merging regexes"
jenkins-bot [Thu, 3 Nov 2016 00:29:58 +0000 (00:29 +0000)]
Merge "resourceloader: Optimise startup by merging regexes"

7 years agoMerge "Use Database::addQuotes in Special:WantedPages/UnwatchedPages"
jenkins-bot [Wed, 2 Nov 2016 23:37:18 +0000 (23:37 +0000)]
Merge "Use Database::addQuotes in Special:WantedPages/UnwatchedPages"

7 years agoUse Database::addQuotes in Special:WantedPages/UnwatchedPages
umherirrender [Sat, 29 Oct 2016 18:50:57 +0000 (20:50 +0200)]
Use Database::addQuotes in Special:WantedPages/UnwatchedPages

Database::addQuotes uses the correct quotes/apos, hopefully together
with numeric values

Change-Id: Ia3aba8cabf3ae877f56185e5724dca204a19f73a

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Wed, 2 Nov 2016 21:19:12 +0000 (21:19 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 2 Nov 2016 21:10:26 +0000 (22:10 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic0c342a71a911ed1c68e48212769d6c462ed946f

7 years agoMerge "Follow-up Id0021594: Remove extra code for redlink suggestions"
jenkins-bot [Wed, 2 Nov 2016 21:09:32 +0000 (21:09 +0000)]
Merge "Follow-up Id0021594: Remove extra code for redlink suggestions"

7 years agoMerge "Revert "Parser functions now format numbers according to page language""
jenkins-bot [Wed, 2 Nov 2016 20:46:51 +0000 (20:46 +0000)]
Merge "Revert "Parser functions now format numbers according to page language""

7 years agoMerge "Restore default $defaultDateFormat in sk (Slovak)"
jenkins-bot [Wed, 2 Nov 2016 20:46:48 +0000 (20:46 +0000)]
Merge "Restore default $defaultDateFormat in sk (Slovak)"

7 years agoMerge "mw.loader.store: Count modules which fail to execute, too"
jenkins-bot [Wed, 2 Nov 2016 20:26:39 +0000 (20:26 +0000)]
Merge "mw.loader.store: Count modules which fail to execute, too"

7 years agoRevert "Parser functions now format numbers according to page language"
Legoktm [Wed, 2 Nov 2016 20:22:32 +0000 (20:22 +0000)]
Revert "Parser functions now format numbers according to page language"

This reverts commit 4290f686c07265d40718fc3358f196de41bbde57.

Bug: T149840
Change-Id: I7e2dfe14813b510a1a974ae0007390bb2879f804

7 years agoRestore default $defaultDateFormat in sk (Slovak)
Federico Leva [Tue, 1 Nov 2016 09:28:45 +0000 (10:28 +0100)]
Restore default $defaultDateFormat in sk (Slovak)

Follow-up to b321f48d80db27ecff3d9d88c6881c63f27b86c0
As spotted in https://sk.wikipedia.org/?diff=6358764 , cs has
$defaultDateFormat = 'ČSN basic dt' which is not defined in sk.
Restore the "dmy" default which sk used to inherit from en and
which is defined below.

Change-Id: I1c7e7f71587c95090f3bb0bfe58eb013485970bd

7 years agomw.loader.store: Count modules which fail to execute, too
Ori Livneh [Wed, 2 Nov 2016 19:49:22 +0000 (15:49 -0400)]
mw.loader.store: Count modules which fail to execute, too

"Failed" will probably always be either zero or one, because it is
unlikely the asyncEval error callback can ever be called more than once.
But the stats will let us verify this, and will give us an indication of
how often errors happen in general.

Change-Id: I6dea28d84bbca0f02ad8c5bf9a8e9d976622d815

7 years agoMerge "CSSMin: Correctly avoid fallbacks when embedding SVG files"
jenkins-bot [Wed, 2 Nov 2016 18:33:17 +0000 (18:33 +0000)]
Merge "CSSMin: Correctly avoid fallbacks when embedding SVG files"

7 years agoMerge "SpecialActiveUsers: Change checkboxes to dropdown"
jenkins-bot [Wed, 2 Nov 2016 16:50:28 +0000 (16:50 +0000)]
Merge "SpecialActiveUsers: Change checkboxes to dropdown"

7 years agoSpecialActiveUsers: Change checkboxes to dropdown
Sethakill [Wed, 11 May 2016 13:42:12 +0000 (15:42 +0200)]
SpecialActiveUsers: Change checkboxes to dropdown

Moved form to new function and
fixed text about cached version.

Bug: T116354
Change-Id: I29ae63472536f99f7f9546f30d86e7bd324d3094

7 years agoRevert "EditPage: Show EditFilterMergedContent hook errors in an errorbox"
Paladox [Sat, 29 Oct 2016 21:51:27 +0000 (21:51 +0000)]
Revert "EditPage: Show EditFilterMergedContent hook errors in an errorbox"

This reverts commit a02a7ff8eab9d589d77c03d4b4c58fc4a05e65c8.

Bug: T149473
Change-Id: I35a650c6ec478542351824e8ae8a8d8354ffa50f

7 years agoMerge "Revert "Gallery: Use intrinsic width for gallery to center caption""
jenkins-bot [Wed, 2 Nov 2016 12:04:50 +0000 (12:04 +0000)]
Merge "Revert "Gallery: Use intrinsic width for gallery to center caption""

7 years agoRevert "Gallery: Use intrinsic width for gallery to center caption"
Bartosz Dziewoński [Wed, 2 Nov 2016 11:52:24 +0000 (11:52 +0000)]
Revert "Gallery: Use intrinsic width for gallery to center caption"

Resulted in unforeseen changes to galleries using mode=packed
(and other modes other than traditional).

This reverts commit e6dd624baeca16efe462e3938969a72c9ef4ed1e.

Bug: T149412
Change-Id: I57dabbd3b5c0e52f3fad1b2144764bcc2fdecda0

7 years agoMerge "Check MW version requires before manifest_version"
jenkins-bot [Wed, 2 Nov 2016 10:22:08 +0000 (10:22 +0000)]
Merge "Check MW version requires before manifest_version"

7 years agoMerge "Add PHP DateInputWidget"
jenkins-bot [Wed, 2 Nov 2016 10:09:51 +0000 (10:09 +0000)]
Merge "Add PHP DateInputWidget"

7 years agoCSSMin: Correctly avoid fallbacks when embedding SVG files
Bartosz Dziewoński [Wed, 2 Nov 2016 09:25:40 +0000 (10:25 +0100)]
CSSMin: Correctly avoid fallbacks when embedding SVG files

The check for file existence before checking its MIME type was
building the path incorrectly, causing this piece of code to always
think the file does not exist. (The code to actually embed the file
was correct.)

This was not caught by the tests before of a bug in the test code,
which cancelled out this one.

Bug: T100958
Change-Id: I4469079f41d48052d0a02f98bb1ed02407abd54c

7 years agomediawiki.util: Fix replacement of $ signs in mw.util.getUrl
This, that and the other [Wed, 2 Nov 2016 03:31:08 +0000 (14:31 +1100)]
mediawiki.util: Fix replacement of $ signs in mw.util.getUrl

Bug: T149767
Change-Id: I91c1afa1f93966d1f01793d124fe8f2ae3dab0cf

7 years agoWatchedItemStore: Update process cache when adding items
Timo Tijhof [Wed, 2 Nov 2016 00:00:07 +0000 (00:00 +0000)]
WatchedItemStore: Update process cache when adding items

This way, when submitting POST to action=watch, the response will
not show "Unwatched" in the navigation 'content action' tabs.

This was previously the case on any wiki installation that has
more than 1 database as the skin would call User::isWatched(),
which would query stale data from a slave.

This doesn't yet account for the reverse use case (removing from
watchlist). That's to be addressed in a later commit.

Bug: T28292
Change-Id: Ie4b69c985815a77b70692db0c4dbf52e1a6a018d

7 years agoCheck MW version requires before manifest_version
Reedy [Tue, 1 Nov 2016 23:03:13 +0000 (23:03 +0000)]
Check MW version requires before manifest_version

Bug: T149751
Change-Id: I914be4da431dcd613bdf2d1fd5ba9f28cf5b936b

7 years agoAdd PHP DateInputWidget
Geoffrey Mon [Tue, 18 Oct 2016 15:58:06 +0000 (11:58 -0400)]
Add PHP DateInputWidget

Bug: T120733
Change-Id: I8f80e27304a916bba16ed255c8e78073f9da3813

7 years agoMerge "Don't parse <nowiki><span class="error"></nowiki>"
jenkins-bot [Tue, 1 Nov 2016 21:27:36 +0000 (21:27 +0000)]
Merge "Don't parse <nowiki><span class="error"></nowiki>"

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

Change-Id: I21d3b38d7ec6af6e2a8e6baa6092a6810eab1820

7 years agoMerge "DBError expects IDatabase|null as its first argument"
jenkins-bot [Tue, 1 Nov 2016 19:22:27 +0000 (19:22 +0000)]
Merge "DBError expects IDatabase|null as its first argument"

7 years agoMerge "Parser test file editor"
jenkins-bot [Tue, 1 Nov 2016 16:43:23 +0000 (16:43 +0000)]
Merge "Parser test file editor"

7 years agoDBError expects IDatabase|null as its first argument
Stephane Bisson [Tue, 1 Nov 2016 14:51:13 +0000 (10:51 -0400)]
DBError expects IDatabase|null as its first argument

I came across LBFactory.php:357 while testing my
master/replica db setup. It was not configured correctly
and I got "Argument 1 passed to DBExpectedError::__construct()
must implement interface IDatabase, string given" instead
of the actual error.

Change-Id: I949e1803f84459f8bb83e957a88d1e927cad16f7

7 years agoMerge "Document diff/DifferenceEngine.php function"
jenkins-bot [Tue, 1 Nov 2016 04:47:29 +0000 (04:47 +0000)]
Merge "Document diff/DifferenceEngine.php function"

7 years agoDon't parse <nowiki><span class="error"></nowiki>
Brad Jorsch [Mon, 31 Oct 2016 20:37:26 +0000 (16:37 -0400)]
Don't parse <nowiki><span class="error"></nowiki>

Which means we can't check if a parser limit was exceeded while trying
to expand the content of a tag, but that's probably not a huge loss.
It'll just result in potentially strange output rather than an exception.

Bug: T149622
Change-Id: I7910dfa0f61b1cc9168c7ed1498b2bda27c47f0e

7 years agoFollow-up Id0021594: Remove extra code for redlink suggestions
Alex Monk [Fri, 28 Oct 2016 00:29:57 +0000 (01:29 +0100)]
Follow-up Id0021594: Remove extra code for redlink suggestions

We do a second query now instead which handles this by itself.

Move the description stuff to be generic for all redlinks

Bug: T149130
Change-Id: Iddc542d2aa02fd14a88014c78bd5a18e1f39f37e

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 31 Oct 2016 21:04:13 +0000 (22:04 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3f98e468088f53f688b357ed1ebf7a36c0df0f0b

7 years agoMerge "Rename JobQueueDB::getSlaveDB() to getReplicaDB()"
jenkins-bot [Mon, 31 Oct 2016 20:33:31 +0000 (20:33 +0000)]
Merge "Rename JobQueueDB::getSlaveDB() to getReplicaDB()"

7 years agoAPI: Error if sensitive AuthManager parameters are in the query string
Brad Jorsch [Mon, 31 Oct 2016 17:41:17 +0000 (13:41 -0400)]
API: Error if sensitive AuthManager parameters are in the query string

There was only 1 hit in the feature usage log in the past 30 days for
this code path, so this should be good to go.

ApiLogin, on the other hand, received 27048 hits over the same time
period. So let's not do that one just yet.

Change-Id: I1ae3b928fda9ddc94c8182155637920713dd404d

7 years agoMerge "Allow empty href in SVGs"
jenkins-bot [Mon, 31 Oct 2016 14:32:39 +0000 (14:32 +0000)]
Merge "Allow empty href in SVGs"

7 years agoRemove spaces after cast operators
Sam Wilson [Mon, 31 Oct 2016 04:38:12 +0000 (12:38 +0800)]
Remove spaces after cast operators

This fixes the outstanding mis-spaced cast operators to bring them
into line with the coding standards on mediawiki.org (and with the
more common usage within this codebase).

Bug: T149545
Change-Id: Ib7bcf95bbee83d20c05f6d621ce7b4e1fb58a347

7 years agoAllow empty href in SVGs
Mark Holmquist [Mon, 31 Oct 2016 13:21:38 +0000 (08:21 -0500)]
Allow empty href in SVGs

bawolff is right, this shouldn't harm anything.

Bug: T149549
Change-Id: I377efdee7478940154ef5ec921bd0c8f7ec0c110

7 years agoMerge "FormatMetadata: Do not format 'UserComment' as a number"
jenkins-bot [Mon, 31 Oct 2016 13:01:28 +0000 (13:01 +0000)]
Merge "FormatMetadata: Do not format 'UserComment' as a number"

7 years agoFormatMetadata: Do not format 'UserComment' as a number
Bartosz Dziewoński [Mon, 31 Oct 2016 12:51:12 +0000 (13:51 +0100)]
FormatMetadata: Do not format 'UserComment' as a number

It's a freeform text field.

Change-Id: Ic3150f48c2e38fa26728bc22017b992d8ddfd152

7 years agoMerge "Don't show warning header for non-standard workflows on login-continue"
jenkins-bot [Mon, 31 Oct 2016 07:20:43 +0000 (07:20 +0000)]
Merge "Don't show warning header for non-standard workflows on login-continue"

7 years agoMerge "Add firstLetter data for ~50 additional languages"
jenkins-bot [Mon, 31 Oct 2016 07:01:33 +0000 (07:01 +0000)]
Merge "Add firstLetter data for ~50 additional languages"

7 years agoDocument diff/DifferenceEngine.php function
Yuri Astrakhan [Mon, 31 Oct 2016 00:26:08 +0000 (20:26 -0400)]
Document diff/DifferenceEngine.php function

Change-Id: I999824d8ce569de93fe4c9a889edea582d07611c

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 30 Oct 2016 21:08:27 +0000 (22:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I695ddf72027c55d160192f0ee4e88d6738a13fa6

7 years agoMerge "Make determineCoreSchema a public function again in DatabasePostgres"
jenkins-bot [Sat, 29 Oct 2016 22:28:38 +0000 (22:28 +0000)]
Merge "Make determineCoreSchema a public function again in DatabasePostgres"

7 years agoMake determineCoreSchema a public function again in DatabasePostgres
Paladox [Sat, 29 Oct 2016 22:09:52 +0000 (23:09 +0100)]
Make determineCoreSchema a public function again in DatabasePostgres

It was changed to a private function today, but it is called in
PostgresInstaller so it is causing this error

PHP Fatal error:  Call to private method
DatabasePostgres::determineCoreSchema() from context 'PostgresInstaller'
in /home/travis/build/paladox/mw/includes/installer/PostgresInstaller.php
on line 515

Caused by I2a067ca89a03f9ebf3f70a4f36ddae92e5b1e468

Change-Id: Ifac5a5c7dfeceeb8c7827d6d70e757633df77ca5

7 years agoMerge "Move LinkBatch operations for QueryPage to a helper function"
jenkins-bot [Sat, 29 Oct 2016 21:28:39 +0000 (21:28 +0000)]
Merge "Move LinkBatch operations for QueryPage to a helper function"

7 years agoMove LinkBatch operations for QueryPage to a helper function
Florian Schmidt [Sat, 29 Oct 2016 20:46:17 +0000 (22:46 +0200)]
Move LinkBatch operations for QueryPage to a helper function

This is easier to maintain as duplicated code everywhere.

This change also adds LinkBatch operations to specialpages, that does
not had it so far, but where it's useful.

Change-Id: I4936ecfb2be3a7709d99570c0561ab0cc9cd754f

7 years agoAdd missing Database::timestamp() calls
Aaron Schulz [Sat, 29 Oct 2016 16:16:39 +0000 (09:16 -0700)]
Add missing Database::timestamp() calls

This was broken for Postgres installations

Change-Id: I0c1d442e3cf1d9a4d5359e7a8f8fd02a31d1ac65

7 years agoMerge "Fix missing commit() flag in postgres savepoint class"
jenkins-bot [Sat, 29 Oct 2016 20:43:16 +0000 (20:43 +0000)]
Merge "Fix missing commit() flag in postgres savepoint class"

7 years agoMerge "Add LinkBatch to Special:UnwatchedPages"
jenkins-bot [Sat, 29 Oct 2016 20:28:09 +0000 (20:28 +0000)]
Merge "Add LinkBatch to Special:UnwatchedPages"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 29 Oct 2016 20:05:39 +0000 (22:05 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia735ef197567ad5151b508bc3b2851610f9b19a4

7 years agoAdd LinkBatch to Special:UnwatchedPages
umherirrender [Sat, 29 Oct 2016 18:26:10 +0000 (20:26 +0200)]
Add LinkBatch to Special:UnwatchedPages

Get all the information for blue links in one query.

Change-Id: I18cbaf69c5f75e00e48e27d4b5e7220f51c31808

7 years agoMerge "Make LBFactoryTest.php pass for sqlite"
jenkins-bot [Sat, 29 Oct 2016 16:55:23 +0000 (16:55 +0000)]
Merge "Make LBFactoryTest.php pass for sqlite"

7 years agoFix missing commit() flag in postgres savepoint class
Aaron Schulz [Sat, 29 Oct 2016 16:14:15 +0000 (09:14 -0700)]
Fix missing commit() flag in postgres savepoint class

Previously, the transaction was left dangling, causing massive
unit failure.

Change-Id: I8fb6e69b44ff0ceb0cf7c4fb45f204e140472406

7 years agoDon't show warning header for non-standard workflows on login-continue
Florian Schmidt [Wed, 21 Sep 2016 20:45:32 +0000 (22:45 +0200)]
Don't show warning header for non-standard workflows on login-continue

When a user needs/wants to login again (reauthentication or user account switch),
the Login special page shows a header to explain what happened ("already logged
in" or "need to re-authenticate"). For now, the form also displays this header
for a continued login workflow (e.g. when the user needs to enter secondary auth-
entication data, like a one time password). This is misleading, as the user already
knows what and why he has to login (again). Other error/warning messages are maybe
not as visible as they should be.

This change omits the header message for the login-continue auth action.

Bug: T146317
Change-Id: I2115bbe7965e8d0326f71872a4d33767dd0f956b

7 years agoAdd firstLetter data for ~50 additional languages
Brian Wolff [Sat, 29 Oct 2016 11:55:27 +0000 (11:55 +0000)]
Add firstLetter data for ~50 additional languages

Based on CLDR 29 data files.

This did the relatively easy languages in CLDR 29 (Which is most
of them). I skipped languages with complicated tailoring files.

Change-Id: I8367604f7d3a1cdef9cb4e15813893c8cbfff1ff

7 years agoRename JobQueueDB::getSlaveDB() to getReplicaDB()
Aaron Schulz [Sat, 29 Oct 2016 07:04:39 +0000 (00:04 -0700)]
Rename JobQueueDB::getSlaveDB() to getReplicaDB()

Change-Id: I7a88c4876e76836c92cc0b45b4e72124a087121c

7 years agoMake LBFactoryTest.php pass for sqlite
Aaron Schulz [Thu, 27 Oct 2016 05:44:08 +0000 (22:44 -0700)]
Make LBFactoryTest.php pass for sqlite

Change-Id: I4fe929e82218231f6c8afa64da8c0ccb42d2c362

7 years agoVarious small cleanups to DatabasePostgres
Aaron Schulz [Sat, 29 Oct 2016 05:14:26 +0000 (22:14 -0700)]
Various small cleanups to DatabasePostgres

* Add missing method visibilites
* Removed redundant doc blocks
* Use empty string for mSchema for consistency with
  the base class

Change-Id: I2a067ca89a03f9ebf3f70a4f36ddae92e5b1e468

7 years agoMerge "Postgres updater fixes to make update.php able to run"
jenkins-bot [Sat, 29 Oct 2016 01:31:01 +0000 (01:31 +0000)]
Merge "Postgres updater fixes to make update.php able to run"

7 years agoPostgres updater fixes to make update.php able to run
Aaron Schulz [Tue, 25 Oct 2016 18:56:41 +0000 (11:56 -0700)]
Postgres updater fixes to make update.php able to run

* Remove redundant schema prefix from relname=x query. The
  schema filtering is already done via the JOIN. The relname
  portion is just the table name not <schema>.<table name>.
* Avoid explicit table schema qualification and rely on the
  search path, as MW 1.27 did. Previously it only used the
  global $wgDBschema var to pass to determineCoreSchema()
  instead of keeping it in mSchema.
* Clean up some code duplication in Database::tableName() and
  make the code comments clearer.
* Make DatabasePostgres::tableName() use parent::tableName()
  instead of a method that just wraps this method. The intent
  seems clearer this way.
* Remove unused return value in
  PostgresUpdater::rebuildTextSearch().

Bug: T148628
Change-Id: Id11d9576b7c2fdad22ff7f90727c12997217a632

7 years agoresourceloader: Optimise startup by merging regexes
Timo Tijhof [Fri, 28 Oct 2016 22:57:44 +0000 (23:57 +0100)]
resourceloader: Optimise startup by merging regexes

Merge webOS, misc and Google Glass regexes.

* Add various test cases for PlayStation.
* Add tests for unrelated user agent matching "Glass".

Change-Id: Ifb0944d190f230bb36197b22cf3099c187dad091

7 years agoMerge "Make updateCategoryCounts() have better lag checks"
jenkins-bot [Fri, 28 Oct 2016 21:28:40 +0000 (21:28 +0000)]
Merge "Make updateCategoryCounts() have better lag checks"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 28 Oct 2016 20:03:35 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic7e8cf96d2bd8ca7a583824eea1ea4a3ed6429ac

7 years agoMerge "Add Parser to MediaWikiServices"
jenkins-bot [Fri, 28 Oct 2016 17:53:30 +0000 (17:53 +0000)]
Merge "Add Parser to MediaWikiServices"

7 years agoMerge "Introduce InterwikiLookupAdapter on top of SiteLookup"
jenkins-bot [Fri, 28 Oct 2016 13:25:18 +0000 (13:25 +0000)]
Merge "Introduce InterwikiLookupAdapter on top of SiteLookup"

7 years agoMerge "Pass context to ChangeTags::tagDescription"
jenkins-bot [Fri, 28 Oct 2016 11:31:44 +0000 (11:31 +0000)]
Merge "Pass context to ChangeTags::tagDescription"

7 years agoAdd space between label and selector
Matěj Suchánek [Fri, 28 Oct 2016 08:57:52 +0000 (08:57 +0000)]
Add space between label and selector

Change-Id: Id5c8c857a2a1339b0ce626bac98f0869e27d5a75

7 years agoParser test file editor
Tim Starling [Wed, 28 Sep 2016 06:32:17 +0000 (16:32 +1000)]
Parser test file editor

Add editTests.php, which provides an interactive interface to the
parser tests, with semi-automated editing.

Change-Id: I1a20d007ba4627d562a16c03849bbad7aec0e516

7 years agoMerge "PHPSessionHandler: Workaround PHP5 bug"
jenkins-bot [Fri, 28 Oct 2016 01:04:54 +0000 (01:04 +0000)]
Merge "PHPSessionHandler: Workaround PHP5 bug"

7 years agoMerge "Change .tocnumber to use grey text for section numbers in Table of Contents...
jenkins-bot [Thu, 27 Oct 2016 22:51:31 +0000 (22:51 +0000)]
Merge "Change .tocnumber to use grey text for section numbers in Table of Contents boxes"

7 years agoPass context to ChangeTags::tagDescription
cenarium [Wed, 28 Sep 2016 19:39:28 +0000 (21:39 +0200)]
Pass context to ChangeTags::tagDescription

To avoid wfMessage calls.

Change-Id: Icaa984fa8c69ccb38fbfd3e30877a4c572501c28

7 years agoMerge "Refactor rev_delete handling on deletion"
jenkins-bot [Thu, 27 Oct 2016 20:30:10 +0000 (20:30 +0000)]
Merge "Refactor rev_delete handling on deletion"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 27 Oct 2016 20:01:18 +0000 (22:01 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I83ef5fa88f65ec941b87888943273892857d5561

7 years agoRemove tracking category stuff that accidentally slipped into 61adc1e14
Kunal Mehta [Thu, 27 Oct 2016 17:57:20 +0000 (10:57 -0700)]
Remove tracking category stuff that accidentally slipped into 61adc1e14

Bug: T149310
Change-Id: I0a3725a72b1467c57280ae1880935dd5fa54ae9e

7 years agoRefactor rev_delete handling on deletion
umherirrender [Thu, 27 Oct 2016 17:33:14 +0000 (19:33 +0200)]
Refactor rev_delete handling on deletion

Refactoring handling of the rev_delete database field, which is not
needed to select, when the suppress option is set.

Also added a new const, to avoid a comment about that things should be
15 ...

Change-Id: Ia5bcb835172bf6c10e2e872555fc67e91806ebe1