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

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

Change-Id: I2fb218fe026c5ffee081fb8aaee7b154a8732bdc

8 years agoConvert all array() syntax to []
Kunal Mehta [Wed, 17 Feb 2016 09:09:32 +0000 (01:09 -0800)]
Convert all array() syntax to []

Per wikitech-l consensus:
 https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Notes:
* Disabled CallTimePassByReference due to false positives (T127163)

Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b

8 years agoMerge "Update OOjs UI to v0.15.4"
jenkins-bot [Wed, 17 Feb 2016 02:26:22 +0000 (02:26 +0000)]
Merge "Update OOjs UI to v0.15.4"

8 years agoMerge "Remove obsolete ignored path from maintenance/checkSyntax.php"
jenkins-bot [Wed, 17 Feb 2016 02:13:45 +0000 (02:13 +0000)]
Merge "Remove obsolete ignored path from maintenance/checkSyntax.php"

8 years agoUpdate OOjs UI to v0.15.4
James D. Forrester [Wed, 17 Feb 2016 02:10:44 +0000 (18:10 -0800)]
Update OOjs UI to v0.15.4

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.15.4/History.md

Change-Id: I29c8db4c654ecf575113199ace1006d70ce29012

8 years agoMerge "CookieSessionProvider: It's persisted if we have a 'Token' cookie"
jenkins-bot [Tue, 16 Feb 2016 23:55:44 +0000 (23:55 +0000)]
Merge "CookieSessionProvider: It's persisted if we have a 'Token' cookie"

8 years agoRemove obsolete ignored path from maintenance/checkSyntax.php
Ricordisamoa [Tue, 16 Feb 2016 23:45:38 +0000 (00:45 +0100)]
Remove obsolete ignored path from maintenance/checkSyntax.php

includes/NamespaceCompat.php has been deleted in 2010
with commit 38e663d0eda5ba2be6ca8b71050ea020a64ea8cf

Change-Id: I258a6e458c55871279895f2a78e076ea79e91f44

8 years agoMerge "Remove PHP < 5.3 support from maintenance/checkSyntax.php"
jenkins-bot [Tue, 16 Feb 2016 23:40:51 +0000 (23:40 +0000)]
Merge "Remove PHP < 5.3 support from maintenance/checkSyntax.php"

