lhc/web/wiklou.git
5 years agoMailAddress->toString(): Reduce complexity by inverting ifs
Reedy [Sat, 20 Oct 2018 22:31:00 +0000 (23:31 +0100)]
MailAddress->toString(): Reduce complexity by inverting ifs

Change-Id: I5185c0231a0944f36d960211e78cf36273c94d52

5 years agoMerge "Don't pass a MailAddress pass the email to mail()"
jenkins-bot [Sat, 20 Oct 2018 20:34:23 +0000 (20:34 +0000)]
Merge "Don't pass a MailAddress pass the email to mail()"

5 years agoMerge "Fix typo in includes/watcheditem/WatchItemStoreInterface.php"
jenkins-bot [Sat, 20 Oct 2018 20:16:15 +0000 (20:16 +0000)]
Merge "Fix typo in includes/watcheditem/WatchItemStoreInterface.php"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 20 Oct 2018 20:00:02 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I508681048d303f4814be18462689688b93443813

5 years agoFix typo in includes/watcheditem/WatchItemStoreInterface.php
Alangi Derick [Fri, 19 Oct 2018 20:21:35 +0000 (21:21 +0100)]
Fix typo in includes/watcheditem/WatchItemStoreInterface.php

Comment didn't quite make sense, fixing the typo by removing "the"
made it a little better and clear.

Change-Id: I33abdb3489ab704d50722a8df6acb402592908b2

5 years agoDon't pass a MailAddress pass the email to mail()
Reedy [Sat, 20 Oct 2018 12:37:15 +0000 (13:37 +0100)]
Don't pass a MailAddress pass the email to mail()

Bug: T207541
Change-Id: I1516023907e9773cb093010c6b67279f695abb1a

5 years agoInclude IP address in "Login for $1 succeeded" log entry
Kunal Mehta [Sat, 20 Oct 2018 12:35:22 +0000 (05:35 -0700)]
Include IP address in "Login for $1 succeeded" log entry

Bug: T207540
Change-Id: Iab4f2f2ddc8e64ead2f33356d03fa7beed399415

5 years agoMerge "Convert Special:EmailUser to use OOUIHTMLForm"
jenkins-bot [Fri, 19 Oct 2018 23:14:32 +0000 (23:14 +0000)]
Merge "Convert Special:EmailUser to use OOUIHTMLForm"

5 years agoMerge "RCFilters: Fix highlight circles for unseen changes"
jenkins-bot [Fri, 19 Oct 2018 22:58:05 +0000 (22:58 +0000)]
Merge "RCFilters: Fix highlight circles for unseen changes"

5 years agoMerge "Deprecate $wgSquidPurgeUseHostHeader"
jenkins-bot [Fri, 19 Oct 2018 21:44:29 +0000 (21:44 +0000)]
Merge "Deprecate $wgSquidPurgeUseHostHeader"

5 years agoMerge "Deprecate $wgUseESI"
jenkins-bot [Fri, 19 Oct 2018 21:43:27 +0000 (21:43 +0000)]
Merge "Deprecate $wgUseESI"

5 years agoMerge "objectcache: avoid using heavily time-drifted microtime() values in WAN cache"
jenkins-bot [Fri, 19 Oct 2018 20:55:47 +0000 (20:55 +0000)]
Merge "objectcache: avoid using heavily time-drifted microtime() values in WAN cache"

5 years agoMerge "During special page transclusion, save and restore context's WikiPage too"
jenkins-bot [Fri, 19 Oct 2018 20:55:41 +0000 (20:55 +0000)]
Merge "During special page transclusion, save and restore context's WikiPage too"

5 years agoRCFilters: Fix highlight circles for unseen changes
Roan Kattouw [Fri, 19 Oct 2018 20:38:44 +0000 (13:38 -0700)]
RCFilters: Fix highlight circles for unseen changes

These are supposed to be unfilled, but the CSS wasn't being applied
because it didn't have -color in the class name. Put it back into the
&-color block where it belongs.

Bug: T207472
Change-Id: Ic517b9a1a0e8e95015f5b2bd3517c36bff3b20e8
Follows-Up: I76fec57ff237ba02afefcea28916d8348bac9b0e

5 years agoDuring special page transclusion, save and restore context's WikiPage too
Bartosz Dziewoński [Wed, 17 Oct 2018 23:23:27 +0000 (01:23 +0200)]
During special page transclusion, save and restore context's WikiPage too

Setting the Title by calling setTitle clears the WikiPage, and the
next time getWikiPage() is called, it will be lazy-initialized to a
different instance of WikiPage.

This is mostly okay (the behavior has been like this for years and no
one noticed any problems), but it turns out that some extensions
(ConfirmEdit) use custom properties on the WikiPage object to pass
data between different hooks, which are lost when it's re-initialized.

