lhc/web/wiklou.git
8 years agoSkinTemplate.php: Add missing @param documentation to wrapHTML
Fomafix [Thu, 7 Apr 2016 17:51:46 +0000 (17:51 +0000)]
SkinTemplate.php: Add missing @param documentation to wrapHTML

Follows-up to: cab0275c7

Change-Id: Ie40229e92c0ce93628811ed7da4224ea7c15e72a

8 years agoMerge "Ignore DBPerformance warnings for ?action=purge for users with "purge""
jenkins-bot [Thu, 7 Apr 2016 19:42:51 +0000 (19:42 +0000)]
Merge "Ignore DBPerformance warnings for ?action=purge for users with "purge""

8 years agoUpdate OOjs UI to v0.16.5
James D. Forrester [Thu, 7 Apr 2016 15:15:38 +0000 (08:15 -0700)]
Update OOjs UI to v0.16.5

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

Change-Id: Ib5b0dc12259ac85ff1589c0e1507238f1089da3f

8 years agoMerge "Revert "Split ClassCollector class into own file""
jenkins-bot [Thu, 7 Apr 2016 15:11:14 +0000 (15:11 +0000)]
Merge "Revert "Split ClassCollector class into own file""

8 years agoMerge "Allow to pass a rev id to a log entry without making it unpatrolled"
jenkins-bot [Thu, 7 Apr 2016 08:47:03 +0000 (08:47 +0000)]
Merge "Allow to pass a rev id to a log entry without making it unpatrolled"

8 years agoMerge "Move action filter logic to LogPager"
jenkins-bot [Thu, 7 Apr 2016 08:45:00 +0000 (08:45 +0000)]
Merge "Move action filter logic to LogPager"

8 years agoMerge "Support empty explicit plural forms in JavaScript"
jenkins-bot [Thu, 7 Apr 2016 06:56:51 +0000 (06:56 +0000)]
Merge "Support empty explicit plural forms in JavaScript"

8 years agoSupport empty explicit plural forms in JavaScript
Adrian Heine [Wed, 6 Apr 2016 13:22:29 +0000 (15:22 +0200)]
Support empty explicit plural forms in JavaScript

PHP supports them as well.

Change-Id: I7f7ed0a5b3e6ccbb904cde08d8818c2a665ac52e

8 years agoMerge "registration: Load extra autoload files before executing callbacks"
jenkins-bot [Thu, 7 Apr 2016 00:37:36 +0000 (00:37 +0000)]
Merge "registration: Load extra autoload files before executing callbacks"

8 years agoExplicitly require all the required PHP extensions
Max Semenik [Wed, 6 Apr 2016 23:30:41 +0000 (16:30 -0700)]
Explicitly require all the required PHP extensions

Change-Id: I2bca4ece0c49c3f4f802d3f8f543882ebd14d445

8 years agoregistration: Load extra autoload files before executing callbacks
Florian [Wed, 6 Apr 2016 22:00:16 +0000 (00:00 +0200)]
registration: Load extra autoload files before executing callbacks

Callbacks should be able to safely assume that anything (or at least mostly)
defined in extension registration is already loaded and processed when
the callback itself is executed. To make sure, that this applies, callbacks
should be executed after all extra autoload paths are loaded.

Bug: T131978
Change-Id: I2c6624423957a8a00523b126fa7209d9c283aa9e

8 years agoKill mbstring fallbacks
Max Semenik [Fri, 29 Jan 2016 19:42:44 +0000 (11:42 -0800)]
Kill mbstring fallbacks

In the age when we require PHP 5.5, pretending that mbstring emulation
is not slow and silly is silly.

Bug: T129435
Change-Id: Ic8235c9da9a926df63ec7388900c44eab454eebe

8 years agoUnbreak tests
Max Semenik [Wed, 6 Apr 2016 21:59:01 +0000 (14:59 -0700)]
Unbreak tests

