lhc/web/wiklou.git
5 years agoRemove excessive indenting of parameters on newlines
Reedy [Tue, 6 Nov 2018 10:57:17 +0000 (10:57 +0000)]
Remove excessive indenting of parameters on newlines

Change-Id: I4e214b55b9936be2336a97192f9716b3ea7d6d61

5 years agoMerge "Use commit-and-wait when processing more than updateRowsPerQuery"
jenkins-bot [Tue, 6 Nov 2018 07:20:19 +0000 (07:20 +0000)]
Merge "Use commit-and-wait when processing more than updateRowsPerQuery"

5 years agoMerge "OOUI: Backport I407b0d6fe7b81465054b640d4b5ac4bf352a9901"
jenkins-bot [Mon, 5 Nov 2018 22:09:31 +0000 (22:09 +0000)]
Merge "OOUI: Backport I407b0d6fe7b81465054b640d4b5ac4bf352a9901"

5 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Mon, 5 Nov 2018 22:09:24 +0000 (22:09 +0000)]
Merge "Localisation updates from https://translatewiki.net."

5 years agoMerge "RCFilters: Use `display: flex` for better responsiveness on narrow canvas"
jenkins-bot [Mon, 5 Nov 2018 22:00:15 +0000 (22:00 +0000)]
Merge "RCFilters: Use `display: flex` for better responsiveness on narrow canvas"

5 years agoMerge "Preferences class deprecation, step 2"
jenkins-bot [Mon, 5 Nov 2018 21:36:57 +0000 (21:36 +0000)]
Merge "Preferences class deprecation, step 2"

5 years agoMerge "Preferences::miscPreferences: Hard-deprecate this"
jenkins-bot [Mon, 5 Nov 2018 21:36:15 +0000 (21:36 +0000)]
Merge "Preferences::miscPreferences: Hard-deprecate this"

5 years agoMerge "rdbms: Add @deprecate tag to MaintainableDBConnRef class alias"
jenkins-bot [Mon, 5 Nov 2018 21:36:09 +0000 (21:36 +0000)]
Merge "rdbms: Add @deprecate tag to MaintainableDBConnRef class alias"