Bug: T207065
Change-Id: I2881895f337bcfb1f86d5fc5a994fa9b0dcc768a

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 19 Oct 2018 20:02:41 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic7961893e9cd4f67fdfdeb36c00ce414444c3f15

5 years agoRCFilters: Fix completely broken highlight circles
Roan Kattouw [Fri, 19 Oct 2018 19:18:35 +0000 (12:18 -0700)]
RCFilters: Fix completely broken highlight circles

- Correct highlights class name (mw-rcfilters-ui-highlights, not
  mw-rcfilters-ui-changesListWrapperWidget-highlights)
- Remove -circle class suffix that the circles don't actually have
- Go back to using float: right; instead of text-align: right;
  (you can't use text-align for things that aren't inline)
- For seen/unseen watched items, apply circle mixin to the actual
  circles themselves, not their parents

Bug: T207472
Change-Id: Iade1af4299826a4e8a2108425ace9a406f0aa8cb
Follows-Up: I76fec57ff237ba02afefcea28916d8348bac9b0e

5 years agoDeprecate $wgSquidPurgeUseHostHeader
C. Scott Ananian [Fri, 19 Oct 2018 15:40:17 +0000 (11:40 -0400)]
Deprecate $wgSquidPurgeUseHostHeader

This header supports Squid in forward-proxy mode using HTTP/1.0
HTTP headers.  It is not used in production.

Change-Id: I99646c9c5519bd55b3d4988306e379f89d413bdc

5 years agoDeprecate $wgUseESI
C. Scott Ananian [Fri, 19 Oct 2018 15:36:44 +0000 (11:36 -0400)]
Deprecate $wgUseESI

This was an experimental Squid 3 feature which is now defunct.

Change-Id: I799d87309b0dc77100900b75040fa9b85a35fc9a

5 years agoMerge "Watchlist: Commit after each batch watchlist insertion and removal"
jenkins-bot [Fri, 19 Oct 2018 15:23:20 +0000 (15:23 +0000)]
Merge "Watchlist: Commit after each batch watchlist insertion and removal"

5 years agoMerge "Add docs and minor cleanup in PHPVersionCheck.php"
jenkins-bot [Thu, 18 Oct 2018 22:04:45 +0000 (22:04 +0000)]
Merge "Add docs and minor cleanup in PHPVersionCheck.php"

5 years agoAdd COALESCE for image deletion and imgcomment_description_id
Brad Jorsch [Thu, 18 Oct 2018 20:51:42 +0000 (16:51 -0400)]
Add COALESCE for image deletion and imgcomment_description_id

I have no idea why this suddenly started raising an error rather than it
doing so since February (I0dd7258fe). But this should fix it.

Bug: T207419
Change-Id: Id97e1c7c2655d90928c777bc3377e5ea23f49f6b

5 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Thu, 18 Oct 2018 20:41:25 +0000 (20:41 +0000)]
Merge "Localisation updates from https://translatewiki.net."