Bug: T131981
Change-Id: I1078b2a9f792f95fd451da4342b6441d6fd4d892

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 6 Apr 2016 20:35:08 +0000 (22:35 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1d8329f703a364fbe36a51994cdc0467cdd40387

8 years agoFix phpdoc in StatsdAwareInterface
addshore [Wed, 6 Apr 2016 11:21:24 +0000 (12:21 +0100)]
Fix phpdoc in StatsdAwareInterface

Change-Id: Ibb3cac402f2cbe723b79785f4d3bbcb9c0b10ebe

8 years agoMerge "Add a hook for collapsible content"
jenkins-bot [Wed, 6 Apr 2016 15:43:20 +0000 (15:43 +0000)]
Merge "Add a hook for collapsible content"

8 years agoMerge "mediawiki.Title: Reuse local variable fragment"
jenkins-bot [Wed, 6 Apr 2016 11:48:06 +0000 (11:48 +0000)]
Merge "mediawiki.Title: Reuse local variable fragment"

8 years agomediawiki.Title: Reuse local variable fragment
Fomafix [Wed, 6 Apr 2016 04:27:17 +0000 (04:27 +0000)]
mediawiki.Title: Reuse local variable fragment

Change-Id: Ifc1153ef3246a387d2343e68e5b5f3837dd809cd

8 years agoDon't replace !! in elements
Arlo Breault [Fri, 5 Feb 2016 16:00:56 +0000 (08:00 -0800)]
Don't replace !! in elements

 * 55313f4e almost got it right, but missed the str_replacing table
   headings.

 * Thankfully, this was doubly broken before that patch since the
   StringUtils::explodeMarkup would have skipped the || which would
   go on to be explode by table cell attribute parsing. The test case
   provided would look like,

   <table>
   <tr>
   <th class="">|">ha</div> ho
   </th></tr></table>

   Suffice it to say, noone is using this in production.

 * Note that we can't just entity encode the ! since that would break
   style attributes with !important.

 * Also note, Parsoid already gets this right.

 * Adds a StringUtils::replaceMarkup

Change-Id: Iab3ae4518fcb307b795d57eece420ba48af0a3bf

8 years agoMerge "mw.Upload.BookletLayout: Handle additional warnings/errors"
jenkins-bot [Wed, 6 Apr 2016 05:06:05 +0000 (05:06 +0000)]
Merge "mw.Upload.BookletLayout: Handle additional warnings/errors"

8 years agoSync up with Parsoid parserTests.
Arlo Breault [Tue, 5 Apr 2016 20:54:26 +0000 (13:54 -0700)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit d206ffe4026dcbce9ef27f1546d023a7027ea7e9

Change-Id: I9f7f0ddf87bf3ee14a1929599e72c5d837e15fbf

8 years agomw.Upload.BookletLayout: Handle additional warnings/errors
Bartosz Dziewoński [Tue, 5 Apr 2016 20:25:46 +0000 (22:25 +0200)]
mw.Upload.BookletLayout: Handle additional warnings/errors

Warnings:
* 'exists-normalized': Same handling as 'exists', the only difference
  is exact match vs only matching after title normalization.
* 'was-deleted': Added new l10n message 'api-error-was-deleted',
  based on 'filewasdeleted' but shorter/simpler.

Errors:
* 'protectedpage': Display 'protectedpagetext' message.

Bug: T131709
Change-Id: Ia9f65fc39d59018dc62b758f9a2ae98de7d187fe

8 years agoMerge "Update monolog to 1.18.2"
jenkins-bot [Tue, 5 Apr 2016 20:22:52 +0000 (20:22 +0000)]
Merge "Update monolog to 1.18.2"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 5 Apr 2016 20:10:22 +0000 (22:10 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I17458dc07e3b940238dc2395e2fcc08833e303ab

8 years agoUpdate monolog to 1.18.2
Reedy [Sat, 2 Apr 2016 20:52:02 +0000 (21:52 +0100)]
Update monolog to 1.18.2

https://github.com/Seldaek/monolog/compare/1.17.2...1.18.2

Update KafkaHandlerTest.php

Depends-On: I32e9ebe0a10d97a1ccb0f4d605bd0ee9ba4e97f6
Change-Id: I35eedb6d95b68ebf90c00bb54469c9ff5731cdab

8 years agoImageListPager: Fix improper use of Title::newFromText().
Kunal Mehta [Tue, 5 Apr 2016 19:49:55 +0000 (12:49 -0700)]
ImageListPager: Fix improper use of Title::newFromText().

The $defaultNamespace parameter to Title::newFromText() only applies if
a namespace prefix isn't included in the text. So if a username was
"Help:FooBar", the NS_USER prefix would not be applied.

Instead use Title::makeTitleSafe( NS_USER, ... ); which was designed for
this specific purpose.

Change-Id: Iafce73d352887947e61ae7c906ddf965e04fbf6f

8 years agoPreprocessor: Don't allow unclosed extension tags (matching until end of input)
Bartosz Dziewoński [Thu, 4 Feb 2016 01:13:24 +0000 (01:13 +0000)]
Preprocessor: Don't allow unclosed extension tags (matching until end of input)

(Previously done in f51d0d9a819f8f1c181350ced2f015ce97985fcc and
reverted in 543f46e9c08e0ff8c5e8b4e917fcc045730ef1bc.)

I think it's saner to treat this as invalid syntax, and output the
mismatched tag code verbatim. The current behavior is particularly
annoying for <ref> tags, which often swallow everything afterwards.

This does not affect HTML tags, though. Assuming Tidy is enabled, they
are still auto-closed at the end of the page content. (For tags that
"shadow" a HTML tag name, this results in the tag being treated as a
HTML tag. This currently only affects <pre> tags: if unclosed, they
are still displayed as preformatted text, but without suppressing
wikitext formatting.)

It also does not affect <includeonly>, <noinclude> and <onlyinclude>
tags. Changing this behavior now would be too disruptive to existing
content, and is the reason why previous attempt was reverted. (They
are already special-cased enough that this isn't too weird, for example
mismatched closing tags are hidden.)

Related to T17712 and T58306. I think this brings the PHP parser closer
to Parsoid's interpretation.

It reduces performance somewhat in the worst case, though. Testing with
https://phabricator.wikimedia.org/F3245989 (a 1 MB page starting with
3000 opening tags of 15 different types), parsing time rises from
~0.2 seconds to ~1.1 seconds on my setup. We go from O(N) to O(kN),
where N is bytes of input and k is the number of types of tags present
on the page. Maximum k shouldn't exceed 30 or so in reasonable setups
(depends on installed extensions, it's 20 on English Wikipedia).

Change-Id: Ide8b034e464eefb1b7c9e2a48ed06e21a7f8d434

8 years agoImprove comment to localizers in MessagesEn.php
C. Scott Ananian [Tue, 5 Apr 2016 17:55:26 +0000 (13:55 -0400)]
Improve comment to localizers in MessagesEn.php

Follow up to Ia670512e0cb375335873e7f9a08b638bbe039e45.

Bug: T116020
Change-Id: I8634585e52ce5339dbfcd5b19c5d1b6c9ef5687e

8 years agoMerge "Simplify by using mw.util.getUrl() instead of mw.util.wikiScript()"
jenkins-bot [Tue, 5 Apr 2016 17:21:28 +0000 (17:21 +0000)]
Merge "Simplify by using mw.util.getUrl() instead of mw.util.wikiScript()"

8 years agoDo not require login on Special:Confirmemail to confirm the email
Rohan [Fri, 11 Jul 2014 05:50:32 +0000 (11:20 +0530)]
Do not require login on Special:Confirmemail to confirm the email

The user doesn't need to be logged in to confirm his/her email.

Particle revert of I43ceaddb370d09784021b3fc2d5d1ff6616fef1f

Bug: T62434
Change-Id: Idf3f9827daaac87f5c57617f4e5d42ca9569839d

8 years agoSimplify by using mw.util.getUrl() instead of mw.util.wikiScript()
Fomafix [Tue, 5 Apr 2016 13:37:55 +0000 (13:37 +0000)]
Simplify by using mw.util.getUrl() instead of mw.util.wikiScript()

Change-Id: Ie10a5ee79846a4f1465fea7ce1b47da13b0787b7

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 4 Apr 2016 19:53:49 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If37db4144db777658d3d2f3aa6bd140469a2547e

8 years agoMerge "Remove skin mode of Special:JavaScriptTest"
jenkins-bot [Mon, 4 Apr 2016 15:24:12 +0000 (15:24 +0000)]
Merge "Remove skin mode of Special:JavaScriptTest"

8 years agoMerge "mediawiki.util: Use wgScript in getUrl() when setting query string"
jenkins-bot [Mon, 4 Apr 2016 15:00:22 +0000 (15:00 +0000)]
Merge "mediawiki.util: Use wgScript in getUrl() when setting query string"

8 years agoConvert Special:Redirect to OOUI
utkarsh95 [Mon, 14 Mar 2016 11:52:00 +0000 (12:52 +0100)]
Convert Special:Redirect to OOUI

Removed unused message.

Bug: T117751
Change-Id: I70e04c8b5860e2b32081bdb510aca99fd5ee07f3

8 years agoRevert "Split ClassCollector class into own file"
PleaseStand [Mon, 4 Apr 2016 03:26:24 +0000 (03:26 +0000)]
Revert "Split ClassCollector class into own file"

The AutoloadGenerator class is instantiated in the script
maintenance/generateLocalAutoload.php and its equivalents in
several extensions, none of which use MediaWiki's AutoLoader,
so you get a "Fatal error: Class 'ClassCollector' not found".

This reverts commit a379bebd03099ee056a5ae7466f0699423064ede.

Change-Id: Ia6a7a1cb8a593ac86ecffdb690064e0b8ad68b47

8 years agomediawiki.util: Use wgScript in getUrl() when setting query string
Timo Tijhof [Sun, 3 Apr 2016 23:43:30 +0000 (00:43 +0100)]
mediawiki.util: Use wgScript in getUrl() when setting query string

This makes the behaviour more in line with Title::getLocalURL() in PHP.

* Only use wgArticlePath if there was a non-empty query string.
* Remove needless call to isEmptyObject. This is already done by $.params().
* Add test case "title with empty query string".

Change-Id: I414350a527eea3822ff2843c1c06a925f41a2c03

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 3 Apr 2016 20:48:49 +0000 (22:48 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I439795a989a00d5b9490514169ee46de7601067e

8 years agoMention introduction of service locator in release notes.
daniel [Sun, 3 Apr 2016 11:59:51 +0000 (14:59 +0300)]
Mention introduction of service locator in release notes.

Change-Id: I8b10133894bb93cf5e4dfab14478071477002773

8 years agoMerge "Remove Title::newFromRedirectRecurse()"
jenkins-bot [Sun, 3 Apr 2016 12:42:24 +0000 (12:42 +0000)]
Merge "Remove Title::newFromRedirectRecurse()"

8 years agoRemove Title::newFromRedirectRecurse()
Florian [Sat, 2 Apr 2016 08:34:18 +0000 (10:34 +0200)]
Remove Title::newFromRedirectRecurse()

Bug: T122754
Change-Id: I8b957eff7f355493ef6850f7a83dcb619ab6be78

8 years agoFix double $search in other place too
Stanislav Malyshev [Sun, 3 Apr 2016 11:45:55 +0000 (14:45 +0300)]
Fix double $search in other place too

Change-Id: If0013988a7af06f0d19162fbf574aa15f1685c35

8 years agoDon't allow createAndPromote.php to add users to invalid groups
Reedy [Sun, 3 Apr 2016 11:28:48 +0000 (12:28 +0100)]
Don't allow createAndPromote.php to add users to invalid groups

Bug: T131704
Change-Id: Ibe8839e62af8db002adea68ffa87b3adf2b505ea

8 years agoMerge "Split ClassCollector class into own file"
jenkins-bot [Sun, 3 Apr 2016 10:52:49 +0000 (10:52 +0000)]
Merge "Split ClassCollector class into own file"

8 years agoMerge "Move CookieJar class to own file"
jenkins-bot [Sun, 3 Apr 2016 10:52:45 +0000 (10:52 +0000)]
Merge "Move CookieJar class to own file"

8 years agoMerge "Remove use of deprecated User::EDIT_TOKEN_SUFFIX"
jenkins-bot [Sun, 3 Apr 2016 10:45:16 +0000 (10:45 +0000)]
Merge "Remove use of deprecated User::EDIT_TOKEN_SUFFIX"

8 years agoMerge "Remove use of deprecated wfSuppress/RestoreWarnings"
jenkins-bot [Sun, 3 Apr 2016 10:42:22 +0000 (10:42 +0000)]
Merge "Remove use of deprecated wfSuppress/RestoreWarnings"

8 years agoMerge "Remove usages of CdbCompat class alises"
jenkins-bot [Sun, 3 Apr 2016 10:23:28 +0000 (10:23 +0000)]
Merge "Remove usages of CdbCompat class alises"

8 years agoMerge "Remove used of deprecated MemCachedClientforWiki"
jenkins-bot [Sun, 3 Apr 2016 10:01:14 +0000 (10:01 +0000)]
Merge "Remove used of deprecated MemCachedClientforWiki"

8 years agoMerge "Move EventRelayerNull class to own file"
jenkins-bot [Sun, 3 Apr 2016 09:59:48 +0000 (09:59 +0000)]
Merge "Move EventRelayerNull class to own file"

8 years agoRemove use of deprecated User::EDIT_TOKEN_SUFFIX
addshore [Sun, 3 Apr 2016 09:04:42 +0000 (12:04 +0300)]
Remove use of deprecated User::EDIT_TOKEN_SUFFIX

Change-Id: Ib36f4aac202019548131f956bffe1c73e46030d2

8 years agoRemove use of deprecated wfSuppress/RestoreWarnings
addshore [Sun, 3 Apr 2016 09:24:00 +0000 (12:24 +0300)]
Remove use of deprecated wfSuppress/RestoreWarnings

Change-Id: I8f7a77a66f027d853c3532021a24425339571f7c

8 years agoRemove usages of CdbCompat class alises
addshore [Sun, 3 Apr 2016 09:19:48 +0000 (12:19 +0300)]
Remove usages of CdbCompat class alises

Change-Id: Id7223689f135c3ce3e4193f8c724b52d3f39dfd5

8 years agoMerge "Remove unused $fname in StubObject::_unstub"
jenkins-bot [Sun, 3 Apr 2016 09:03:25 +0000 (09:03 +0000)]
Merge "Remove unused $fname in StubObject::_unstub"

8 years agoMerge "Add @since tags to Collation stuff"
jenkins-bot [Sun, 3 Apr 2016 09:03:21 +0000 (09:03 +0000)]
Merge "Add @since tags to Collation stuff"

8 years agoMerge "Split Collation.php"
jenkins-bot [Sun, 3 Apr 2016 09:02:42 +0000 (09:02 +0000)]
Merge "Split Collation.php"

8 years agoMove EventRelayerNull class to own file
addshore [Sun, 3 Apr 2016 08:47:52 +0000 (11:47 +0300)]
Move EventRelayerNull class to own file

Change-Id: I5450bda32482b5183e6d2c35e2df5c419155e2de

8 years agoMerge "Fix obvious typo - $search used for two variables"
jenkins-bot [Sun, 3 Apr 2016 08:54:23 +0000 (08:54 +0000)]
Merge "Fix obvious typo - $search used for two variables"

8 years agoMerge "Remove unused private SiteStats::$groupMemberCounts"
jenkins-bot [Sun, 3 Apr 2016 08:54:19 +0000 (08:54 +0000)]
Merge "Remove unused private SiteStats::$groupMemberCounts"

8 years agoMerge "Remove unused $miserMode in SpecialStatistics"
jenkins-bot [Sun, 3 Apr 2016 08:54:15 +0000 (08:54 +0000)]
Merge "Remove unused $miserMode in SpecialStatistics"

8 years agoRemove used of deprecated MemCachedClientforWiki
addshore [Sun, 3 Apr 2016 08:52:50 +0000 (11:52 +0300)]
Remove used of deprecated MemCachedClientforWiki

Change-Id: Ib947c0cc1cfc3b365617d12f7564c199d6189c31

8 years agoMove CookieJar class to own file
addshore [Sun, 3 Apr 2016 08:46:36 +0000 (11:46 +0300)]
Move CookieJar class to own file

Change-Id: Ie98eadb2a8015f1290447b79cc095799abaeba4f

8 years agoMerge "Remove unused fields from SpecialBotPasswords"
jenkins-bot [Sun, 3 Apr 2016 08:44:53 +0000 (08:44 +0000)]
Merge "Remove unused fields from SpecialBotPasswords"

8 years agoFix obvious typo - $search used for two variables
Stanislav Malyshev [Sun, 3 Apr 2016 08:37:57 +0000 (11:37 +0300)]
Fix obvious typo - $search used for two variables

Change-Id: Ic4530f9c6ad036355ce981a42add54f85214afe4

8 years agoRemove unused private SiteStats::$groupMemberCounts
addshore [Sun, 3 Apr 2016 08:07:58 +0000 (11:07 +0300)]
Remove unused private SiteStats::$groupMemberCounts

Change-Id: I7839a644bca2829098e5ce5d844db667b6d16b26

8 years agoAdd @since tags to Collation stuff
addshore [Sun, 3 Apr 2016 08:36:49 +0000 (11:36 +0300)]
Add @since tags to Collation stuff

Change-Id: Iec56ac4d1418737d171f8faa9c8f498fba5383ee

8 years agoRemove unused $miserMode in SpecialStatistics
addshore [Sun, 3 Apr 2016 08:02:55 +0000 (11:02 +0300)]
Remove unused $miserMode in SpecialStatistics

Change-Id: Id76e9782b5abd40421d4edd7528d0ff41d234ac3

8 years agoSplit Collation.php
addshore [Sun, 3 Apr 2016 08:23:20 +0000 (11:23 +0300)]
Split Collation.php

Change-Id: I6abfecf91cdce83dd34b1e8aa8e0b35315f62742

8 years agoSplit ClassCollector class into own file
addshore [Sun, 3 Apr 2016 08:16:42 +0000 (11:16 +0300)]
Split ClassCollector class into own file

Change-Id: I61210d1e963e0cd1278debff8f6826c5c79a88e9

8 years agoRemove unused $fname in StubObject::_unstub
addshore [Sun, 3 Apr 2016 08:06:27 +0000 (11:06 +0300)]
Remove unused $fname in StubObject::_unstub

Change-Id: I1a90d888b1b17e21b54b90f3665c63edd1f21195

8 years agoRemove unused global $wgMaxInterlacingAreas in Bitmap.php
addshore [Sun, 3 Apr 2016 08:05:03 +0000 (11:05 +0300)]
Remove unused global $wgMaxInterlacingAreas in Bitmap.php

Change-Id: I3b1a0d65be4327a5e0a47934a470c2573e315fea

8 years agoRemove unused fields from SpecialBotPasswords
addshore [Sun, 3 Apr 2016 08:03:36 +0000 (11:03 +0300)]
Remove unused fields from SpecialBotPasswords

Change-Id: I64518fd34f8c040c53d66669d69e84b89f318ae8

8 years agoMerge "Introduce top level service locator."
jenkins-bot [Sun, 3 Apr 2016 07:26:31 +0000 (07:26 +0000)]
Merge "Introduce top level service locator."

8 years agoMerge "Update IP address related message text"
jenkins-bot [Sun, 3 Apr 2016 06:26:52 +0000 (06:26 +0000)]
Merge "Update IP address related message text"

8 years agoMerge "resourceloader: Make action=purge affect ResourceLoaderWikiModule"
jenkins-bot [Sun, 3 Apr 2016 02:50:29 +0000 (02:50 +0000)]
Merge "resourceloader: Make action=purge affect ResourceLoaderWikiModule"

8 years agoresourceloader: Make action=purge affect ResourceLoaderWikiModule
Timo Tijhof [Sat, 2 Apr 2016 20:50:48 +0000 (21:50 +0100)]
resourceloader: Make action=purge affect ResourceLoaderWikiModule

Purging a wiki page included in a WikiModule should bump its version hash.
This is not needed by design, but it's a workaround until our caching layers
are more resilient against cache poisoning.

This gives users the power to resolve issues themselves.

Change-Id: I37d3379e76a6b652268c5a007e0ad741470fe6e1

8 years agoMerge "mediawiki.user: Use wgUserGroups for getGroups() rather than AJAX"
jenkins-bot [Sat, 2 Apr 2016 21:22:25 +0000 (21:22 +0000)]
Merge "mediawiki.user: Use wgUserGroups for getGroups() rather than AJAX"

8 years agomediawiki.user: Use wgUserGroups for getGroups() rather than AJAX
Matthew Flaschen [Thu, 31 Mar 2016 20:50:28 +0000 (16:50 -0400)]
mediawiki.user: Use wgUserGroups for getGroups() rather than AJAX

Use wgUserGroups to implement getGroups, rather than an API request.

wgUserGroups and ApiQueryUserInfo both use $user->getEffectiveGroups()
unprocessed.

mw.Api.plugin.user is still useful because rights are not available
client-side, and it can be used for groups with ForeignApi.

Change-Id: Id9c7805de1d02e267dbd2bba833e90a6df117dee

8 years agoReword and clarify API messages
IoannisKydonis [Wed, 20 Jan 2016 21:22:31 +0000 (23:22 +0200)]
Reword and clarify API messages

Threads:
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Apihelp-upload-param-leavemessage/uk
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Apihelp-main-param-maxlag/ksh
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Apihelp-import-param-summary/en

Change-Id: I71404b96fe48fed62b50ff2f544da97bd925e9d7

8 years agoUpdate IP address related message text
Siebrand Mazeland [Sat, 2 Apr 2016 19:14:29 +0000 (21:14 +0200)]
Update IP address related message text

Follow-up to Change-Id: I02fecf0b9e6a5b90f7a24209c7a1cdce64060b23

Change-Id: I36a99f21b4269af0799ce73faee7e19865c5f22f

8 years agoBump composer/semver to 1.4.0
Reedy [Sat, 2 Apr 2016 18:19:44 +0000 (19:19 +0100)]
Bump composer/semver to 1.4.0

Depends-On: I4463dd4abe1972f4e3a4bcc6389dc861ecc8201a
Change-Id: I263b1ad4b45410d0704c195f485d27cbbe068e26

8 years agoRemove deprecated calling style of UserMailer::send()
Reedy [Thu, 21 Jan 2016 01:12:41 +0000 (01:12 +0000)]
Remove deprecated calling style of UserMailer::send()

Depends-On: I513639f706ce16334180908f55638eebf8a4de80
Depends-On: I3fce6c666e2c878a221e2e4c6acacfd0254d173a
Change-Id: I475932f37a579dd86bfd98e6b14509d6ba86f128

8 years agoMerge "Don't construct SpecialPages twice"
jenkins-bot [Sat, 2 Apr 2016 17:51:43 +0000 (17:51 +0000)]
Merge "Don't construct SpecialPages twice"

8 years agoMerge "Use IP address range instead of IP range"
jenkins-bot [Sat, 2 Apr 2016 17:47:31 +0000 (17:47 +0000)]
Merge "Use IP address range instead of IP range"

8 years agoMerge "Better punctuation in uploadstash-badtoken"
jenkins-bot [Sat, 2 Apr 2016 17:43:01 +0000 (17:43 +0000)]
Merge "Better punctuation in uploadstash-badtoken"

8 years agoUse IP address range instead of IP range
Siebrand Mazeland [Sat, 2 Apr 2016 15:55:34 +0000 (17:55 +0200)]
Use IP address range instead of IP range

We use "IP address" consistently instead of "IP", but this was never
applied to the "range" addition.

Change-Id: I02fecf0b9e6a5b90f7a24209c7a1cdce64060b23

8 years agoMerge "Fix Undefined index: 0 in SearchExactMatchRescorer.php on line 44"
jenkins-bot [Sat, 2 Apr 2016 17:21:13 +0000 (17:21 +0000)]
Merge "Fix Undefined index: 0 in SearchExactMatchRescorer.php on line 44"

8 years agoMerge "Generalize recentChangesFlags rollup"
jenkins-bot [Sat, 2 Apr 2016 16:21:12 +0000 (16:21 +0000)]
Merge "Generalize recentChangesFlags rollup"

8 years agoMerge "Improve blocked-mailpassword phrasing"
jenkins-bot [Sat, 2 Apr 2016 16:20:17 +0000 (16:20 +0000)]
Merge "Improve blocked-mailpassword phrasing"

8 years agoMerge "Rename Special:ListGroupRights in Czech"
jenkins-bot [Sat, 2 Apr 2016 16:05:32 +0000 (16:05 +0000)]
Merge "Rename Special:ListGroupRights in Czech"

8 years agoMerge "resourceloader: Remove wfExpandUrl() from ResourceLoaderImage"
jenkins-bot [Sat, 2 Apr 2016 15:54:18 +0000 (15:54 +0000)]
Merge "resourceloader: Remove wfExpandUrl() from ResourceLoaderImage"

8 years agoImprove blocked-mailpassword phrasing
Amire80 [Sat, 2 Apr 2016 15:46:36 +0000 (18:46 +0300)]
Improve blocked-mailpassword phrasing

Change-Id: I2fa9d0050908fa40c3a5808aa0ed9cd53dc0e345

8 years agoDon't construct SpecialPages twice
Florian [Sat, 2 Apr 2016 14:39:50 +0000 (16:39 +0200)]
Don't construct SpecialPages twice

If the special page object was already created for the request, there's
no need to create the object again. Save the created result (object, null)
in a global static array and return the value if the realName was already
created.

Bug: T123995
Change-Id: I70bf0e93e45f4b0597deaef717f5eb87c66f0a71

8 years agoIntroduce top level service locator.
daniel [Mon, 12 Oct 2015 08:05:45 +0000 (10:05 +0200)]
Introduce top level service locator.

The service locator, MediaWikiServices, is intended to facilitate
"manual" dependency injection in static entry points.

See also the Dependency Injection RFC T384 and Service Locator
RFC T124792 for details.
The following key points were implemented according the
discussion surrounding these RFCs:

* a configurable DI container that allows extensions to add and replace services.
* no auto-wiring, since it's prone to add confusion in large and complex applications.
* no 3rd party framework, since they typically do too much.

The following services in MediaWiki core are made accessible via the service locator
mechanism to showcase the bootstrapping mechanism:

* ConfigFactory and MainConfig
* SiteLookup and SiteStore

However, the implementation of these services was not yet converted to using proper DI
throughout the code.

Bug: T124792
Change-Id: I3c25c0ac17300d3dd13e1cf5100558a605eee15f

8 years agoMerge "Split Page interface into own file"
jenkins-bot [Sat, 2 Apr 2016 13:52:04 +0000 (13:52 +0000)]
Merge "Split Page interface into own file"

8 years agoMerge "Introduce StatsdAwareInterface"
jenkins-bot [Sat, 2 Apr 2016 13:43:23 +0000 (13:43 +0000)]
Merge "Introduce StatsdAwareInterface"

8 years agoSplit Page interface into own file
addshore [Sat, 2 Apr 2016 13:35:20 +0000 (16:35 +0300)]
Split Page interface into own file

Change-Id: Ib2e23f63e47a3da19e30f4a8d61372ee0f26851d

8 years agoGeneralize recentChangesFlags rollup
amir [Wed, 23 Mar 2016 15:25:44 +0000 (19:55 +0430)]
Generalize recentChangesFlags rollup

Flags can be either 'any' or 'all' type, and both core and extension flags will be
rolled up into the top-level line of grouped changes.

See Ic49a355a2

Bug: T120921
Bug: T112856
Change-Id: If9fd6af3ac7ac2fbee9aa5536fe94d7574699966

8 years agoIntroduce StatsdAwareInterface
addshore [Sat, 2 Apr 2016 09:24:59 +0000 (12:24 +0300)]
Introduce StatsdAwareInterface

Change-Id: Iac343e4b448d9af852b4c479c35a9ff60359b6d5

8 years agoRemove Title::newFromRedirectArray
Florian [Sat, 2 Apr 2016 08:18:20 +0000 (10:18 +0200)]
Remove Title::newFromRedirectArray

Bug: T122754
Change-Id: I2cdeb98c81d4b98ea986bd2f7b23cd93c62c5930