Stephane Bisson [Fri, 15 Dec 2017 14:00:34 +0000 (09:00 -0500)]
RCLFilters: change working of 'to-and-from' selector
Bug: T172161
Change-Id: I749d7d4ba383daa79685da389d27bde832a508c2
jenkins-bot [Fri, 15 Dec 2017 05:25:11 +0000 (05:25 +0000)]
Merge "RevisionTest: Use utf-8 as name in iconv"
Umherirrender [Fri, 8 Dec 2017 13:55:06 +0000 (14:55 +0100)]
RevisionTest: Use utf-8 as name in iconv
utf8 is an alias that doesn't work with all PHP installations.
Change-Id: Ief6e5d8b73c9b4a6614430b699f3399b8137689a
jenkins-bot [Fri, 15 Dec 2017 05:04:01 +0000 (05:04 +0000)]
Merge "Split limit report out of Parser::parse()"
Reedy [Fri, 8 Dec 2017 03:09:15 +0000 (03:09 +0000)]
Remove WatchedItem constants and methods deprecated in REL1_27
Remove associated tests
Bug: T182381
Change-Id: I0214250a7cb81518074a14e35590370b13d4ba64
jenkins-bot [Fri, 15 Dec 2017 04:35:21 +0000 (04:35 +0000)]
Merge "ContentHandler: simplify tag tests"
Framawiki [Tue, 12 Dec 2017 18:21:02 +0000 (19:21 +0100)]
ContentHandler: simplify tag tests
Follows up
62713be990.
Change-Id: Id1f7e6ae470b461e26ef8b7346f715873ccea4c9
jenkins-bot [Fri, 15 Dec 2017 04:26:04 +0000 (04:26 +0000)]
Merge "Localise some special pages into Korean (ko)"
Yongmin Hong [Tue, 12 Dec 2017 11:47:13 +0000 (20:47 +0900)]
Localise some special pages into Korean (ko)
* Synced from MessageEn.php
* Change Special:ListGroupRights so it's less ambigious
Change-Id: I1dfac96825850cdcda135b2e1ce3e19cf71e99e9
Signed-off-by: Yongmin Hong <revi@pobox.com>
Kunal Mehta [Fri, 15 Dec 2017 03:20:51 +0000 (19:20 -0800)]
Fix @covers tags to use absolute class names in Storage tests
PHPUnit doesn't support use statements when evaluating @covers tags.
Change-Id: I7f649afd3e417a6b71b2f61c6ff59be5f404be8f
jenkins-bot [Fri, 15 Dec 2017 01:33:55 +0000 (01:33 +0000)]
Merge "XMPReader: Log filename if available"
jenkins-bot [Fri, 15 Dec 2017 00:26:44 +0000 (00:26 +0000)]
Merge "mw.rcfilters.ui.MenuSelectWidget: Always open this menu downwards"
Bartosz Dziewoński [Thu, 14 Dec 2017 22:56:40 +0000 (23:56 +0100)]
OOjs UI: Backport Iad4a2fd1bd985b4924e5ef1f822e1ea81ce0a988
Bug: T182359
Bug: T182395
Change-Id: I764a96780e418830e5c92ec57c50f549951ff47f
jenkins-bot [Thu, 14 Dec 2017 22:50:58 +0000 (22:50 +0000)]
Merge "[MCR] Tests for RevisionStore & Related classes"
jenkins-bot [Thu, 14 Dec 2017 22:50:51 +0000 (22:50 +0000)]
Merge "[MCR] Break Revision into RevisionRecord and RevisionStore"
jenkins-bot [Thu, 14 Dec 2017 22:31:43 +0000 (22:31 +0000)]
Merge "mediawiki.loader: Fix logError() not to print exceptions twice"
jenkins-bot [Thu, 14 Dec 2017 21:57:45 +0000 (21:57 +0000)]
Merge "Add dropSequence to postgres"
Translation updater bot [Thu, 14 Dec 2017 20:59:04 +0000 (21:59 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I0e9482e99525f1fa6fd791f09597abd91485342b
Timo Tijhof [Wed, 13 Dec 2017 22:45:45 +0000 (23:45 +0100)]
mediawiki.loader: Fix logError() not to print exceptions twice
Current behaviour results in:
Chrome 65 (initial)
> ▶ [WARN] Error: foo Error: foo
> at bar
> at main
Chrome 65 (expanded)
> ▼ [WARN] Error: foo Error: foo
> at bar
> at main
> at logError
> at main
Safari 11 (initial)
> ▶ [WARN] Error: foo, Error: foo
Safari 11 (expanded)
> ▼ [WARN] Error: foo is undefined
> * Error: foo is undefined
> at bar
> at main
Firefox 57
> [WARN] Error: foo | Error: foo
> | Stacktrace:
> | bar
> | main
I don't recall why I did it this way, but it seems redundant.
This commit effectively removes the first "Error: foo"
Change-Id: Idc5dee34ce2b5068e3a2d8800e2b5f6b879525d1
Yifei He [Wed, 13 Dec 2017 09:41:03 +0000 (17:41 +0800)]
Avoid using array_map in ExtensionRegistry and ExtensionProcessor for simple operations
Bug: T182645
Change-Id: Ia98b1d798b1f93ca30686c009d479668616229ae
addshore [Wed, 15 Nov 2017 12:02:40 +0000 (12:02 +0000)]
[MCR] Tests for RevisionStore & Related classes
Code introduced in:
I140f43a6fb443b38483f41f268c906b9cea64cf7
Change-Id: Iefad870baf2d16f12e9901b303246c64d6431ca6
jenkins-bot [Thu, 14 Dec 2017 03:22:29 +0000 (03:22 +0000)]
Merge "Change EnqueueJob docs to discourage obsolete use-cases"
Aaron Schulz [Wed, 6 Dec 2017 21:15:22 +0000 (13:15 -0800)]
Change EnqueueJob docs to discourage obsolete use-cases
Bug: T181216
Change-Id: I9332d26ae9a74c3721cff9c497d5356f05efb428
Pppery [Thu, 14 Dec 2017 01:56:14 +0000 (20:56 -0500)]
Fix manual IN queries in checkStorage.php
Bug: T182689
Change-Id: Ifca7bd6d0385dd470cddc483f4641eeb2832580c
jenkins-bot [Thu, 14 Dec 2017 00:47:19 +0000 (00:47 +0000)]
Merge "Track which namespaces edit conflicts are resolved in"
jenkins-bot [Wed, 13 Dec 2017 23:29:37 +0000 (23:29 +0000)]
Merge "RCFilters: Change findHighlightedItem due to deprecation"
jenkins-bot [Wed, 13 Dec 2017 23:09:25 +0000 (23:09 +0000)]
Merge "Convert includes/Feed.php to Mustache templates"
Moriel Schottlender [Wed, 13 Dec 2017 22:58:40 +0000 (14:58 -0800)]
RCFilters: Change findHighlightedItem due to deprecation
SelectWidget's getHighlightedItem was deprecated and switched with
findHighlightedItem, see T76630
Change-Id: I90535c9f72d9a63e8e8d4184cc85aaf77e7b454c
daniel [Sun, 27 Aug 2017 15:29:18 +0000 (17:29 +0200)]
[MCR] Break Revision into RevisionRecord and RevisionStore
Bug: T174025
Change-Id: I140f43a6fb443b38483f41f268c906b9cea64cf7
Translation updater bot [Wed, 13 Dec 2017 21:58:52 +0000 (22:58 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I10dac54f4429e4fdec8f0e3d32b7f9ed1c16bc22
jenkins-bot [Wed, 13 Dec 2017 21:23:28 +0000 (21:23 +0000)]
Merge "mediawiki.loader: Avoid jQuery for simple creation and selection"
jenkins-bot [Wed, 13 Dec 2017 21:14:28 +0000 (21:14 +0000)]
Merge "RCLFilters: display target page as a title"
jenkins-bot [Wed, 13 Dec 2017 21:12:15 +0000 (21:12 +0000)]
Merge "Fix autoloading of ExportProgressFilter"
Albert221 [Wed, 13 Dec 2017 16:59:45 +0000 (17:59 +0100)]
Fix autoloading of ExportProgressFilter
Bug: T177239
Change-Id: Ieb5d5aa78d569af8cd8f8bfa32ce10a33482cb84
Stephane Bisson [Wed, 6 Dec 2017 21:57:40 +0000 (16:57 -0500)]
RCLFilters: display target page as a title
* Url decode target param
* Pass through mw.Title to convert underscores to spaces
Bug: T182164
Change-Id: Iabb0d8ea2b9f93f943e8493ee0a29d3bee3b3682
jenkins-bot [Wed, 13 Dec 2017 20:28:24 +0000 (20:28 +0000)]
Merge "resourceloader: Use document.head instead of getElementsByTagName"
Pppery [Tue, 12 Dec 2017 00:58:41 +0000 (19:58 -0500)]
Convert includes/Feed.php to Mustache templates
Bug: T182212
Change-Id: Ic198efb6a46ecc2d8b8b49ab594205d69a03efdb
jenkins-bot [Wed, 13 Dec 2017 20:12:45 +0000 (20:12 +0000)]
Merge "Follow-up Ib933de3a3f: remove unnecessary override from SpecialWatchlist"
Roan Kattouw [Wed, 13 Dec 2017 19:29:55 +0000 (11:29 -0800)]
Follow-up Ib933de3a3f: remove unnecessary override from SpecialWatchlist
isStructuredFilterUiEnabledByDefault() should no longer be overridden,
overrides should be put in the static checkStructuredFilterUiEnabled()
instead. That function was already added, but the duplicated non-static
function wasn't removed.
It looks to me that ?rcfilters=1 shouldn't have been working on
Watchlist for this reason, but it was working, and I can't figure out
why.
Change-Id: Iaf962b4e0428e262b57dc12ee0ba2cb6f854eb7e
Timo Tijhof [Wed, 13 Dec 2017 19:27:41 +0000 (20:27 +0100)]
mediawiki.loader: Avoid jQuery for simple creation and selection
Use document.createElement and document.head instead.
Change-Id: Ia0f981da34f9f8dbc328e46a44511b2573b4e1b8
Timo Tijhof [Wed, 13 Dec 2017 19:24:19 +0000 (20:24 +0100)]
resourceloader: Use document.head instead of getElementsByTagName
Supported in all Grade A browsers. Also already being used
by jquery.js (without fallback), which we depend on.
Browser support (per MDN):
- Desktop: Chrome 4+, FF 4+, Edge, IE 9+, Opera 11+, Safari 5+
- Mobile: Android, Edge, FF Mobile 4+, IE Mobile 9+, Opera Mobile,
Mobile Safari
(Those without numbers, have support since their initial release)
Change-Id: I2e9820de8463518a14a0d679d1f339c3a2f9dc66
jenkins-bot [Wed, 13 Dec 2017 18:55:37 +0000 (18:55 +0000)]
Merge "RCLFilters: support target page with a subpage"
Stephane Bisson [Wed, 13 Dec 2017 18:29:43 +0000 (13:29 -0500)]
RCLFilters: support target page with a subpage
Correctly extract the target page when it has a subpage.
Examples (taken from unit tests):
http://host/wiki/Special:RecentChangesLinked/Moai/Sub1
http://host/wiki/Special:RecentChangesLinked/Category:Foo/Bar
http://host/w/index.php?title=Special:RecentChangesLinked/Moai/Sub1
Bug: T182734
Change-Id: Id6909728f461a3cd687185abd304f2fac5dc6000
jenkins-bot [Wed, 13 Dec 2017 18:28:30 +0000 (18:28 +0000)]
Merge "RCFilters: Fix live update"
Stephane Bisson [Wed, 13 Dec 2017 15:10:41 +0000 (10:10 -0500)]
RCFilters: Fix live update
When Id55702ecbe6b96ee57453d4f86f20bd94a401d7c
introduced the MainWrapperWidget, it changed
the order on initialization, which prevents
ChangesListViewModel from getting the initial
value of the 'from' parameter and thus
disables polling for new changes.
This patch ensures ChangesListViewModel is
given the initial form in its constructor
so it can extract what it needs from it
before the page DOM is being transformed.
Bug: T182788
Change-Id: I1b72790194877ff0f200c87e4f40a942f1ccac3b
petarpetkovic [Wed, 13 Dec 2017 14:29:25 +0000 (15:29 +0100)]
Fix getNamespace error
In mw.rcfilters.init file, getNamespace method is introduced in Id55702ecbe.
That method is invoked through 'this' context, which can be different
depending on how init method is invoked, which can lead to errors,
causing RCFilters not to render correctly.
Change-Id: Ifd9cb49e547077c622a5a3757361a85d99283f62
petarpetkovic [Mon, 6 Nov 2017 19:03:12 +0000 (20:03 +0100)]
Provide personal tools getter
- Add public function to get user's personal tools.
- Add new level of abstraction to the creation on personal tools list items,
by enabling user to provide list of personal tools.
Change-Id: I549376af6f7380dbadfb5f3f7f7171bbe64cccd7
jenkins-bot [Wed, 13 Dec 2017 09:35:58 +0000 (09:35 +0000)]
Merge "Add parameter for query/search to fetch augmented data."
C. Scott Ananian [Tue, 12 Dec 2017 22:52:02 +0000 (17:52 -0500)]
Sync up with Parsoid parserTests.txt
This now aligns with Parsoid commit
741fc5dc0f683df8d81bc09843734dad966138bd
Change-Id: I5a40b9410bbf421e22e37063785446db25e7af42
Bartosz Dziewoński [Tue, 12 Dec 2017 22:30:04 +0000 (23:30 +0100)]
mw.rcfilters.ui.MenuSelectWidget: Always open this menu downwards
Bug: T182711
Change-Id: I6da6cbe53026a4407160c056f6cb4bcb47553049
Translation updater bot [Tue, 12 Dec 2017 21:22:00 +0000 (22:22 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I81cc494f3e476d9699cb7ad3ee978e61b3f5524f
Translation updater bot [Tue, 12 Dec 2017 21:01:23 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ibcdae5b4477c05b7cfd46c49c62160cd845ebc52
Valerio Bozzolan [Fri, 3 Nov 2017 01:46:52 +0000 (02:46 +0100)]
Added an optional $maxdepth to CategoryFinder
Bug: T179065
Change-Id: I760bb75aa9f14d55456ea2d604a4c25234826403
jenkins-bot [Tue, 12 Dec 2017 20:13:21 +0000 (20:13 +0000)]
Merge "Absolutely position legend only on new RCFilters"
jenkins-bot [Tue, 12 Dec 2017 17:48:47 +0000 (17:48 +0000)]
Merge "Allow users to prevent new users from sending them email."
jenkins-bot [Tue, 12 Dec 2017 14:41:36 +0000 (14:41 +0000)]
Merge "maintenance: Replace manual IN query with select wrapper"
jenkins-bot [Tue, 12 Dec 2017 13:17:23 +0000 (13:17 +0000)]
Merge "SpecialListgrouprights: Fix "Namespace restrictions" header ID"
jenkins-bot [Tue, 12 Dec 2017 13:13:07 +0000 (13:13 +0000)]
Merge "Linker: Use Parser::guessSectionNameFromStrippedText()"
jenkins-bot [Tue, 12 Dec 2017 13:10:55 +0000 (13:10 +0000)]
Merge "Parser: Add guessSectionNameFromStrippedText() and refactor"
petarpetkovic [Tue, 12 Dec 2017 12:52:39 +0000 (13:52 +0100)]
Absolutely position legend only on new RCFilters
- Don't use absolute positioning on legend when user opts out of
improved version of Recent Changes, or disables "New filters for edit review"
beta feature to opt out of improved version of Watchlist.
Bug: T182363
Change-Id: Ib02372ab7ad97f3f50764ad612e38096f92131ad
Yifei He [Tue, 12 Dec 2017 11:27:54 +0000 (19:27 +0800)]
maintenance: Replace manual IN query with select wrapper
Bug: T182208
Change-Id: I4c410bc1f7a57efacda4ac71a074a8a8ee2d1d98
David Barratt [Tue, 14 Nov 2017 21:49:52 +0000 (16:49 -0500)]
Allow users to prevent new users from sending them email.
Users now have the option to prevent Newbie users from sending
them emails.
Bug: T138165
Change-Id: I5d5332e50971fbcd1fa630d6bd03bdf757a9d1f1
jenkins-bot [Tue, 12 Dec 2017 00:37:08 +0000 (00:37 +0000)]
Merge "Enable using PSR-4 autoloader for MediaWiki core and extensions"
Kunal Mehta [Thu, 24 Aug 2017 18:05:26 +0000 (11:05 -0700)]
Enable using PSR-4 autoloader for MediaWiki core and extensions
This adds support for a PSR-4 (<http://www.php-fig.org/psr/psr-4/>)
autoloader, so instead of needing to manually list each class, just the
namespace prefix is needed.
Extensions can set a "AutoloadNamespaces" property in extension.json to
register PSR-4 compatible namespaces to be autoloaded.
The implementation is based off of the example implementation
(<http://www.php-fig.org/psr/psr-4/examples/>) with some modifications
for performance, notably cutting down on function calls, and only trying
to look up classes that are namespaced.
The generateLocalAutoload.php script will ignore any directory that is
registered as a PSR-4 namespace.
Bug: T99865
Bug: T173799
Change-Id: Id095dde37cbb40aa424fb628bd3c94e684ca2f65
Translation updater bot [Mon, 11 Dec 2017 22:01:37 +0000 (23:01 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I0431dc404595d6d9bcf2bbfe0b11ff68fb1fce38
Lucas Werkmeister [Mon, 11 Dec 2017 17:27:47 +0000 (18:27 +0100)]
Remove unused 'pool' param from WANObjectCache::newEmpty()
The 'pool' parameter was removed in commit
09a0a5e4f6 (change
I5631eb1b13), retaining it in this helper method just confuses people
who read the code.
Change-Id: I7907a1fc4c613362d74e9045bc7dc41bbd9bf815
Translation updater bot [Sun, 10 Dec 2017 20:55:53 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ib628edb905b75ef65201955e756baf171a716699
Umherirrender [Sun, 10 Dec 2017 10:40:05 +0000 (11:40 +0100)]
Fix test class names to match convention
The test class should have Test at end
and same name as the testing class
Change-Id: Id0c90994d257fb325834e123b462f7f0849ac556
Translation updater bot [Sat, 9 Dec 2017 20:55:49 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I004706649eae504f560219442ff44054eb6dca6c
jenkins-bot [Sat, 9 Dec 2017 06:33:26 +0000 (06:33 +0000)]
Merge "Add @covers for includes/shell/ tests"
Kunal Mehta [Sat, 9 Dec 2017 06:08:28 +0000 (22:08 -0800)]
Add @covers for includes/shell/ tests
Change-Id: I495c64622f39ad7e0343e8341771d5a4a3449e97
jenkins-bot [Sat, 9 Dec 2017 04:50:46 +0000 (04:50 +0000)]
Merge "Chinese Conversion Table Update 2017-5"
jenkins-bot [Fri, 8 Dec 2017 23:44:26 +0000 (23:44 +0000)]
Merge "Remove references to deleted $this->debug in installer"
jenkins-bot [Fri, 8 Dec 2017 23:34:49 +0000 (23:34 +0000)]
Merge "Prevent new users from being sent emails"
Albert221 [Fri, 8 Dec 2017 23:33:01 +0000 (00:33 +0100)]
Remove references to deleted $this->debug in installer
Bug: T182210
Change-Id: Id4c574ae08f8f3bccc33e71781b3f66fa4430040
Reedy [Fri, 8 Dec 2017 22:02:47 +0000 (22:02 +0000)]
Move RELEASE-NOTES-1.30 into HISTORY
Change-Id: I77e26c8e2b2bbb6a07b355c20af764de4e005dd1
Translation updater bot [Fri, 8 Dec 2017 21:12:34 +0000 (22:12 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I7415227005ae3cefd9781989c06e9129f5405d6a
jenkins-bot [Fri, 8 Dec 2017 21:06:32 +0000 (21:06 +0000)]
Merge "Add tabindex to Special:Upload in mw-editTools"
jenkins-bot [Fri, 8 Dec 2017 20:42:49 +0000 (20:42 +0000)]
Merge "Cast block start to int in maintenace SQL"
Phantom42 [Fri, 8 Dec 2017 19:35:38 +0000 (21:35 +0200)]
Cast block start to int in maintenace SQL
Bug: T182209
Change-Id: Ic2dbbacdf0a77b8ac531cff8e11be0da8014e083
Roan Kattouw [Fri, 8 Dec 2017 20:00:58 +0000 (12:00 -0800)]
RCFilters: Add class back on "show new changes" link
Removing this class broke gadgets. The class I'm adding is not the
same that was there before, but at least this way there is a class at
all.
Bug: T173614
Change-Id: Ib39b0872f09f1b229ac06fdda79b8f9813b4d249
jenkins-bot [Fri, 8 Dec 2017 18:50:35 +0000 (18:50 +0000)]
Merge "ApiFeedWatchlist: Use guessSectionNameFromWikiText()"
David Sn [Thu, 7 Dec 2017 12:55:10 +0000 (12:55 +0000)]
Add tabindex to Special:Upload in mw-editTools
Bug: T25238
Change-Id: I2b581667aaf0f95c9c0f189f5bf5e852c12fd3cd
jenkins-bot [Fri, 8 Dec 2017 17:52:22 +0000 (17:52 +0000)]
Merge "ApiQueryBase: Fix addWhereFld for PHP 7.2"
jenkins-bot [Fri, 8 Dec 2017 17:46:41 +0000 (17:46 +0000)]
Merge "Revert replacing textarea in Special:Undelete with OOUI"
Brad Jorsch [Fri, 8 Dec 2017 16:46:58 +0000 (11:46 -0500)]
ApiQueryBase: Fix addWhereFld for PHP 7.2
Idfe23a07d didn't go far enough with this method, it can be passed
arbitrary other scalars in addition to null and arrays.
Bug: T182377
Change-Id: I63ec23f70d6d7ad638aa382b740ec44d0ca47f85
jenkins-bot [Fri, 8 Dec 2017 17:26:35 +0000 (17:26 +0000)]
Merge "Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat"
Albert221 [Fri, 8 Dec 2017 17:06:41 +0000 (18:06 +0100)]
Revert replacing textarea in Special:Undelete with OOUI
OOUI's MultilineTextInputWidget has max-width which
breaks page appearance (textarea is about half the width
of a 1080p monitor).
Bug: T182398
Change-Id: I6fa37afd9a3636f1b0836678240e2866b7676c29
Brad Jorsch [Fri, 8 Dec 2017 16:55:52 +0000 (11:55 -0500)]
Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat
When this test was added in Ifb2e392d3, it did not pass the correct
number of arguments to ApiFormatXml::recXmlPrint().
Bug: T182368
Change-Id: I63aee08307054137c6b50b6fbd271e03f6d4e45f
Phantom42 [Fri, 8 Dec 2017 14:58:04 +0000 (16:58 +0200)]
Add quotes to comment based strip markers
Bug: T180159
Change-Id: Ic9dbb8ef3948fe751d16c3963769b616b5db2fc7
petarpetkovic [Tue, 7 Nov 2017 16:55:37 +0000 (17:55 +0100)]
Add overlay to list of changes
- Prevent users from accidentally clicking links on filtered results,
when RCFilters dropdown menu is opened, by adding overlay which closes
dropdown menu.
- Introduce MainWrapperWidget, to factor out some of the logic from
the init file.
Bug: T177626
Change-Id: Id55702ecbe6b96ee57453d4f86f20bd94a401d7c
Tim Starling [Fri, 8 Dec 2017 05:33:05 +0000 (16:33 +1100)]
Split limit report out of Parser::parse()
It was 100 lines. Also update a few nearby comments. The one about just
handling <nowiki> sections was actually written by Lee, and is
hilariously outdated now.
Change-Id: I12ee2a7e488a3c787b36d3a457c6166bbbb46aff
jenkins-bot [Fri, 8 Dec 2017 05:13:15 +0000 (05:13 +0000)]
Merge "Fix maintenance script failure when run as a child of a FastCGI worker"
Tim Starling [Fri, 8 Dec 2017 04:34:23 +0000 (15:34 +1100)]
Fix maintenance script failure when run as a child of a FastCGI worker
Use PHP_SAPI==cli instead of checking $_SERVER['REQUEST_METHOD'],
since $_SERVER is populated from the environment when running HHVM in
CLI mode. Environment variables set by a FastCGI worker thus leak
through to child processes run via the shell, and cause this check to
fail.
When I wrote this check in March 2004 (r2803), I didn't know about
PHP_SAPI. Checking PHP_SAPI is quite sufficient to prevent web execution,
we use it in other places.
Bug: T111441
Change-Id: Iad8469ee25df4b0e0c2371e7975a300b1695dd8d
jenkins-bot [Fri, 8 Dec 2017 02:24:38 +0000 (02:24 +0000)]
Merge "Preferences: Display the default skin first in the list"
jenkins-bot [Fri, 8 Dec 2017 02:20:27 +0000 (02:20 +0000)]
Merge "Preferences: Sort list of skins by internal name"
jenkins-bot [Fri, 8 Dec 2017 02:18:36 +0000 (02:18 +0000)]
Merge "Make travis test against PHP 7.2"
jenkins-bot [Fri, 8 Dec 2017 02:18:13 +0000 (02:18 +0000)]
Merge "Fix missing if from $wgDBssl comment"
Reedy [Fri, 8 Dec 2017 01:34:34 +0000 (01:34 +0000)]
Fix missing if from $wgDBssl comment
Change-Id: I46d1a87c990198090fd322da3193014487e871e6
jenkins-bot [Fri, 8 Dec 2017 00:16:41 +0000 (00:16 +0000)]
Merge "Add custom collation for Northern Sami"