5 years agoMerge "Add ICU mapping for versions 62 and 63"
jenkins-bot [Thu, 18 Oct 2018 20:15:50 +0000 (20:15 +0000)]
Merge "Add ICU mapping for versions 62 and 63"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 18 Oct 2018 20:15:04 +0000 (22:15 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Idb8c9ff1533aa8470455dba149333a6212c509a5

5 years agoMerge "Sort allowed log actions when displaying"
jenkins-bot [Thu, 18 Oct 2018 19:34:20 +0000 (19:34 +0000)]
Merge "Sort allowed log actions when displaying"

5 years agoAdd ICU mapping for versions 62 and 63
Reedy [Thu, 18 Oct 2018 19:03:59 +0000 (20:03 +0100)]
Add ICU mapping for versions 62 and 63

Change-Id: I5e1238e856d4149c30806e6b2cb3619c0c9c1dbf

5 years agoobjectcache: avoid using heavily time-drifted microtime() values in WAN cache
Aaron Schulz [Thu, 18 Oct 2018 18:42:27 +0000 (11:42 -0700)]
objectcache: avoid using heavily time-drifted microtime() values in WAN cache

Change-Id: Ifcb9e4b4a1d5adfdaaa6ea505e34956516b871de

5 years agoWatchlist: Commit after each batch watchlist insertion and removal
Kosta Harlan [Tue, 2 Oct 2018 19:55:53 +0000 (15:55 -0400)]
Watchlist: Commit after each batch watchlist insertion and removal

With this change, adding large numbers (500+) of items to one's Watchlist via
Special:EditWatchlist/raw will no longer trigger DBPerformance warnings
for "max affected rows expectation not met". The same code mechanism is added
for bulk removal of watchlist items.

Bug: T171898
Depends-On: Ia0f496b8bfb2b68217d0f45f892045538494bfdc
Change-Id: I832b1843d1341b05227cdee2549bdcefa21eb300

5 years agoAdd docs and minor cleanup in PHPVersionCheck.php
Alangi Derick [Thu, 18 Oct 2018 17:50:48 +0000 (18:50 +0100)]
Add docs and minor cleanup in PHPVersionCheck.php

- Consistency of the acronym PHP instead of "php".
- Add documentation to $functionsExtensionsMapping.

Change-Id: I06b507128bc3b95605a764cd63f621dbae3b2dc3

5 years agoMerge "Fix jqueryMsg breaking when passed an undefined param"
jenkins-bot [Thu, 18 Oct 2018 17:36:13 +0000 (17:36 +0000)]
Merge "Fix jqueryMsg breaking when passed an undefined param"

5 years agoMerge "Revert "Introduce Special:RedirectExternal""
jenkins-bot [Thu, 18 Oct 2018 17:05:10 +0000 (17:05 +0000)]
Merge "Revert "Introduce Special:RedirectExternal""

5 years agoFix jqueryMsg breaking when passed an undefined param
Jakob Warkotsch [Thu, 18 Oct 2018 16:02:12 +0000 (18:02 +0200)]
Fix jqueryMsg breaking when passed an undefined param

This restores the behavior for undefined params as it was before
I445f9194bb8b2ed35baafbda30d1d0d008b64e2c

Bug: T207397
Change-Id: I751f01a9b3cd8bb87d7d7def98c918a87ddf81cd

5 years agoSort allowed log actions when displaying
Matěj Suchánek [Thu, 2 Aug 2018 10:02:02 +0000 (12:02 +0200)]
Sort allowed log actions when displaying

This makes searching in the dropdown on Special:ApiSandbox simpler
because it keeps actions of the same log type together.

Change-Id: I240f5e19938393d5c15a1f5e7dd27780957231c0

5 years agoRevert "Introduce Special:RedirectExternal"
Kosta Harlan [Thu, 18 Oct 2018 16:15:21 +0000 (16:15 +0000)]
Revert "Introduce Special:RedirectExternal"

This reverts commit b83cf88837d589ae82a41fffb68dd82855aff2e5.

Reason for revert: Security concerns, needs some more nuance.

Change-Id: I5823c3da77accca9839f9632611315223e05351b

5 years agoMerge "ImagePage: Inherit parent's handling for action=render"
jenkins-bot [Thu, 18 Oct 2018 15:34:41 +0000 (15:34 +0000)]
Merge "ImagePage: Inherit parent's handling for action=render"

5 years agoMerge "Reword 'prefixindex-strip' to "Hide the prefix in results""
jenkins-bot [Thu, 18 Oct 2018 08:26:57 +0000 (08:26 +0000)]
Merge "Reword 'prefixindex-strip' to "Hide the prefix in results""

5 years agoImagePage: Inherit parent's handling for action=render
Bartosz Dziewoński [Thu, 18 Oct 2018 03:06:23 +0000 (05:06 +0200)]
ImagePage: Inherit parent's handling for action=render

ImagePage::render() was calling parent::view() instead of
parent::render(), thus skipping Article::render() entirely.
Therefore the logic to disable section edit links (and also,
to add an 'X-Robots-Tag: noindex' header) was not being used.
This fixes T65891 and T21415 for pages in 'File:' namespace.

Bug: T206546
Change-Id: I36ae716c9a363ae29b7a785cc41430301250baba

5 years agoNew hook ApiOptions
Max Semenik [Tue, 24 Jul 2018 22:05:22 +0000 (15:05 -0700)]
New hook ApiOptions

We need it to inform API clients they're changing globally overridden
preferences.

Bug: T198913
Change-Id: I692a1fb42b73d72814f31bfe9bd400c65f59d83c

5 years agoReword 'prefixindex-strip' to "Hide the prefix in results"
Bartosz Dziewoński [Thu, 18 Oct 2018 00:21:05 +0000 (02:21 +0200)]
Reword 'prefixindex-strip' to "Hide the prefix in results"

"Strip" is a very jargony term for removing something.

Translations of this message to the languages I can vaguely understand
all use the equivalents of "hide", "remove", or "display without".
Several translations to small languages I don't understand include the
word "strip" verbatim, which is almost certainly a mistake.

Bug: T76972
Change-Id: I6bf690773bfb2e5c6c35b3101733d1cd3e936e70

5 years agoDatabase: Allow selectFieldValues() to accept SQL fragments
Brad Jorsch [Wed, 17 Oct 2018 15:26:51 +0000 (11:26 -0400)]
Database: Allow selectFieldValues() to accept SQL fragments

The documentation says "This must be a valid SQL fragment", but as
written it breaks if given anything other than a field name. It's easy
enough to fix by adding an alias to the internal select() call.

Bug: T201781
Change-Id: I76428af6d3aadc266254fdb24109a0ac2db3761f

5 years agoMerge "Introduce Special:RedirectExternal"
jenkins-bot [Wed, 17 Oct 2018 22:12:52 +0000 (22:12 +0000)]
Merge "Introduce Special:RedirectExternal"

5 years agoMerge "mw.feedback: Remove a hack with passing message parameters"
jenkins-bot [Wed, 17 Oct 2018 21:54:12 +0000 (21:54 +0000)]
Merge "mw.feedback: Remove a hack with passing message parameters"

5 years agoIntroduce Special:RedirectExternal
Kosta Harlan [Wed, 17 Oct 2018 17:35:57 +0000 (13:35 -0400)]
Introduce Special:RedirectExternal

Special:RedirectExternal is an unlisted special page that accepts a URL as
the first argument, and redirects the user to that page.
Example: Special:RedirectExternal/https://mediawiki.org

At the moment, this is intended to be used by the GrowthExperiments project in
order to track outbound visits to certain external links. But it could be
extended in the future to provide parameters for showing a message to the user
before redirecting, or explicitly requiring a user to click on the link, which
could help improve security when users follow on-wiki links to off-wiki sites.

Bug: T207115
Change-Id: I822af14a84569aab22249e2f16a662a60e60f76a

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 17 Oct 2018 21:13:10 +0000 (23:13 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If357bae8816570dbccf5bbb42b040ad6de159e72

5 years agomw.feedback: Remove a hack with passing message parameters
Bartosz Dziewoński [Wed, 17 Oct 2018 20:33:54 +0000 (22:33 +0200)]
mw.feedback: Remove a hack with passing message parameters

I'm not sure what bug this is trying to work around. It mentions
T49395 but that doesn't look very relevant. Maybe the real problem was
confusion and bugs related to passing "raw params" (T33260#4675605).
Regardless, it's no longer needed now, because this code also works.

Change-Id: I580d46a5e4b7ff58989cb5fd6b7770e781fb5319

5 years agoMerge "jqueryMsg: Don't fall back to simple parser when jQuery params passed"
jenkins-bot [Wed, 17 Oct 2018 20:11:16 +0000 (20:11 +0000)]
Merge "jqueryMsg: Don't fall back to simple parser when jQuery params passed"

5 years agoMerge "rdbms: do not treat SAVEPOINT and RELEASE SAVEPOINT as write queries"
jenkins-bot [Wed, 17 Oct 2018 16:40:16 +0000 (16:40 +0000)]
Merge "rdbms: do not treat SAVEPOINT and RELEASE SAVEPOINT as write queries"

5 years agoMerge "Allow getRevisionText to function without the text table."
jenkins-bot [Wed, 17 Oct 2018 15:16:06 +0000 (15:16 +0000)]
Merge "Allow getRevisionText to function without the text table."

5 years agoAllow getRevisionText to function without the text table.
daniel [Sun, 30 Sep 2018 21:34:59 +0000 (23:34 +0200)]
Allow getRevisionText to function without the text table.

Without this patch, getRevisionText would fail silently (by
returning false) when the text table no longer gets joined,
due to the switch to the new MCR schema.

Bug: T205808
Change-Id: Iffc25c82a5d2b865c28070c76156d39d390cc675

5 years agoMerge "Inject Config into Parser instead of using globals"
jenkins-bot [Wed, 17 Oct 2018 14:34:31 +0000 (14:34 +0000)]
Merge "Inject Config into Parser instead of using globals"

5 years agoMerge "Force type Language for $lang of doEditSectionLink"
jenkins-bot [Wed, 17 Oct 2018 14:34:26 +0000 (14:34 +0000)]
Merge "Force type Language for $lang of doEditSectionLink"

5 years agoMerge "Force type Language for $lang of DifferenceEngine::setTextLanguage"
jenkins-bot [Wed, 17 Oct 2018 14:30:48 +0000 (14:30 +0000)]
Merge "Force type Language for $lang of DifferenceEngine::setTextLanguage"

5 years agordbms: do not treat SAVEPOINT and RELEASE SAVEPOINT as write queries
Aaron Schulz [Wed, 17 Oct 2018 05:36:06 +0000 (22:36 -0700)]
rdbms: do not treat SAVEPOINT and RELEASE SAVEPOINT as write queries

Change-Id: Ib5d15d90260f30d08f3641a7fb36d82d363b012c

5 years agoMerge "Add OutputPage::wrapWikiTextAsInterface() to safely wrap wikitext"
jenkins-bot [Wed, 17 Oct 2018 05:00:54 +0000 (05:00 +0000)]
Merge "Add OutputPage::wrapWikiTextAsInterface() to safely wrap wikitext"

5 years agoForce type Language for $lang of doEditSectionLink
Fomafix [Mon, 23 Jul 2018 19:50:14 +0000 (21:50 +0200)]
Force type Language for $lang of doEditSectionLink

Also make the parameter $tooltip mandatory to ensure that a mandatory
parameter does follow an optional parameter. ParserOutput always fill
all parameters of doEditSectionLink.

The call of wfGetLangObj( $lang ) is not necessary anymore.

This change is a follow-up to Id49201957e716ef8a2ea930b3616ca4fe6e35633.

Change-Id: Ic49d76c7d9357f99b462471696f7e1eb86e70e3d

5 years agoForce type Language for $lang of DifferenceEngine::setTextLanguage
Fomafix [Tue, 19 Jun 2018 19:48:40 +0000 (21:48 +0200)]
Force type Language for $lang of DifferenceEngine::setTextLanguage

Change-Id: I77e7116f81072fa42f580552e7b94323cfe31856

5 years agoAdd OutputPage::wrapWikiTextAsInterface() to safely wrap wikitext
C. Scott Ananian [Thu, 27 Sep 2018 15:04:45 +0000 (11:04 -0400)]
Add OutputPage::wrapWikiTextAsInterface() to safely wrap wikitext

This patch introduces a new method,
OutputPage::wrapWikiTextAsInterface(), which wraps the result of
OutputPage::addWikiTextAsInterface() in a tidy and robust way that
won't break if the wrapped message contains double newlines, extra
</div>, or other nasties.

This replaces a common unsafe pattern:
  $output->addWikiText( '<div class="..."' .... '</div>' );

Bug: T205624
Change-Id: I1040c7cf0ec1f5c4bef7c06d4486f50d85f2dc0f

5 years agoMerge "INSTALL, UPGRADE: Re-wrap to 80 chars and enforce"
jenkins-bot [Wed, 17 Oct 2018 03:17:56 +0000 (03:17 +0000)]
Merge "INSTALL, UPGRADE: Re-wrap to 80 chars and enforce"

5 years agoMerge "RELEASE-NOTES-1.32: Add entries for all changes to DefaultSettings.php"
jenkins-bot [Wed, 17 Oct 2018 02:46:00 +0000 (02:46 +0000)]
Merge "RELEASE-NOTES-1.32: Add entries for all changes to DefaultSettings.php"

5 years agoINSTALL, UPGRADE: Re-wrap to 80 chars and enforce
James D. Forrester [Wed, 13 Jun 2018 19:04:51 +0000 (12:04 -0700)]
INSTALL, UPGRADE: Re-wrap to 80 chars and enforce

Change-Id: Idabcc4db7a0b25448e7ad30641763e2b3e1a3160

5 years agoMerge "Prepare for REL1_32 cut, labelling master as 1.33-alpha"
jenkins-bot [Wed, 17 Oct 2018 01:52:30 +0000 (01:52 +0000)]
Merge "Prepare for REL1_32 cut, labelling master as 1.33-alpha"

5 years agoMerge "Follow-up 3481e3b2: Drop disablability of ExpiryInputWidget before 1.32 is...
jenkins-bot [Wed, 17 Oct 2018 01:46:31 +0000 (01:46 +0000)]
Merge "Follow-up 3481e3b2: Drop disablability of ExpiryInputWidget before 1.32 is cut"

5 years agoChange to “LESS” as it's the official name (again)
Volker E [Wed, 17 Oct 2018 00:42:05 +0000 (17:42 -0700)]
Change to “LESS” as it's the official name (again)

Make it unified with comments below.

Change-Id: I05e7a4269ed88a497a0072c5838a99fd15167f5d

5 years agoMerge "rdbms: re-add DB domain sanity checks to LoadBalancer"
jenkins-bot [Tue, 16 Oct 2018 23:54:38 +0000 (23:54 +0000)]
Merge "rdbms: re-add DB domain sanity checks to LoadBalancer"

5 years agordbms: re-add DB domain sanity checks to LoadBalancer
Aaron Schulz [Sat, 13 Oct 2018 16:14:20 +0000 (16:14 +0000)]
rdbms: re-add DB domain sanity checks to LoadBalancer

Also clean up empty schema handling in DatabaseDomain

This reverts commit f23ac02f4fcf156767df66a5df2fa407310fe1d2.

Bug: T193565
Change-Id: I95fde5c069f180ca888a023fade25ec81b846d44

5 years agoMerge "Selenium: record video of every test"
jenkins-bot [Tue, 16 Oct 2018 22:23:36 +0000 (22:23 +0000)]
Merge "Selenium: record video of every test"

5 years agoSelenium: record video of every test
Željko Filipin [Fri, 30 Mar 2018 16:42:04 +0000 (18:42 +0200)]
Selenium: record video of every test

In addition to two existing modes (headless and visible), this patch
introcues another mode, headless recording.

If DISPLAY environment variable is not set, Chrome will run in it's
built-in headless mode.
If it is set, and the value starts with colon (`:`), Chrome will
run in headless mode using Xvfb and record video of every test using FFmpeg.
If the value does not start with colon, Chrome will be visible.

Bug: T179188
Change-Id: Ic1723c5f2d57a28201caf6ba7056cb73fb74a957

5 years agomessagecache: check overridable message array in getMsgFromNamespace()
Aaron Schulz [Mon, 15 Oct 2018 15:08:24 +0000 (08:08 -0700)]
messagecache: check overridable message array in getMsgFromNamespace()

Follow up to a3d6c1411dad.

This avoids extra queries for messages that have a software defined value.

Bug: T193271
Change-Id: I25aa0e27200a0b417721cf1fbd34a82095405b89

5 years agoMerge "[Korean] Add 2 additional bookstoreList"
jenkins-bot [Tue, 16 Oct 2018 20:03:48 +0000 (20:03 +0000)]
Merge "[Korean] Add 2 additional bookstoreList"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 16 Oct 2018 19:55:58 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I44bc61d6e2147602329eeface6892e78db0388b2

5 years agoMerge "API: Allow prop=info intestactions to return reasons"
jenkins-bot [Tue, 16 Oct 2018 19:37:22 +0000 (19:37 +0000)]
Merge "API: Allow prop=info intestactions to return reasons"

5 years agoMerge "Migrate some wfWikiId() callers to getLocalDomainID()"
jenkins-bot [Tue, 16 Oct 2018 19:37:18 +0000 (19:37 +0000)]
Merge "Migrate some wfWikiId() callers to getLocalDomainID()"

5 years agoFollow-up 3481e3b2: Drop disablability of ExpiryInputWidget before 1.32 is cut
James D. Forrester [Thu, 4 Oct 2018 00:45:29 +0000 (17:45 -0700)]
Follow-up 3481e3b2: Drop disablability of ExpiryInputWidget before 1.32 is cut

No longer used anywhere(?); we'd rather not have to explain the temporary
variable in the MediaWiki 1.32.0 release notes if we can instead just not ship
it.

Bug: T192620
Change-Id: Icfb82f228512ed45f1a27ce3e565fbc5fc09f39c

5 years agojqueryMsg: Don't fall back to simple parser when jQuery params passed
Roan Kattouw [Mon, 15 Oct 2018 18:53:32 +0000 (11:53 -0700)]
jqueryMsg: Don't fall back to simple parser when jQuery params passed

jqueryMsg parsing is required when the message body contains wikitext,
but it is also required when one of the parameters is a jQuery object.

Without this change, the following doesn't work:
mw.messages.set( 'foo', 'Hello $1' );
mw.message( 'foo', $( '<a>' ).text( 'World' ) ).parse();

(But if the message contained e.g. {{PLURAL:}} syntax, it did work.)

Change-Id: I445f9194bb8b2ed35baafbda30d1d0d008b64e2c

5 years agoRELEASE-NOTES-1.32: Add entries for all changes to DefaultSettings.php
James D. Forrester [Thu, 4 Oct 2018 00:51:15 +0000 (17:51 -0700)]
RELEASE-NOTES-1.32: Add entries for all changes to DefaultSettings.php

Change-Id: Iae1122ef69940ca208d30dcd9554af8b7f60ac74

5 years agoAPI: Allow prop=info intestactions to return reasons
Brad Jorsch [Thu, 27 Sep 2018 15:04:24 +0000 (11:04 -0400)]
API: Allow prop=info intestactions to return reasons

T194585 raises a use case for callers to be able to know why an action
is not allowed. We can make that possible easily enough. The default
remains to return only a boolean.

This also deprecates inprop=readable in favor of intestactions=read,
since they both just return `$title->userCan( 'read', $user )`.

(ApiQueryInfoTest added by David Barratt)

Bug: T194585
Change-Id: Ib880f0605880eac776d816ea04e0c7ab9cfbaab1
Co-Authored-By: David Barratt <dbarratt@wikimedia.org>
5 years agoMerge "Update ImportableUploadRevisionImporter for interwiki usernames"
jenkins-bot [Tue, 16 Oct 2018 16:17:59 +0000 (16:17 +0000)]
Merge "Update ImportableUploadRevisionImporter for interwiki usernames"

5 years agoMerge "Have maintenance/updateExtensionJsonSchema.php copy documentation"
jenkins-bot [Tue, 16 Oct 2018 16:10:24 +0000 (16:10 +0000)]
Merge "Have maintenance/updateExtensionJsonSchema.php copy documentation"

5 years agoConvert Special:EmailUser to use OOUIHTMLForm
Florian [Fri, 22 Jul 2016 15:41:17 +0000 (17:41 +0200)]
Convert Special:EmailUser to use OOUIHTMLForm

It already used HTMLForm for the main form, but the form, which asked for
the username didn't.

Converted the "Enter username" form to use HTMLForm and show it, if no user-
name was passed to the form, show the main "Send e-mail" form, instead.

Extra points:
 - Let HTMLForm::setSubmit*() function return it's own HTMLForm instance

This basically is a squashed version of these changes:
I6231577047c93781496e0f8af6809e2ef49e662a
I3e0c02155428ae400bc3a6d3ed2e66e69ee441fa

Bug: T117791
Change-Id: If8bf42b2bd092706f2e580083b2400121d35c41c

5 years agoHave maintenance/updateExtensionJsonSchema.php copy documentation
Brad Jorsch [Tue, 16 Oct 2018 15:12:43 +0000 (11:12 -0400)]
Have maintenance/updateExtensionJsonSchema.php copy documentation

It already skips version-1 style documentation keys that begin with "@".
It should also copy them into the "description" metadata key for
version 2.

Change-Id: I460568f074b9c0256eb6bbbcd0b046b16e0d8790

5 years agoUpdate ImportableUploadRevisionImporter for interwiki usernames
Brad Jorsch [Tue, 16 Oct 2018 14:47:44 +0000 (10:47 -0400)]
Update ImportableUploadRevisionImporter for interwiki usernames

This was somehow missed in I5401941c.

Bug: T206013
Change-Id: Ia618b05329e6cbfca7c95d9161f12ba4150705c8

5 years agoAdd session_write_close() calls to SessionManager tests
Brad Jorsch [Tue, 16 Oct 2018 14:22:33 +0000 (10:22 -0400)]
Add session_write_close() calls to SessionManager tests

PHP 7.3 doesn't like it if session_id() is called when the session has
been started, so we need to be sure to close it first in a few tests.

Bug: T207112
Change-Id: Ief36c1bb7b5c9066f158b5bb0d6d785a7f7ddd3c

5 years agoAvoid fatals when the filter tags is empty
Amir Sarabadani [Tue, 16 Oct 2018 11:02:45 +0000 (13:02 +0200)]
Avoid fatals when the filter tags is empty

Bug: T194164
Change-Id: I418cbe2259e7c1622a58a4a310a3cd56873f16c3

5 years agoMigrate some wfWikiId() callers to getLocalDomainID()
Aaron Schulz [Mon, 15 Oct 2018 22:20:50 +0000 (15:20 -0700)]
Migrate some wfWikiId() callers to getLocalDomainID()

Change-Id: I33fe222b7ca66babd61610febaebcf52d3806a7d

5 years agoMerge "Simplify `list-style` property"
jenkins-bot [Tue, 16 Oct 2018 05:28:33 +0000 (05:28 +0000)]
Merge "Simplify `list-style` property"

5 years agoMerge "Fix warning in doEditSectionLink() caused by not-yet-unstubbed $wgLang"
jenkins-bot [Tue, 16 Oct 2018 03:04:06 +0000 (03:04 +0000)]
Merge "Fix warning in doEditSectionLink() caused by not-yet-unstubbed $wgLang"

5 years agoMerge "API: Ignore expired blocks in ApiQueryBase::showHiddenUsersAddBlockInfo()"
jenkins-bot [Mon, 15 Oct 2018 23:07:47 +0000 (23:07 +0000)]
Merge "API: Ignore expired blocks in ApiQueryBase::showHiddenUsersAddBlockInfo()"

5 years agoMerge "LocalisationCache: Avoid use of compact()"
jenkins-bot [Mon, 15 Oct 2018 22:34:25 +0000 (22:34 +0000)]
Merge "LocalisationCache: Avoid use of compact()"

5 years agoMerge "API: Remove long-deprecated methods (and one class)"
jenkins-bot [Mon, 15 Oct 2018 22:34:20 +0000 (22:34 +0000)]
Merge "API: Remove long-deprecated methods (and one class)"

5 years agoPrepare for REL1_32 cut, labelling master as 1.33-alpha
James D. Forrester [Mon, 15 Oct 2018 21:58:59 +0000 (14:58 -0700)]
Prepare for REL1_32 cut, labelling master as 1.33-alpha

Change-Id: I41c19a63d20dc4e734430ad4fe989fa5a9e18d62

5 years agoMerge "CREDITS: Bump for 1.32.0 release"
jenkins-bot [Mon, 15 Oct 2018 21:48:29 +0000 (21:48 +0000)]
Merge "CREDITS: Bump for 1.32.0 release"

5 years agoAPI: Remove long-deprecated methods (and one class)
Brad Jorsch [Wed, 10 Oct 2018 17:55:09 +0000 (13:55 -0400)]
API: Remove long-deprecated methods (and one class)

* ApiBase::profileIn() (deprecated in 1.25)
* ApiBase::profileOut() (deprecated in 1.25)
* ApiBase::safeProfileOut() (deprecated in 1.25)
* ApiBase::profileDBIn() (deprecated in 1.25)
* ApiBase::profileDBOut() (deprecated in 1.25)
* ApiBase::dieUsage() (deprecated in 1.29)
* ApiBase::dieUsageMsg() (deprecated in 1.29)
* ApiBase::dieUsageMsgOrDebug() (deprecated in 1.29)
* ApiBase::getErrorFromStatus() (deprecated in 1.29)
* ApiBase::parseMsg() (deprecated in 1.29)
* ApiBase::setWarning() (deprecated in 1.29)
* ApiPageSet::getInvalidTitles() (deprecated in 1.26)
* ApiQueryLogEvents::addLogParams() (deprecated in 1.25)
* ApiUsageException::getCodeString() (deprecated in 1.29)
* ApiUsageException::getMessageArray() (deprecated in 1.29)
* UsageException (deprecated in 1.29)

Change-Id: Iabb2589a29cc3b46624d31358f3a6bf7b3ccbd57

5 years agoLocalisationCache: Avoid use of compact()
Kunal Mehta [Mon, 15 Oct 2018 07:17:38 +0000 (00:17 -0700)]
LocalisationCache: Avoid use of compact()

In PHP 7.3, compact() now raises notices if the variable is undefined, which
is something that we expect. So we can check whether the key exists instead
of bothering with compat() and suppressing warnings.

Bug: T206979
Change-Id: I612049db4debd850a2e6d10bc631d31aa17be898

5 years agoFix warning in doEditSectionLink() caused by not-yet-unstubbed $wgLang
Edward Chernenko [Mon, 15 Oct 2018 01:39:29 +0000 (04:39 +0300)]
Fix warning in doEditSectionLink() caused by not-yet-unstubbed $wgLang

In ParserOutput::getText(), $wgLang can be a StubUserLang object,
which causes a typecheck warning in doEditSectionLink().

Solution is to replace $wgLang with $context->getLanguage(),
which is always a Language object.

Change-Id: I9945e1615c3f1b7ed5c7897b9f67d7ca0450ee50

5 years agoSimplify `list-style` property
Volker E [Mon, 15 Oct 2018 20:03:13 +0000 (13:03 -0700)]
Simplify `list-style` property

Using `none none` value is also working on older IEs, which had
issues with shorthand only `list-style: none`.

Change-Id: I7d4b075ac90fd902e0c0fbc3e11449faf71fe9b2

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 15 Oct 2018 19:57:04 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4b631605549ac3599ca01d59fa69e35fad6c879e

5 years agoCREDITS: Bump for 1.32.0 release
James D. Forrester [Fri, 12 Oct 2018 17:31:55 +0000 (10:31 -0700)]
CREDITS: Bump for 1.32.0 release

Change-Id: I2187346003a53874c559fcfe23ee94d822829794

5 years agoUse "break" instead of "continue" inside a switch
RazeSoldier [Mon, 15 Oct 2018 15:58:26 +0000 (23:58 +0800)]
Use "break" instead of "continue" inside a switch

"continue" statements in a switch are equivalent to "break". In PHP 7.3, will generate a warning.

Bug: T206974
Change-Id: I54bcec013ff52ab81bff09f8f7ef02f3944a5b7d

5 years agoAPI: Ignore expired blocks in ApiQueryBase::showHiddenUsersAddBlockInfo()
Brad Jorsch [Mon, 15 Oct 2018 15:21:44 +0000 (11:21 -0400)]
API: Ignore expired blocks in ApiQueryBase::showHiddenUsersAddBlockInfo()

This probably went unnoticed for so long because expired blocks are
regularly cleared as long as new blocks continue being issued, so people
found that the problem "fixed" itself.

Bug: T206944
Change-Id: I6559e1ec23f4469d19684b4d931913acbccb56d4