5 years agoMerge "Ignore master connections for POST-nonwrite in $wgTrxProfilerLimits"
jenkins-bot [Mon, 5 Nov 2018 21:36:03 +0000 (21:36 +0000)]
Merge "Ignore master connections for POST-nonwrite in $wgTrxProfilerLimits"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 5 Nov 2018 21:05:11 +0000 (22:05 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If17e7446210675a8d91df4e3b6ae80cb35d3afa3

5 years agoUse commit-and-wait when processing more than updateRowsPerQuery
Kosta Harlan [Mon, 5 Nov 2018 20:44:40 +0000 (15:44 -0500)]
Use commit-and-wait when processing more than updateRowsPerQuery

This is needed to avoid triggering "does not have outer scope" errors when
addWatchBatchForUser() is invoked from WatchAction::doWatch() or
WatchAction::doUnwatch() in the context of uploading a file, moving a page, or
other instances when we don't have outer scope.

Bug: T208003
Change-Id: Ice5cb8fced64883476daea5cdac36e47dfcccb61

5 years agoOOUI: Backport I407b0d6fe7b81465054b640d4b5ac4bf352a9901
Bartosz Dziewoński [Mon, 5 Nov 2018 20:12:12 +0000 (21:12 +0100)]
OOUI: Backport I407b0d6fe7b81465054b640d4b5ac4bf352a9901

Bug: T208595
Change-Id: I480067d9897dde25e89058a4da6b065de11b9b31

5 years agoMerge "Sync up with Parsoid parserTests.txt"
jenkins-bot [Mon, 5 Nov 2018 19:46:01 +0000 (19:46 +0000)]
Merge "Sync up with Parsoid parserTests.txt"

5 years agordbms: Add @deprecate tag to MaintainableDBConnRef class alias
Alangi Derick [Sun, 4 Nov 2018 15:50:26 +0000 (16:50 +0100)]
rdbms: Add @deprecate tag to MaintainableDBConnRef class alias

Added as per when this was aliased to ease removal
in the future. It was there since REL_1.29.

Bug: T195576
Change-Id: Ia9061cb9592b39d0f6bac1c96f87c9b0346c105b

5 years agoPreferences class deprecation, step 2
Max Semenik [Thu, 18 Oct 2018 02:31:21 +0000 (19:31 -0700)]
Preferences class deprecation, step 2

Remove all functions that have been hard (or superhard, with exceptions)
deprecated previously. They all had no callers with one exception:
* getTimezoneOptions() is called from 3rd party extention, already broken
  anyway.

Mark the remaining functions for removal in 1.34, where whole class
will become {{db-empty}}. They in principle have no callers already, but
let's follow the proper process and give extension developers a bit more
time.

Change-Id: I0e3e98ed1e6242b6ab7c5f21d71478c392fe89a9

5 years agoPreferences::miscPreferences: Hard-deprecate this
James D. Forrester [Mon, 5 Nov 2018 18:53:02 +0000 (10:53 -0800)]
Preferences::miscPreferences: Hard-deprecate this

Change-Id: Ic1bdf7fc132a1410af1ac24a4c0b8fbad3a6158e

5 years agoMerge "Upstream VE's MWCancelConfirmDialog as AbandonEditDialog"
jenkins-bot [Mon, 5 Nov 2018 18:19:17 +0000 (18:19 +0000)]
Merge "Upstream VE's MWCancelConfirmDialog as AbandonEditDialog"

5 years agoMerge "Hard deprecate OutputPage::parse() and OutputPage::parseInline()"
jenkins-bot [Mon, 5 Nov 2018 18:07:29 +0000 (18:07 +0000)]
Merge "Hard deprecate OutputPage::parse() and OutputPage::parseInline()"

5 years agoMerge "Support multi-content diffs on Special:Undelete"
jenkins-bot [Mon, 5 Nov 2018 17:43:49 +0000 (17:43 +0000)]
Merge "Support multi-content diffs on Special:Undelete"

5 years agoSync up with Parsoid parserTests.txt
Arlo Breault [Mon, 5 Nov 2018 16:56:59 +0000 (11:56 -0500)]
Sync up with Parsoid parserTests.txt

This now aligns with Parsoid commit 68bfb079ab3c62d5cc79b05d496a4bc2966e9553

Change-Id: I54359f91c28ba5d622175dc1caf10a8ed8e91ad3

5 years agoMerge "RCFilters: Fix highlighted rows overlapping legend"
jenkins-bot [Mon, 5 Nov 2018 14:12:35 +0000 (14:12 +0000)]
Merge "RCFilters: Fix highlighted rows overlapping legend"

5 years agoRCFilters: Fix unintendly wrapped ButtonSelectWidget
Volker E [Mon, 5 Nov 2018 04:43:22 +0000 (20:43 -0800)]
RCFilters: Fix unintendly wrapped ButtonSelectWidget

With I2102f6d3397 OOUI's ButtonSelectWidgets behave differently on
limited parent element horizontal space.
We re-introduce `white-space: nowrap` here specfically.

Bug: T208705
Change-Id: I154c2d9c5469a789d365c5ccb771a9fc0cc018a4

5 years agoMerge "installer: Use getUrl() for CSS link in WebInstallerOutput"
jenkins-bot [Sun, 4 Nov 2018 21:19:39 +0000 (21:19 +0000)]
Merge "installer: Use getUrl() for CSS link in WebInstallerOutput"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 4 Nov 2018 21:04:59 +0000 (22:04 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I10ac08f52ac9650f4897dc9aaffc7dc9a4dfbb68

5 years agoinstaller: Use getUrl() for CSS link in WebInstallerOutput
Fomafix [Mon, 29 Oct 2018 06:18:50 +0000 (07:18 +0100)]
installer: Use getUrl() for CSS link in WebInstallerOutput

This change changes the CSS URL in the stylesheet link from

  <link rel="stylesheet" href="/mediawiki/mw-config/index.php?css=1"/>

to

  <link rel="stylesheet" href="/mediawiki/mw-config/?css=1"/>

on the website /mediawiki/mw-config/.

Change-Id: Ib46c4d944df862cf928d3ebd050ff2d1e16ba6a5

5 years agoUpstream VE's MWCancelConfirmDialog as AbandonEditDialog
Ed Sanders [Wed, 31 Oct 2018 13:29:35 +0000 (13:29 +0000)]
Upstream VE's MWCancelConfirmDialog as AbandonEditDialog

So this dialog can be shared across editors.

Bug: T192333
Change-Id: Ib581528363a3fe5461529515835bd7fb1ce66e56

5 years agoEqualization translations for Serbian
Zoranzoki21 [Fri, 2 Nov 2018 10:17:37 +0000 (11:17 +0100)]
Equalization translations for Serbian

Change-Id: I3c79ded77f16beee404ca3005ae7678838ab9d60

5 years agoMerge "Special:Preferences: Expose `.mw-navigation-hint` on keyboard focus only"
jenkins-bot [Sat, 3 Nov 2018 11:43:42 +0000 (11:43 +0000)]
Merge "Special:Preferences: Expose `.mw-navigation-hint` on keyboard focus only"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 3 Nov 2018 09:11:03 +0000 (10:11 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I52eda764f5cba9b1f88bd6a2d3817f88214849ab

5 years agoMerge "Use new ScopedCallback::newScopedIgnoreUserAbort helper function"
jenkins-bot [Sat, 3 Nov 2018 00:43:22 +0000 (00:43 +0000)]
Merge "Use new ScopedCallback::newScopedIgnoreUserAbort helper function"

5 years agoMerge "Update wikimedia/scoped-callback to 3.0.0"
jenkins-bot [Sat, 3 Nov 2018 00:43:17 +0000 (00:43 +0000)]
Merge "Update wikimedia/scoped-callback to 3.0.0"

5 years agoRCFilters: Use `display: flex` for better responsiveness on narrow canvas
Volker E [Fri, 2 Nov 2018 23:58:53 +0000 (16:58 -0700)]
RCFilters: Use `display: flex` for better responsiveness on narrow canvas

Bug: T197065
Change-Id: I0fdff660a480aeedc096bc4ec48b05569e67e595

5 years agoMerge "Don't infer parsoid-only parser tests based on presence of parsoid option."
jenkins-bot [Fri, 2 Nov 2018 23:49:50 +0000 (23:49 +0000)]
Merge "Don't infer parsoid-only parser tests based on presence of parsoid option."

5 years agoMerge "PHPVersionCheck: Remove obsolete load.php code and simplify"
jenkins-bot [Fri, 2 Nov 2018 22:42:17 +0000 (22:42 +0000)]
Merge "PHPVersionCheck: Remove obsolete load.php code and simplify"

5 years agoRCFilters: Fix highlighted rows overlapping legend
Roan Kattouw [Fri, 2 Nov 2018 21:03:01 +0000 (14:03 -0700)]
RCFilters: Fix highlighted rows overlapping legend

While the new rows are being faded in, they each have an opacity not
equal to 1. Setting the opacity on something creates a new stacking
context, and because the rows are below the legend in the DOM, this made
them appear on top of the legend.

Fix this by setting a z-index on the legend so it stays on top.

Bug: T186841
Change-Id: I2eee201d1e0aed94974a85d6d46b86fd4a4db796

5 years agoDon't infer parsoid-only parser tests based on presence of parsoid option.
C. Scott Ananian [Tue, 4 Aug 2015 20:06:15 +0000 (16:06 -0400)]
Don't infer parsoid-only parser tests based on presence of parsoid option.

For historical reasons, we used a complicated test to try to determine
if a test is "parsoid only" based on the presence of the string "parsoid"
in the parser test options clause.  But really test clauses should be
marked up specifically as html/php or html/parsoid, we don't need to
play hacky games any more.  Remove some unnecessary code and simplify
the test logic.

Change-Id: Ia331e7e12a75aa19aeb96601712f169f2aa75bf9

5 years agoMerge "Upgrade wikimedia/xmp-reader to 0.6.1"
jenkins-bot [Fri, 2 Nov 2018 18:57:48 +0000 (18:57 +0000)]
Merge "Upgrade wikimedia/xmp-reader to 0.6.1"

5 years agoMerge "Sync up with Parsoid parserTests.txt"
jenkins-bot [Fri, 2 Nov 2018 18:38:20 +0000 (18:38 +0000)]
Merge "Sync up with Parsoid parserTests.txt"

5 years agoMerge "Update deprecations after OutputPage::parse*As*() backport to 1.32"
jenkins-bot [Fri, 2 Nov 2018 18:11:23 +0000 (18:11 +0000)]
Merge "Update deprecations after OutputPage::parse*As*() backport to 1.32"

5 years agoSync up with Parsoid parserTests.txt
C. Scott Ananian [Fri, 2 Nov 2018 17:31:44 +0000 (13:31 -0400)]
Sync up with Parsoid parserTests.txt

This now aligns with Parsoid commit 24b6363b9a99435479305fa98651b07e2ddb118a

Change-Id: I9090541605411af1ff3b4252b2e0902736e1ed48

5 years agoUpdate deprecations after OutputPage::parse*As*() backport to 1.32
C. Scott Ananian [Thu, 1 Nov 2018 20:30:57 +0000 (16:30 -0400)]
Update deprecations after OutputPage::parse*As*() backport to 1.32

Originally landed in 1.33 in a3f63785eebfa2f729d42da880b6722736ef1e7d.

Backported to 1.32 in cff9ab4b5c26dc87137aa2c04efd5d1f31226fe8.

Change-Id: I402c31b57904f6a6fd0b3a2c32a1c0a73c553254

5 years agoFix typo in tests/includes/SampleTest.php in core
Alangi Derick [Fri, 2 Nov 2018 12:39:02 +0000 (13:39 +0100)]
Fix typo in tests/includes/SampleTest.php in core

Minor typo fix in comments for setUp() and provideTitles()
methods in SampleTests.php file.

Change-Id: I09e0fb041d6809509e780d22bf8419497cd50ee7

5 years agoAdd start, end to allowed params of Special:MyContributions
Lucas Werkmeister [Wed, 24 Oct 2018 21:41:42 +0000 (23:41 +0200)]
Add start, end to allowed params of Special:MyContributions

I assume they were just omitted by accident.

Bug: T207895
Change-Id: I99c14849a6f312f0014298d92de773205d05ad04

5 years agoMerge "Handle <nowiki> and other markup consistently in image link/alt options"
jenkins-bot [Fri, 2 Nov 2018 01:59:01 +0000 (01:59 +0000)]
Merge "Handle <nowiki> and other markup consistently in image link/alt options"

5 years agoUse new ScopedCallback::newScopedIgnoreUserAbort helper function
stibba [Mon, 29 Oct 2018 21:18:29 +0000 (22:18 +0100)]
Use new ScopedCallback::newScopedIgnoreUserAbort helper function

Introduced in Ib6e307d76f93.

This patch updates FileBackend, LoadBalancer and LBFactory to use a public
function newScopedIgnoreUserAbort in ScopedCallback instead of all using
the exact same function but duplicated.

Bug: T184044
Change-Id: I27d7dc16abfe4b9447d7f3d8bd89f0de3ddeb662

5 years agoUpdate wikimedia/scoped-callback to 3.0.0
Kunal Mehta [Fri, 2 Nov 2018 00:16:27 +0000 (17:16 -0700)]
Update wikimedia/scoped-callback to 3.0.0

Depends-On: Idf3ee1f785104257dec8c6bfead821244184b126
Change-Id: I005575a341d4eda4595dc36537c4f2996e32eb45

5 years agoUpgrade wikimedia/xmp-reader to 0.6.1
Kunal Mehta [Fri, 2 Nov 2018 00:13:15 +0000 (17:13 -0700)]
Upgrade wikimedia/xmp-reader to 0.6.1

Depends-On: I3eba0c81aed14f1087c46fb11088412cad5a505f
Change-Id: I215ab354b39a276aefc54fabad4e3ddcd792a796

5 years agoIgnore master connections for POST-nonwrite in $wgTrxProfilerLimits
Aaron Schulz [Thu, 1 Nov 2018 22:39:12 +0000 (15:39 -0700)]
Ignore master connections for POST-nonwrite in $wgTrxProfilerLimits

Unless an actuall write happens, avoid create log spam over things
like CentralAuthUser->getSafeReadDB().

Change-Id: I1cf43f4b1cdd12eb458458448f0f0ea328925b47

5 years agoHard deprecate OutputPage::parse() and OutputPage::parseInline()
C. Scott Ananian [Fri, 26 Oct 2018 15:28:12 +0000 (11:28 -0400)]
Hard deprecate OutputPage::parse() and OutputPage::parseInline()

Depends-On: I2cc3a4631bcb45b7f8cd913e9b6dba14349e5e9e
Depends-On: Ieaac7a198cacec406a8240ed07b2d9f32ef9e56a
Depends-On: Ia4b63715380d97ccb3133bf39a260834c20b4f5a
Depends-On: I88fb74c3007360e2301c8bca7db6a940e966a735
Change-Id: If5c619cdd3e7f786687cfc2ca166074d9197ca11

5 years agoReplace deprecated call to OutputPage::parse() in HTMLForm
C. Scott Ananian [Thu, 1 Nov 2018 21:26:10 +0000 (17:26 -0400)]
Replace deprecated call to OutputPage::parse() in HTMLForm

Use OutputPage::parseAsInterface() to tidy the output and make the
selection of user interface language explicit.

Follow-up to Ifeb1ca6eb8b5c743421b8f9e329f1e3658050e47.

Bug: T198214
Change-Id: Ia4b63715380d97ccb3133bf39a260834c20b4f5a

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 1 Nov 2018 21:02:14 +0000 (22:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibbaeb400c9e5a1c744d8690cccc56d8d2fb9d0cf

5 years agoBlockRestriction::update() unnecessarily does a SELECT on the page table.
David Barratt [Thu, 1 Nov 2018 19:37:46 +0000 (15:37 -0400)]
BlockRestriction::update() unnecessarily does a SELECT on the page table.

This unnecessary SELECT causes a performence issue where it takes an
exceedingly long time to perform an update.

Bug: T208526
Change-Id: I0238234146fc838067019351ea97046a7d37d6fc

5 years agoMerge "Only expand `{{...}}` in messages once (part 2)"
jenkins-bot [Thu, 1 Nov 2018 17:20:51 +0000 (17:20 +0000)]
Merge "Only expand `{{...}}` in messages once (part 2)"

5 years agoMerge "Replace deprecated calls to OutputPage::parse()"
jenkins-bot [Thu, 1 Nov 2018 17:20:45 +0000 (17:20 +0000)]
Merge "Replace deprecated calls to OutputPage::parse()"

5 years agoMerge "Use Html:rawElement() where possible in special pages."
jenkins-bot [Thu, 1 Nov 2018 17:20:12 +0000 (17:20 +0000)]
Merge "Use Html:rawElement() where possible in special pages."

5 years agoMerge "RollbackAction/SpecialUndelete: Use OutputPage::addWikiMsg() where possible"
jenkins-bot [Thu, 1 Nov 2018 17:14:53 +0000 (17:14 +0000)]
Merge "RollbackAction/SpecialUndelete: Use OutputPage::addWikiMsg() where possible"

5 years agoFix undefined NS with @covers tags in /includes/auth/
Alangi Derick [Thu, 1 Nov 2018 11:48:52 +0000 (12:48 +0100)]
Fix undefined NS with @covers tags in /includes/auth/

Should MW Codesniffer also handle these as well?

Change-Id: Ieb493bddd5f3674fb889b4a780d51b50d89c4f65

5 years agoMerge "Add docstrings for text search index field types"
jenkins-bot [Thu, 1 Nov 2018 10:21:55 +0000 (10:21 +0000)]
Merge "Add docstrings for text search index field types"

5 years agoMerge "Add langauge 'kjp' Eastern Pwo"
jenkins-bot [Thu, 1 Nov 2018 10:21:49 +0000 (10:21 +0000)]
Merge "Add langauge 'kjp' Eastern Pwo"

5 years agoMerge "Recognize CSS/JS redirects with non-ASCII targets"
jenkins-bot [Thu, 1 Nov 2018 06:38:43 +0000 (06:38 +0000)]
Merge "Recognize CSS/JS redirects with non-ASCII targets"

5 years agoMerge "Improve some queries ordering by rev_timestamp with actor migration READ_NEW"
jenkins-bot [Thu, 1 Nov 2018 06:28:26 +0000 (06:28 +0000)]
Merge "Improve some queries ordering by rev_timestamp with actor migration READ_NEW"

5 years agoRecognize CSS/JS redirects with non-ASCII targets
Kunal Mehta [Tue, 30 Oct 2018 02:30:59 +0000 (19:30 -0700)]
Recognize CSS/JS redirects with non-ASCII targets

The regex in JavaScriptContent and CssContent was trying to pass
urlencoded stuff to Title::newFromText(), which would fail. Make sure we
urldecode it first.

Bug: T208264
Change-Id: I189c4c308da2875839ad8c1061332500f0e6d244

5 years agoMerge "Diff and history link separated via CSS"
jenkins-bot [Thu, 1 Nov 2018 04:04:46 +0000 (04:04 +0000)]
Merge "Diff and history link separated via CSS"

5 years agoMerge "Fix IP handling in DerivativeRequest"
jenkins-bot [Thu, 1 Nov 2018 04:00:29 +0000 (04:00 +0000)]
Merge "Fix IP handling in DerivativeRequest"

5 years agoMerge "Pass $context to 'GetPreferences' hook"
jenkins-bot [Thu, 1 Nov 2018 04:00:23 +0000 (04:00 +0000)]
Merge "Pass $context to 'GetPreferences' hook"

5 years agoMerge "Update OOUI to v0.29.3"
jenkins-bot [Thu, 1 Nov 2018 03:59:21 +0000 (03:59 +0000)]
Merge "Update OOUI to v0.29.3"

5 years agoFix IP handling in DerivativeRequest
Gergő Tisza [Tue, 30 Oct 2018 05:32:13 +0000 (22:32 -0700)]
Fix IP handling in DerivativeRequest

$r->getIP() should return what was set by $r->setIP(); currently
that breaks for DerivativeRequest as get reads from the base but
set writes on the derivative.

Change-Id: If30c233931ceb1ca05da8866da3c3ab78de1a339

5 years agoUpdate OOUI to v0.29.3
Volker E [Thu, 1 Nov 2018 02:57:41 +0000 (19:57 -0700)]
Update OOUI to v0.29.3

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

Bug: T94749
Bug: T112982
Bug: T179755
Bug: T206925
Bug: T206211
Bug: T206768
Bug: T207728
Bug: T207905
Bug: T207917
Depends-on: I4c090cff7b1ec1dbaeefd9d1ed7f9d9ebd8092f5
Change-Id: I9106e927f1b4fd07006df1e3c9d8ef9832cf919d

5 years agoMerge "Fix for missing end tag </page> on some exports"
jenkins-bot [Thu, 1 Nov 2018 03:03:24 +0000 (03:03 +0000)]
Merge "Fix for missing end tag </page> on some exports"

5 years agoAdd docstrings for text search index field types
Adam Wight [Thu, 25 Oct 2018 21:57:01 +0000 (14:57 -0700)]
Add docstrings for text search index field types

Change-Id: Icd34ec79db4d8fd024a82045aaa9bedb6556caa8

5 years agoFix for missing end tag </page> on some exports
Bill Pirkle [Wed, 31 Oct 2018 23:02:02 +0000 (18:02 -0500)]
Fix for missing end tag </page> on some exports

T203424 replaced streaming mode with batched queries.
However, it did not properly handle some values of
the $wgExportMaxHistory config variable, and emitted
broken XML. This change fixes that issue.

Bug: T207974
Change-Id: Iade3fc603e513da51b7a970c16275516c02ede49

5 years agoMerge "User: Don't fail mysteriously when passing a User object to idFromName()"
jenkins-bot [Wed, 31 Oct 2018 23:01:14 +0000 (23:01 +0000)]
Merge "User: Don't fail mysteriously when passing a User object to idFromName()"

5 years agoUser: Don't fail mysteriously when passing a User object to idFromName()
Roan Kattouw [Wed, 31 Oct 2018 22:38:07 +0000 (15:38 -0700)]
User: Don't fail mysteriously when passing a User object to idFromName()

If $name is a User object, some code magically works because the object
gets converted to a string, but other code blows up because objects
aren't valid array keys. Prevent this from happening by explicitly
forcing $name to be a string.

Bug: T208469
Change-Id: Icc9ebec93d18609605e2633ccd23b90478e05e51

5 years agoDoc: add missed return type to Title::getEarliestRevTime()
Stephen Niedzielski [Mon, 22 Oct 2018 15:36:47 +0000 (09:36 -0600)]
Doc: add missed return type to Title::getEarliestRevTime()

Change-Id: I98faa04fb9a4710daffa3c55ba3f61df0e12d71b

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 31 Oct 2018 20:56:39 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I12e9cbefff0b52f7086402f42cbcc5389d692cf9

5 years agoMerge "DatabaseSqlite::insert: Fix affected row count"
jenkins-bot [Wed, 31 Oct 2018 19:37:23 +0000 (19:37 +0000)]
Merge "DatabaseSqlite::insert: Fix affected row count"

5 years agoDatabaseSqlite::insert: Fix affected row count
Marius Hoch [Wed, 31 Oct 2018 15:32:46 +0000 (16:32 +0100)]
DatabaseSqlite::insert: Fix affected row count

Follow up to 633eb437a3b808518469c6eaf4e86a436941d837

Bug: T208331
Change-Id: I142bb8c8abd43242d098932da212aa58323a0863

5 years agoMerge "Follow-up d67121f6d: Blocks can apply to non-User objects too"
jenkins-bot [Wed, 31 Oct 2018 16:10:59 +0000 (16:10 +0000)]
Merge "Follow-up d67121f6d: Blocks can apply to non-User objects too"

5 years agoFollow-up d67121f6d: Blocks can apply to non-User objects too
James D. Forrester [Wed, 31 Oct 2018 15:50:46 +0000 (08:50 -0700)]
Follow-up d67121f6d: Blocks can apply to non-User objects too

Bug: T208398
Change-Id: I1d39f4ff709f37e7047f49964101e83c97cda0e9

5 years agoUse identical check instead of equality check
Alangi Derick [Wed, 31 Oct 2018 12:22:58 +0000 (13:22 +0100)]
Use identical check instead of equality check

$user->getId() returns an int and it's strict on this,
so the check here should be an identical check as "=="
does unnecessary coercion. So "===" will be faster and
improves on speed/performance.

Change-Id: I28a4e86ab339f10251df8846b8d951b673fe4f9e

5 years agoDisplay SVGs in target language
Max Semenik [Sat, 6 Oct 2018 00:56:53 +0000 (17:56 -0700)]
Display SVGs in target language

Previously, they were always displayed in defult language unless
forced explicitly in wikitext, e.g. [[File:Foo.svg|lang=ru]].
This change adds a feature flag that would enable always trying to
display in page language.

* If enabled, Parser will pass a new parameter - 'pagelang' - to
  the media handler.
* SvgHandler uses page language when determining what language to
  render the image in.
* 'pagelang' can always be overridden by 'lang'.
* If no translation in page language is available, the default
  language (English) will be used for thumbnail URLs, to prevent
  cluttering media storage and HTTP caches with useless copies.

Performance: this requires accessing image's metadata during parsing.
My testing indicates there were no code path where this wasn't the
case already, so no performance hit is expected, however we should
still keep an eye on page save performance.

Bug: T205040
Change-Id: I348840ef405e1370cc0c17d69051bce30153c9c0

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 30 Oct 2018 21:08:45 +0000 (22:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7f4659b873f1b238b90bcd59ce9e97ee48990b44

5 years agoFollow-up dcf3eb79: Drop tabs.legacy.js file, unused
James D. Forrester [Tue, 30 Oct 2018 20:18:49 +0000 (13:18 -0700)]
Follow-up dcf3eb79: Drop tabs.legacy.js file, unused

Change-Id: Ifbed79f8be978729fdedef7fce7c72ee20d63087

5 years agomediawiki.special.preferences/tabs.legacy.js: Drop old `jsprefs` class, unused
James D. Forrester [Tue, 30 Oct 2018 19:13:04 +0000 (12:13 -0700)]
mediawiki.special.preferences/tabs.legacy.js: Drop old `jsprefs` class, unused

Change-Id: I91c3069c7588fe9a77af169bab07ae296bccd2e2

5 years agoMerge "Drop the LanguageGetSpecialPageAliases and LanguageGetMagic hooks"
jenkins-bot [Tue, 30 Oct 2018 18:24:45 +0000 (18:24 +0000)]
Merge "Drop the LanguageGetSpecialPageAliases and LanguageGetMagic hooks"

5 years agoMerge "resources: Drop jquery.localize, deprecated in 1.32"
jenkins-bot [Tue, 30 Oct 2018 17:42:58 +0000 (17:42 +0000)]
Merge "resources: Drop jquery.localize, deprecated in 1.32"

5 years agoMerge "Drop six authentication-related hooks, deprecated in 1.27"
jenkins-bot [Tue, 30 Oct 2018 16:28:15 +0000 (16:28 +0000)]
Merge "Drop six authentication-related hooks, deprecated in 1.27"

5 years agoMerge "Remove use of old API doc methods"
jenkins-bot [Tue, 30 Oct 2018 16:20:15 +0000 (16:20 +0000)]
Merge "Remove use of old API doc methods"

5 years agoMerge "Use WikiMap methods for wiki ID logic in more places"
jenkins-bot [Tue, 30 Oct 2018 07:20:29 +0000 (07:20 +0000)]
Merge "Use WikiMap methods for wiki ID logic in more places"

5 years agoMerge "Set the SaveParser logger in RevisionRenderer"
jenkins-bot [Tue, 30 Oct 2018 07:12:19 +0000 (07:12 +0000)]
Merge "Set the SaveParser logger in RevisionRenderer"

5 years agoMerge "rdbms: clean up return values of IDatabase write methods"
jenkins-bot [Tue, 30 Oct 2018 07:12:14 +0000 (07:12 +0000)]
Merge "rdbms: clean up return values of IDatabase write methods"

5 years agoMerge "Use new WikiMap::getCurrentWikiDomain() for objectcache and profiler keyspace"
jenkins-bot [Tue, 30 Oct 2018 07:08:27 +0000 (07:08 +0000)]
Merge "Use new WikiMap::getCurrentWikiDomain() for objectcache and profiler keyspace"

5 years agoUse new WikiMap::getCurrentWikiDomain() for objectcache and profiler keyspace
Aaron Schulz [Tue, 16 Oct 2018 03:00:06 +0000 (20:00 -0700)]
Use new WikiMap::getCurrentWikiDomain() for objectcache and profiler keyspace

Change-Id: I0e77c58a55b7ce908ec1d6399ec6629d00a48953

5 years agoMerge "debug: Allow the DBQuery channel to be used"
jenkins-bot [Tue, 30 Oct 2018 04:34:20 +0000 (04:34 +0000)]
Merge "debug: Allow the DBQuery channel to be used"

5 years agoSet the SaveParser logger in RevisionRenderer
Aaron Schulz [Mon, 29 Oct 2018 22:48:22 +0000 (15:48 -0700)]
Set the SaveParser logger in RevisionRenderer

Change-Id: Iacc28ce583fed8cf2a7f7b931754c64619cb4917

5 years agordbms: clean up return values of IDatabase write methods
Aaron Schulz [Fri, 26 Oct 2018 20:17:34 +0000 (13:17 -0700)]
rdbms: clean up return values of IDatabase write methods

Also improved the atomicity and affected row count logic for
insert/replace with sqlite.

Also remove unused "fileHandle" code from insert().

Change-Id: If7b9148fd44f3a958899885753c7c86ba66bf193

5 years agoMerge "Use WikiMap methods in ClassicInterwikiLookup instead of wfWikiId()"
jenkins-bot [Tue, 30 Oct 2018 00:22:38 +0000 (00:22 +0000)]
Merge "Use WikiMap methods in ClassicInterwikiLookup instead of wfWikiId()"

5 years agoMerge "Add isCurrentWikiId()/isCurrentWikiDomain()/getCurrentWikiDomain() to WikiMap"
jenkins-bot [Mon, 29 Oct 2018 22:27:15 +0000 (22:27 +0000)]
Merge "Add isCurrentWikiId()/isCurrentWikiDomain()/getCurrentWikiDomain() to WikiMap"

5 years agoDrop the LanguageGetSpecialPageAliases and LanguageGetMagic hooks
James D. Forrester [Mon, 11 Jun 2018 23:50:41 +0000 (16:50 -0700)]
Drop the LanguageGetSpecialPageAliases and LanguageGetMagic hooks

Deprecated since 1.16 and unused in known git.

Bug: T199291
Change-Id: Idcaf1b2c24c64653f700be4fe810ed124ba4ab7c

5 years agoresources: Drop jquery.localize, deprecated in 1.32
James D. Forrester [Wed, 29 Aug 2018 23:34:24 +0000 (16:34 -0700)]
resources: Drop jquery.localize, deprecated in 1.32

Change-Id: Iaab8637cd336ab47c789ebcf1d0610695555095f