8 years agoMerge "Stop using SiteConfiguration::isLocalVHost()"
jenkins-bot [Tue, 16 Feb 2016 23:19:38 +0000 (23:19 +0000)]
Merge "Stop using SiteConfiguration::isLocalVHost()"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 16 Feb 2016 21:41:11 +0000 (22:41 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I845f2abb9f2c602be7a8acb732a25c6c85ac2b36

8 years agoFix not-loaded DbPageLanguage when Title::getPageLanguage() get's called
Florian [Sat, 19 Dec 2015 15:25:45 +0000 (16:25 +0100)]
Fix not-loaded DbPageLanguage when Title::getPageLanguage() get's called

If the Title object isn't the title of the current viewed WikiPage, the page_lang
field of the database isn't requested. This results in the problem, that
Title::getPageLanguage() always returns the default content language, even if
the page language is different (changed with Special:PageLanguage, if
wgPageLanguageUseDB is true). That is problematic for the Translate extension,
which relies on the correct page language.

This change makes sure, that getPageLanguage() always return the correct page
language. If the page language isn't loaded already, Title::getPageLanguage()
now does a database lookup (if $wgPageLanguageUseDB is true) to get the correct
page language. It will use LinkCache for the page_lang field.

Bug: T121666
Change-Id: I0ae5ea39f7a124ed427ca5dfb26c1a116b27a94e

8 years agoMerge "Session: Implement ArrayAccess"
jenkins-bot [Tue, 16 Feb 2016 18:59:52 +0000 (18:59 +0000)]
Merge "Session: Implement ArrayAccess"

8 years agoMerge "Converted ApiQueryPageProps to use PageProps; added multi-property query to...
jenkins-bot [Tue, 16 Feb 2016 18:59:43 +0000 (18:59 +0000)]
Merge "Converted ApiQueryPageProps to use PageProps; added multi-property query to PageProps."

8 years agoConverted ApiQueryPageProps to use PageProps; added multi-property query to PageProps.
Cindy Cicalese [Sun, 14 Feb 2016 21:58:46 +0000 (16:58 -0500)]
Converted ApiQueryPageProps to use PageProps; added multi-property query to PageProps.

Change-Id: Icd4540001e044052ae5759c87c8b83a70ab5c30f

8 years agoSession: Implement ArrayAccess
Brad Jorsch [Wed, 10 Feb 2016 16:43:23 +0000 (11:43 -0500)]
Session: Implement ArrayAccess

Now that we dropped support for PHP 5.3.3, we can do this.

The behavior of $session['foo'] when that key doesn't already exist is a
little unexpected (it implicitly assigns null), but it's the best we can
do.

Change-Id: Ibef878867d46591a8bf542139a1719dfec3b83ab

8 years agoMerge "resourceloader: Implement modern module loading (1/2)"
jenkins-bot [Tue, 16 Feb 2016 17:32:27 +0000 (17:32 +0000)]
Merge "resourceloader: Implement modern module loading (1/2)"

8 years agoCookieSessionProvider: It's persisted if we have a 'Token' cookie
Brad Jorsch [Tue, 16 Feb 2016 17:13:32 +0000 (12:13 -0500)]
CookieSessionProvider: It's persisted if we have a 'Token' cookie

This aspect of the pre-SessionManager Setup.php code had been
overlooked.

This also updates an inaccurate doc comment that I happened to notice.

Bug: T125313
Change-Id: Id49836086be837012b02885ce5384ae6a4ebc105

8 years agoMerge "Allow users to tag file uploads"
jenkins-bot [Tue, 16 Feb 2016 15:17:53 +0000 (15:17 +0000)]
Merge "Allow users to tag file uploads"

8 years agoMerge "TOC: Use padding instead of inline-block for space"
jenkins-bot [Tue, 16 Feb 2016 11:58:10 +0000 (11:58 +0000)]
Merge "TOC: Use padding instead of inline-block for space"

8 years agoMerge "Add 'reason' to UserGroupsChanged hook"
jenkins-bot [Tue, 16 Feb 2016 06:56:14 +0000 (06:56 +0000)]
Merge "Add 'reason' to UserGroupsChanged hook"

8 years agoAllow users to tag file uploads
Bartosz Dziewoński [Thu, 21 Jan 2016 18:20:53 +0000 (19:20 +0100)]
Allow users to tag file uploads

Using either action=upload API or Special:Upload. (No user interface
is provided for the latter, this is meant to be used by on-wiki
scripts/gadgets enhancing the upload process.)

Modelled after how ae3ab9eef0379e3e0a6cd9408f153648297e0853
implemented tagging of regular edits.

Bug: T121876
Change-Id: Ia3e0dbd895b2f8bc66985b24db35f112b6f9a22d

8 years agoMerge "mw.Upload.BookletLayout: Use notice instead of popup for help text"
jenkins-bot [Tue, 16 Feb 2016 02:40:00 +0000 (02:40 +0000)]
Merge "mw.Upload.BookletLayout: Use notice instead of popup for help text"

8 years agoUploadBooklet: Show image thumbnail in both steps
Prateek Saxena [Thu, 11 Feb 2016 12:47:40 +0000 (18:17 +0530)]
UploadBooklet: Show image thumbnail in both steps

Bug: T115860
Change-Id: I0794206dad06fd0652e9b62884e8996e836b73b3

8 years agoMerge "UploadBooklet: Switch on showDropTarget in the SelectFileWidget"
jenkins-bot [Tue, 16 Feb 2016 01:27:48 +0000 (01:27 +0000)]
Merge "UploadBooklet: Switch on showDropTarget in the SelectFileWidget"

8 years agoUploadBooklet: Switch on showDropTarget in the SelectFileWidget
Prateek Saxena [Thu, 11 Feb 2016 05:14:58 +0000 (10:44 +0530)]
UploadBooklet: Switch on showDropTarget in the SelectFileWidget

Bug: T115721
Change-Id: I026cc2d52fb1cb9ff4632d1c977ba23047c6b653

8 years agomediawiki.mixins: Remove `-o-transition`
Volker E [Tue, 16 Feb 2016 00:33:41 +0000 (16:33 -0800)]
mediawiki.mixins: Remove `-o-transition`

Removing `-o-transition` as basic support is still prolonged without
it and it saves some bytes on 99.95%+ clients (no clear usage numbers on
Opera 9.70–11.50 users).

Bug: T127023
Change-Id: Ie2e5b2d851aeaa14f802c3a300b79cd1517e10f8

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 15 Feb 2016 20:12:06 +0000 (21:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I405dcc02cb6945d940efd6bfaace6e102ad1f0eb

8 years agoMerge "Follow-up I0a3bf8fb: Load oojs-ui-core.styles not the deprecated oojs-ui.styles"
jenkins-bot [Mon, 15 Feb 2016 16:13:18 +0000 (16:13 +0000)]
Merge "Follow-up I0a3bf8fb: Load oojs-ui-core.styles not the deprecated oojs-ui.styles"

8 years agomw.Upload.BookletLayout: Use notice instead of popup for help text
Prateek Saxena [Mon, 8 Feb 2016 01:54:37 +0000 (07:24 +0530)]
mw.Upload.BookletLayout: Use notice instead of popup for help text

Now looks like https://phabricator.wikimedia.org/F3321595
Follows up Iaaac4908c71b416888921a4e45de66fa87ab448d

Bug: T116086
Change-Id: Ie12be072a149dc61d833f194c21305014e330c32

8 years agoMerge "Use global cache keys login/create account rate limitting"
jenkins-bot [Mon, 15 Feb 2016 05:30:44 +0000 (05:30 +0000)]
Merge "Use global cache keys login/create account rate limitting"

8 years agoUse global cache keys login/create account rate limitting
Brian Wolff [Mon, 15 Feb 2016 02:13:48 +0000 (21:13 -0500)]
Use global cache keys login/create account rate limitting

If you are running multiple wikis, you probably want the rate limit
on one wiki to apply to all wikis

Bug: T126685
Change-Id: Id662742c7af1b26811f5b0aa199176cb9a7658d9

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 14 Feb 2016 20:19:19 +0000 (21:19 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic7986269d1f22ba1260e6c931020852dbe20e216

8 years agoMerge "Add 2 FIXMEs about confusingly named functions"
jenkins-bot [Sun, 14 Feb 2016 16:33:26 +0000 (16:33 +0000)]
Merge "Add 2 FIXMEs about confusingly named functions"

8 years agoDocument that Http::get() and Http::post() can return false
Kunal Mehta [Sun, 14 Feb 2016 08:12:31 +0000 (00:12 -0800)]
Document that Http::get() and Http::post() can return false

Change-Id: I6d48ac011ee221050c7b8a05103d028fe2bed66a

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 13 Feb 2016 21:47:11 +0000 (22:47 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If8a45c13a53d80dd04d39926980411a2c9af5bbe

8 years agoTOC: Use padding instead of inline-block for space
Fomafix [Sat, 13 Feb 2016 20:33:01 +0000 (20:33 +0000)]
TOC: Use padding instead of inline-block for space

The padding does not get reduced on table cell size adaption. See T126857.

The padding is also visible for IE7 and lower.
c7894deb used an inline-block because it get ignored by IE7 and lower.
Now the gap between tocnummber and toctext is 0.5em + one space for IE7 and lower.
This is acceptable.

The additional CSS selectors are necessary to get the padding on the correct side.
* On Special:EditWatchlist and
* On content pages with a user interface language with different direction.

Bug: T126857
Change-Id: I61e3835f28cd65152cf7920a17e393dc68b76e41

8 years agoMake maintenance/findHooks.php pass again
Ricordisamoa [Fri, 12 Feb 2016 17:31:49 +0000 (18:31 +0100)]
Make maintenance/findHooks.php pass again

* check 4 new paths

* strip 'NormalizeMessageKey' hook from docs/hooks.txt,
  last call was removed in 1ea4f23b05a1776be395e2390aab8326bd97caa7

Change-Id: Id36ab478b94f74be451cae848d5ef2a318d23040

8 years agoMerge "FormatJson: Remove PHP 5.3 compatibility code"
jenkins-bot [Sat, 13 Feb 2016 10:17:12 +0000 (10:17 +0000)]
Merge "FormatJson: Remove PHP 5.3 compatibility code"

8 years agoresourceloader: Implement modern module loading (1/2)
jdlrobson [Tue, 29 Dec 2015 19:32:46 +0000 (09:32 -1000)]
resourceloader: Implement modern module loading (1/2)

This defines mw.loader.require() and 'module.exports'. These will
be exposed to mw.loader.implement() closures as local 'require'
and 'module' parameters.

Changes:
* This alters nestedAddScript to maintain a single queue to
  ensure scripts from different modules are never downloaded in
  parallel (used in debug mode).

Note:
A further patch will start passing module and require to module definitions.

Bug: T108655
Change-Id: Ia925844cc22f143f531216f2fe3efead08885b5d

8 years agoMerge "Remove references to safe_mode INI setting"
jenkins-bot [Sat, 13 Feb 2016 03:03:26 +0000 (03:03 +0000)]
Merge "Remove references to safe_mode INI setting"

8 years agoRELEASE-NOTES: Remove register_globals "Security reminder"
Kevin Israel [Sat, 13 Feb 2016 00:30:01 +0000 (19:30 -0500)]
RELEASE-NOTES: Remove register_globals "Security reminder"

The feature no longer exists starting in PHP 5.4.0, and MediaWiki
now only supports PHP 5.5.9 or newer.

I did not remove the mention in UPGRADE because that refers to an
very old version of MediaWiki that needs a very old PHP version.

Change-Id: I0788d83943f4d08100177c430269eeb16e6f842e

8 years agoAdd 2 FIXMEs about confusingly named functions
Kaldari [Tue, 9 Feb 2016 01:29:09 +0000 (19:29 -0600)]
Add 2 FIXMEs about confusingly named functions

With the roll-out of the Gadget namespace, these are going to be
especially misleading and likely to cause bugs.

Change-Id: I61f1f56762711fab173bbc54d110a7c48604d464

8 years agoRemove references to safe_mode INI setting
Kevin Israel [Sat, 13 Feb 2016 00:18:26 +0000 (19:18 -0500)]
Remove references to safe_mode INI setting

The feature no longer exists starting in PHP 5.4.0, and MediaWiki
now only supports PHP 5.5.9 or newer.

Change-Id: I3f2d1b564c50f0a28ec1ec0abd7d1b242e26953b

8 years agoFormatJson: Remove PHP 5.3 compatibility code
Kevin Israel [Fri, 12 Feb 2016 23:49:01 +0000 (18:49 -0500)]
FormatJson: Remove PHP 5.3 compatibility code

MediaWiki now only works with PHP versions that are new enough
to have the encoding options required by encode54(). So fold
that into encode() and remove encode53() and prettyPrint().

Change-Id: I6b22daf8fa01ef608efbde9c6aecdbb5ce03e2b9

8 years agoMerge "Add IContextSource as parameter to ChangeTags::formatSummaryRow"
jenkins-bot [Fri, 12 Feb 2016 22:39:02 +0000 (22:39 +0000)]
Merge "Add IContextSource as parameter to ChangeTags::formatSummaryRow"

8 years agoUpgrade mismatched commit() warnings to exceptions
Aaron Schulz [Thu, 24 Dec 2015 01:11:24 +0000 (17:11 -0800)]
Upgrade mismatched commit() warnings to exceptions

I saw no WMF logs for these in the last 7 days.

Change-Id: I725535925ba3fc68cee485767f18937fb8f239bf

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 12 Feb 2016 20:47:56 +0000 (21:47 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2c3440378f1a706985d7e5a2093a395a226c6297

8 years agoAdd 'reason' to UserGroupsChanged hook
Stephane Bisson [Mon, 8 Feb 2016 22:06:33 +0000 (17:06 -0500)]
Add 'reason' to UserGroupsChanged hook

Used by Echo to display the reason in the 'user-rights' notifications

Bug: T126277
Change-Id: Ib9bb28a7a77602e3e729fd0bf13ab8259e15b006

8 years agoUpdate AutoLoaderTest and ran maintenance/generateLocalAutoload.php
Bryan Davis [Thu, 11 Feb 2016 20:58:33 +0000 (13:58 -0700)]
Update AutoLoaderTest and ran maintenance/generateLocalAutoload.php

AutoLoaderTest didn't know about traits.

generateLocalAutoload found a  missing Trait from the autoloader and
a class map ordering issue.

Change-Id: I34bf2698ad838b6a977c9bf39f6e416330ff0e5d

8 years agoMerge "Make change tagging of edits in RecentChange::notifyNew/Edit"
jenkins-bot [Fri, 12 Feb 2016 02:46:31 +0000 (02:46 +0000)]
Merge "Make change tagging of edits in RecentChange::notifyNew/Edit"

8 years agoMerge "Log multiple IPs using the same session or the same user account"
jenkins-bot [Fri, 12 Feb 2016 00:35:12 +0000 (00:35 +0000)]
Merge "Log multiple IPs using the same session or the same user account"

8 years agoMerge "Add MediaWikiTestCase convenience method for mocking a logger"
jenkins-bot [Fri, 12 Feb 2016 00:14:07 +0000 (00:14 +0000)]
Merge "Add MediaWikiTestCase convenience method for mocking a logger"

8 years agoRemove REQUEST_TIME_FLOAT hack for old PHP
Max Semenik [Thu, 11 Feb 2016 19:20:43 +0000 (11:20 -0800)]
Remove REQUEST_TIME_FLOAT hack for old PHP

Change-Id: Id11f4f479d5225d92e38b2ae83b25315591b73d6

8 years agoMerge "Remove register_globals and magic_quotes_* checks"
jenkins-bot [Thu, 11 Feb 2016 22:42:55 +0000 (22:42 +0000)]
Merge "Remove register_globals and magic_quotes_* checks"

8 years agoMerge "SessionProvider::mergeMetadata: Log additional data"
jenkins-bot [Thu, 11 Feb 2016 21:30:55 +0000 (21:30 +0000)]
Merge "SessionProvider::mergeMetadata: Log additional data"

8 years agoSessionProvider::mergeMetadata: Log additional data
Bryan Davis [Thu, 11 Feb 2016 16:55:37 +0000 (09:55 -0700)]
SessionProvider::mergeMetadata: Log additional data

Add the data values and types to the exception raised when mismatched
session data is processed. This is done by passing the old and new
values on via a new MetadataMergeException class. The attached data is
added to the debug logging context info when caught.

Change-Id: If8a7174399289bc284ca1b36052ba515c8857c50

8 years agoMerge "Remove PHP < 5.3.6 compatibility in LegacyLogger"
jenkins-bot [Thu, 11 Feb 2016 21:17:32 +0000 (21:17 +0000)]
Merge "Remove PHP < 5.3.6 compatibility in LegacyLogger"

8 years agoMerge "Stop doing $that = $this in includes/parser"
jenkins-bot [Thu, 11 Feb 2016 21:10:42 +0000 (21:10 +0000)]
Merge "Stop doing $that = $this in includes/parser"

8 years agoWe support 5.5.9...
Reedy [Thu, 11 Feb 2016 20:54:09 +0000 (20:54 +0000)]
We support 5.5.9...

Change-Id: I6ef6a21e6f5cd9cdd82227f100eb89a9f6122d98

8 years agoFollow-up I0a3bf8fb: Load oojs-ui-core.styles not the deprecated oojs-ui.styles
James D. Forrester [Thu, 11 Feb 2016 20:41:12 +0000 (12:41 -0800)]
Follow-up I0a3bf8fb: Load oojs-ui-core.styles not the deprecated oojs-ui.styles

Change-Id: I5125abe81b66680dad4ccc754e12b59aa3cccff5

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 11 Feb 2016 20:04:05 +0000 (21:04 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I002ea4f85ae2d98926b1aced118a5ebaee85c04d

8 years agoMerge "Fix a bunch of call-time pass-by-reference errors"
jenkins-bot [Thu, 11 Feb 2016 19:48:06 +0000 (19:48 +0000)]
Merge "Fix a bunch of call-time pass-by-reference errors"

8 years agoRemove register_globals and magic_quotes_* checks
Max Semenik [Thu, 11 Feb 2016 00:41:44 +0000 (16:41 -0800)]
Remove register_globals and magic_quotes_* checks

Yay, this crap is finally gone as of PHP 5.4!

Change-Id: I2cb01b5bf0fdde4c8cf5286ef6aff93ac45e99fd

8 years agoMerge "Remove gzdecode() polyfill from includes/GlobalFunctions.php"
jenkins-bot [Thu, 11 Feb 2016 19:11:49 +0000 (19:11 +0000)]
Merge "Remove gzdecode() polyfill from includes/GlobalFunctions.php"

8 years agoMerge "Fix invalid key warning in CookieSessionProvider error handling code"
jenkins-bot [Thu, 11 Feb 2016 19:02:17 +0000 (19:02 +0000)]
Merge "Fix invalid key warning in CookieSessionProvider error handling code"

8 years agoRemove gzdecode() polyfill from includes/GlobalFunctions.php
Ricordisamoa [Thu, 11 Feb 2016 14:45:42 +0000 (15:45 +0100)]
Remove gzdecode() polyfill from includes/GlobalFunctions.php

Unnecessary since PHP 5.4.0

Change-Id: I8423b792488e3b3326ef9b702f1b84c9a2137952

8 years agoRemove PHP < 5.3.6 compatibility in LegacyLogger
umherirrender [Thu, 11 Feb 2016 18:50:43 +0000 (19:50 +0100)]
Remove PHP < 5.3.6 compatibility in LegacyLogger

Change-Id: Iaa820accce207ce48022bf7e72264c3c247331ba

8 years agoFix invalid key warning in CookieSessionProvider error handling code
Gergő Tisza [Wed, 10 Feb 2016 21:55:35 +0000 (13:55 -0800)]
Fix invalid key warning in CookieSessionProvider error handling code

Change-Id: I68172ff5fcd6acaab7ecf298ed4a47f23cb8c9f7

8 years agoStop using SiteConfiguration::isLocalVHost()
Chad Horohoe [Thu, 11 Feb 2016 18:26:30 +0000 (10:26 -0800)]
Stop using SiteConfiguration::isLocalVHost()

It's deprecated and nothing sets it anymore

Change-Id: Idad23551c7c31c9d05fd9e1be2efadc941860058

8 years agoMerge "mw.ForeignStructuredUpload.BookletLayout: Remove A/B test code"
jenkins-bot [Thu, 11 Feb 2016 16:15:38 +0000 (16:15 +0000)]
Merge "mw.ForeignStructuredUpload.BookletLayout: Remove A/B test code"

8 years agoLog multiple IPs using the same session or the same user account
Gergő Tisza [Sun, 7 Feb 2016 19:24:05 +0000 (11:24 -0800)]
Log multiple IPs using the same session or the same user account

As an attempt to detect SessionManager errors that log people into
the wrong account, log multiple IPs using the same session, or the same
user account.

Bug: T125455
Change-Id: I27468a3f6d582d9b46984227b9307dc71190fd6a

8 years agoInfoAction: Remove array dereferencing workaround
Ricordisamoa [Thu, 11 Feb 2016 14:57:48 +0000 (15:57 +0100)]
InfoAction: Remove array dereferencing workaround

Change-Id: I99d3773a52d4b99367eb3008009da0ffd8a4690a

8 years agoRemove PHP < 5.3 support from maintenance/checkSyntax.php
Ricordisamoa [Thu, 11 Feb 2016 08:51:01 +0000 (09:51 +0100)]
Remove PHP < 5.3 support from maintenance/checkSyntax.php

Change-Id: I2b8e941ef036b8de499a45cf077b07d3f4957540

8 years agoStop doing $that = $this in includes/parser
Ricordisamoa [Thu, 11 Feb 2016 08:40:54 +0000 (09:40 +0100)]
Stop doing $that = $this in includes/parser

Closures support $this as of PHP 5.4

Change-Id: Iace7ef43b17e8100f6bd71b4e23bad39cba87c0d

8 years agomw.ForeignStructuredUpload.BookletLayout: Remove A/B test code
Bartosz Dziewoński [Fri, 5 Feb 2016 01:18:58 +0000 (01:18 +0000)]
mw.ForeignStructuredUpload.BookletLayout: Remove A/B test code

We don't want it to accidentally end up in MediaWiki 1.27 release.
It can be restored again when needed.

This reverts commit d0e47d475cd7efd7541d51e02ab216a966da8b1f.

Bug: T120867
Change-Id: Ie1a90ad2d2ccdecf189313e18c3c5b24576363f4

8 years agoMerge "Improve docs for $wgPHPSessionHandling"
jenkins-bot [Thu, 11 Feb 2016 04:35:20 +0000 (04:35 +0000)]
Merge "Improve docs for $wgPHPSessionHandling"

8 years agoMerge "Set context on RedirectSpecialPage in MediaWiki.php"
jenkins-bot [Thu, 11 Feb 2016 04:15:14 +0000 (04:15 +0000)]
Merge "Set context on RedirectSpecialPage in MediaWiki.php"

8 years agoMerge "mediawiki.widgets: Use formatversion=2 for API requests"
jenkins-bot [Thu, 11 Feb 2016 04:08:12 +0000 (04:08 +0000)]
Merge "mediawiki.widgets: Use formatversion=2 for API requests"

8 years agoMerge "OutputPage.php: Remove misleading comment"
jenkins-bot [Thu, 11 Feb 2016 04:06:13 +0000 (04:06 +0000)]
Merge "OutputPage.php: Remove misleading comment"

8 years agoMerge "Get file from WikiFilePage, instead of ImagePage"
jenkins-bot [Thu, 11 Feb 2016 04:06:09 +0000 (04:06 +0000)]
Merge "Get file from WikiFilePage, instead of ImagePage"

8 years agoMerge "mediawiki.action.edit.preview.js: Use formatversion=2 for API requests"
jenkins-bot [Thu, 11 Feb 2016 04:06:04 +0000 (04:06 +0000)]
Merge "mediawiki.action.edit.preview.js: Use formatversion=2 for API requests"

8 years agoMerge "Add tests for LanguageConverter classes that didn't have them"
jenkins-bot [Thu, 11 Feb 2016 04:06:00 +0000 (04:06 +0000)]
Merge "Add tests for LanguageConverter classes that didn't have them"

8 years agoMerge "Don't modify $wgHooks on language object construction"
jenkins-bot [Thu, 11 Feb 2016 04:05:56 +0000 (04:05 +0000)]
Merge "Don't modify $wgHooks on language object construction"

8 years agoMerge "Remove extra line breaks in memcached debug output"
jenkins-bot [Thu, 11 Feb 2016 04:05:51 +0000 (04:05 +0000)]
Merge "Remove extra line breaks in memcached debug output"

8 years agoMerge "Avoid setRequestExpectations() call in internal API mode"
jenkins-bot [Thu, 11 Feb 2016 03:55:35 +0000 (03:55 +0000)]
Merge "Avoid setRequestExpectations() call in internal API mode"

8 years agoMerge "Set doesWrites() for SpecialWatchlist"
jenkins-bot [Thu, 11 Feb 2016 03:53:11 +0000 (03:53 +0000)]
Merge "Set doesWrites() for SpecialWatchlist"

8 years agoMerge "getFooterIcons returns an array"
jenkins-bot [Thu, 11 Feb 2016 03:51:21 +0000 (03:51 +0000)]
Merge "getFooterIcons returns an array"

8 years agoMerge "Work around T87871 to avoid double-loading OOjs UI PHP styles"
jenkins-bot [Thu, 11 Feb 2016 03:51:16 +0000 (03:51 +0000)]
Merge "Work around T87871 to avoid double-loading OOjs UI PHP styles"

8 years agoMerge "Use LinkTarget in LinkBatch::addObj"
jenkins-bot [Thu, 11 Feb 2016 03:49:50 +0000 (03:49 +0000)]
Merge "Use LinkTarget in LinkBatch::addObj"

8 years agoMerge "Disable testIPTCParseForcedUTFButInvalid on PHP > 5.6.0 but < 5.6.10"
jenkins-bot [Thu, 11 Feb 2016 03:45:43 +0000 (03:45 +0000)]
Merge "Disable testIPTCParseForcedUTFButInvalid on PHP > 5.6.0 but < 5.6.10"

8 years agoMerge "Reduce conditional for calling openssl_random_pseudo_bytes"
jenkins-bot [Thu, 11 Feb 2016 03:00:12 +0000 (03:00 +0000)]
Merge "Reduce conditional for calling openssl_random_pseudo_bytes"

8 years agoMerge "Stop doing $that = $this in includes/user"
jenkins-bot [Thu, 11 Feb 2016 02:33:12 +0000 (02:33 +0000)]
Merge "Stop doing $that = $this in includes/user"

8 years agoMerge "Stop doing $that = $this in includes/changes"
jenkins-bot [Thu, 11 Feb 2016 02:26:06 +0000 (02:26 +0000)]
Merge "Stop doing $that = $this in includes/changes"

8 years agoMerge "Allow changing cookie options in WebResponseSetCookie hook"
jenkins-bot [Thu, 11 Feb 2016 01:43:27 +0000 (01:43 +0000)]
Merge "Allow changing cookie options in WebResponseSetCookie hook"

8 years agoMerge "Suppress SessionManager sessions in the installer"
jenkins-bot [Thu, 11 Feb 2016 00:38:34 +0000 (00:38 +0000)]
Merge "Suppress SessionManager sessions in the installer"

8 years agoMerge "DiffFormatter: Don't mess with PHP output buffering"
jenkins-bot [Thu, 11 Feb 2016 00:31:57 +0000 (00:31 +0000)]
Merge "DiffFormatter: Don't mess with PHP output buffering"

8 years agoMerge "Stop doing $that = $this in includes/specialpage"
jenkins-bot [Thu, 11 Feb 2016 00:31:49 +0000 (00:31 +0000)]
Merge "Stop doing $that = $this in includes/specialpage"

8 years agoMerge "Remove < PHP 5.4 register_shutdown_function() from phpunit.php"
jenkins-bot [Thu, 11 Feb 2016 00:18:57 +0000 (00:18 +0000)]
Merge "Remove < PHP 5.4 register_shutdown_function() from phpunit.php"

8 years agoSuppress SessionManager sessions in the installer
Tim Starling [Wed, 10 Feb 2016 10:04:28 +0000 (21:04 +1100)]
Suppress SessionManager sessions in the installer

SessionManager cannot work in the installer since it depends on
ObjectCache which is just an EmptyBagOStuff and so doesn't store
anything. So, introduce a custom SessionProvider which pretends to
persist sessions but actually doesn't.

Bug: T126177
Change-Id: I13d8aa1453c519df7c19ca2f1fb052c99ade043c

8 years agoStop doing $that = $this in includes/specialpage
Ricordisamoa [Wed, 10 Feb 2016 23:29:22 +0000 (00:29 +0100)]
Stop doing $that = $this in includes/specialpage

Closures support $this as of PHP 5.4

Change-Id: Ib586150a50751873e9c3d12239f6ff8adedf70af