lhc/web/wiklou.git
8 years agoMerge "Count subject and talk page conflict separately"
jenkins-bot [Thu, 23 Jun 2016 15:38:46 +0000 (15:38 +0000)]
Merge "Count subject and talk page conflict separately"

8 years agoMerge "search: did you mean should always go to SERP"
jenkins-bot [Thu, 23 Jun 2016 15:22:24 +0000 (15:22 +0000)]
Merge "search: did you mean should always go to SERP"

8 years agoMerge "Remove unused MediaWikiPageLinkRenderer class and interface"
jenkins-bot [Thu, 23 Jun 2016 14:32:28 +0000 (14:32 +0000)]
Merge "Remove unused MediaWikiPageLinkRenderer class and interface"

8 years agoMerge "SpecialLinkSearch: Use LinkRenderer instead of MediaWikiPageLinkRenderer"
jenkins-bot [Thu, 23 Jun 2016 14:28:01 +0000 (14:28 +0000)]
Merge "SpecialLinkSearch: Use LinkRenderer instead of MediaWikiPageLinkRenderer"

8 years agoCount subject and talk page conflict separately
addshore [Fri, 20 May 2016 10:26:53 +0000 (11:26 +0100)]
Count subject and talk page conflict separately

Bug: T136547
Change-Id: If8b3dcd1d97f72058d281602242d2c44c38a48d0

8 years agoRemove unused MediaWikiPageLinkRenderer class and interface
Kunal Mehta [Tue, 24 May 2016 02:19:14 +0000 (19:19 -0700)]
Remove unused MediaWikiPageLinkRenderer class and interface

The MediaWikiPageLinkRenderer interface was introduced with TitleValue
in 1.23, but was barely used outside of two special pages in MediaWiki
core. It has now been superceded by MediaWiki\Linker\LinkRenderer and
should be removed in favor of that.

Change-Id: Ib56d5731d4803aa417942aced7f3dedf2104bbde

8 years agoSpecialLinkSearch: Use LinkRenderer instead of MediaWikiPageLinkRenderer
Kunal Mehta [Tue, 24 May 2016 02:16:55 +0000 (19:16 -0700)]
SpecialLinkSearch: Use LinkRenderer instead of MediaWikiPageLinkRenderer

Change-Id: Ib117e4db841327c302f9ceaa97aaa52b6391b093

8 years agoParser: Use LinkRenderer for building ISBN magic links
Kunal Mehta [Tue, 24 May 2016 07:37:36 +0000 (00:37 -0700)]
Parser: Use LinkRenderer for building ISBN magic links

Instead of manually building the <a> tag, use LinkRenderer to create it.

Change-Id: Iaefe85527307a8399e9f52dde58fb2c24c4753c2

8 years agoMerge "SpecialCategories: Use LinkRenderer instead of MediaWikiPageLinkRenderer"
jenkins-bot [Thu, 23 Jun 2016 12:58:22 +0000 (12:58 +0000)]
Merge "SpecialCategories: Use LinkRenderer instead of MediaWikiPageLinkRenderer"

8 years agoMerge "SpecialNewpages: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Thu, 23 Jun 2016 12:53:07 +0000 (12:53 +0000)]
Merge "SpecialNewpages: Use LinkRenderer instead of Linker::link()"

8 years agoMerge "SpecialMovepage: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Thu, 23 Jun 2016 12:48:21 +0000 (12:48 +0000)]
Merge "SpecialMovepage: Use LinkRenderer instead of Linker::link()"

8 years agoMerge "SpecialBotPasswords: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Thu, 23 Jun 2016 12:46:50 +0000 (12:46 +0000)]
Merge "SpecialBotPasswords: Use LinkRenderer instead of Linker::link()"

8 years agoMerge "SpecialListredirects: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Thu, 23 Jun 2016 12:44:52 +0000 (12:44 +0000)]
Merge "SpecialListredirects: Use LinkRenderer instead of Linker::link()"

8 years agoSpecialCategories: Use LinkRenderer instead of MediaWikiPageLinkRenderer
Kunal Mehta [Tue, 24 May 2016 02:16:27 +0000 (19:16 -0700)]
SpecialCategories: Use LinkRenderer instead of MediaWikiPageLinkRenderer

And use TitleValue in one place that we can. While it is technically not
equivalent since Title::makeTitleSafe() can return null, since it is
coming directly out of the database, it should be safe to not require
validation.

Change-Id: I97bc0fd8e86f212414487ec88fbb2d7600bdacb6

8 years agoSpecialNewpages: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Wed, 1 Jun 2016 03:46:13 +0000 (20:46 -0700)]
SpecialNewpages: Use LinkRenderer instead of Linker::link()

Change-Id: I78403b7c24253ba44c256f307559400923cc16a6

8 years agoMerge "SpecialUnusedtemplates: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Thu, 23 Jun 2016 12:20:30 +0000 (12:20 +0000)]
Merge "SpecialUnusedtemplates: Use LinkRenderer instead of Linker::link()"

8 years agoSpecialMovepage: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Wed, 1 Jun 2016 03:41:22 +0000 (20:41 -0700)]
SpecialMovepage: Use LinkRenderer instead of Linker::link()

Change-Id: I3b50354e62f47557a3a8ab1ec19a28f687887810

8 years agoSpecialBotPasswords: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Wed, 1 Jun 2016 03:38:10 +0000 (20:38 -0700)]
SpecialBotPasswords: Use LinkRenderer instead of Linker::link()

Change-Id: I939c3d639d8efc0a2f838cf12ff18c9e9795f114

8 years agoMerge "Add SpecialPage::getLinkRenderer()"
jenkins-bot [Thu, 23 Jun 2016 12:12:44 +0000 (12:12 +0000)]
Merge "Add SpecialPage::getLinkRenderer()"

8 years agoSpecialListredirects: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Wed, 1 Jun 2016 03:36:10 +0000 (20:36 -0700)]
SpecialListredirects: Use LinkRenderer instead of Linker::link()

And avoid passing null to LinkBatch::addObj() while we're at it.

Change-Id: I57abaa7c640eb97a3b17be99c8ab898fafb82634

8 years agoMerge "installer: Allow specifying where LocalSettings.php should be saved"
jenkins-bot [Thu, 23 Jun 2016 11:58:52 +0000 (11:58 +0000)]
Merge "installer: Allow specifying where LocalSettings.php should be saved"

8 years agoMerge "Re-word action-createpage and action-createtalk in singular"
jenkins-bot [Thu, 23 Jun 2016 11:23:25 +0000 (11:23 +0000)]
Merge "Re-word action-createpage and action-createtalk in singular"

8 years agoMerge "Switch EditForm to using editRevId in place of edittimestamp"
jenkins-bot [Thu, 23 Jun 2016 11:19:35 +0000 (11:19 +0000)]
Merge "Switch EditForm to using editRevId in place of edittimestamp"

8 years agoMerge "Only attempt to calculate the TTL in Language::sprintfDate if needed"
jenkins-bot [Thu, 23 Jun 2016 10:49:17 +0000 (10:49 +0000)]
Merge "Only attempt to calculate the TTL in Language::sprintfDate if needed"

8 years agoOnly attempt to calculate the TTL in Language::sprintfDate if needed
Marius Hoch [Thu, 23 Jun 2016 10:01:59 +0000 (12:01 +0200)]
Only attempt to calculate the TTL in Language::sprintfDate if needed

Change-Id: Ifd24c9206be05bb4fd2277efc574c9d1018e1957

8 years agoMerge "Fix phpdoc in IP.php (ipv4&6)"
jenkins-bot [Thu, 23 Jun 2016 10:13:17 +0000 (10:13 +0000)]
Merge "Fix phpdoc in IP.php (ipv4&6)"

8 years agoMerge "Fix phpdoc of User::isIP"
jenkins-bot [Thu, 23 Jun 2016 10:06:17 +0000 (10:06 +0000)]
Merge "Fix phpdoc of User::isIP"

8 years agoFix phpdoc in IP.php (ipv4&6)
addshore [Thu, 23 Jun 2016 09:59:00 +0000 (10:59 +0100)]
Fix phpdoc in IP.php (ipv4&6)

Change-Id: I6b362107195794a26b87310cb058ddb811884cbc

8 years agoFix phpdoc of User::isIP
addshore [Thu, 23 Jun 2016 09:57:48 +0000 (10:57 +0100)]
Fix phpdoc of User::isIP

Change-Id: I0990e91ca70cb6fab7e7023917d6eb0d6fd2ff31

8 years agoRe-word action-createpage and action-createtalk in singular
Amire80 [Thu, 23 Jun 2016 09:01:15 +0000 (11:01 +0200)]
Re-word action-createpage and action-createtalk in singular

This usually refers to a single page.
The bug suggests writing a conditional message
for the case of a user who cannot create any pages at all,
but simply saying "create this page" seems enough.

More discussion at
https://en.wikipedia.org/wiki/MediaWiki_talk:Action-createpage

Bug: T61200
Change-Id: Ie192bee99a48ca0f2e3230ae1ccd80fb57c52eb9

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 23 Jun 2016 06:36:56 +0000 (08:36 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5b2124b67ee3606a8fbe98ef3fc66eaff8a39d3d

8 years agoMerge "RELEASE-NOTES: Don't imply that HHVM 3.1 is supported"
jenkins-bot [Wed, 22 Jun 2016 23:08:55 +0000 (23:08 +0000)]
Merge "RELEASE-NOTES: Don't imply that HHVM 3.1 is supported"

8 years agoSpecialUnusedtemplates: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Wed, 1 Jun 2016 03:32:43 +0000 (20:32 -0700)]
SpecialUnusedtemplates: Use LinkRenderer instead of Linker::link()

Change-Id: If54de97106a71d330a0193f61d7eac9d7bb7ad12

8 years agoAdd SpecialPage::getLinkRenderer()
Kunal Mehta [Wed, 22 Jun 2016 21:30:30 +0000 (23:30 +0200)]
Add SpecialPage::getLinkRenderer()

And SpecialPage::setLinkRenderer(), so the Parser can pass on its
LinkRenderer instance for when special pages are being included in a
page.

Change-Id: If9a9c648ab670b824ce534e7cf0d20d41e1bfd12

8 years agoMerge "mediawiki.action.edit.stash: Restore dependency to 'jquery.getAttrs'"
jenkins-bot [Wed, 22 Jun 2016 19:29:59 +0000 (19:29 +0000)]
Merge "mediawiki.action.edit.stash: Restore dependency to 'jquery.getAttrs'"

8 years agoMerge "Move changeslist CSS classes from mediawiki.legacy.shared"
jenkins-bot [Wed, 22 Jun 2016 18:00:42 +0000 (18:00 +0000)]
Merge "Move changeslist CSS classes from mediawiki.legacy.shared"

8 years agoRemove references to AdminSettings.php
Siebrand Mazeland [Wed, 22 Jun 2016 14:54:16 +0000 (16:54 +0200)]
Remove references to AdminSettings.php

The use of this file is no longer possible. The few remaining strings
haven't been updated in a long time, and these references just had to be
removed now.

Bug: T138313
Change-Id: I06f66c0ca7abd4679136151bcb1d8a97d4f6a651

8 years agoMerge "resourceloader: remove redundant mw.loader type-checks"
jenkins-bot [Wed, 22 Jun 2016 16:38:18 +0000 (16:38 +0000)]
Merge "resourceloader: remove redundant mw.loader type-checks"

8 years agoMerge "resourceloader: Simplify CSS loading by removing IE8 hacks"
jenkins-bot [Wed, 22 Jun 2016 16:34:54 +0000 (16:34 +0000)]
Merge "resourceloader: Simplify CSS loading by removing IE8 hacks"

8 years agoresourceloader: remove redundant mw.loader type-checks
Ori Livneh [Sun, 19 Jun 2016 04:34:38 +0000 (21:34 -0700)]
resourceloader: remove redundant mw.loader type-checks

I searched Google and could not find any indication that anyone has encountered
these error messages in the wild since their introduction, half a decade go.
In my opinion they hurt readability substantially by displacing the main body
of the function away from its declaration.

Change-Id: Ifd33974b0c63f3d7ea44f1b0728de4b8b8dde099

8 years agoresourceloader: Simplify CSS loading by removing IE8 hacks
Ori Livneh [Sat, 18 Jun 2016 22:48:45 +0000 (15:48 -0700)]
resourceloader: Simplify CSS loading by removing IE8 hacks

* Remove 'isIEto9'. Since we blacklist anything before 9, isIE9 is enough.

* Set the content of style tags and the href attribute of link tags before
  inserting them into the DOM. Previously, we did DOM insertion first, due
  to T35305. I verified that IE9 is not affected.

* Use document.head instead of document.getElementsByTagName( 'head' )[ 0 ].

* Set / extend the contents of link tags via
  node.appendChild( document.createTextNode( ... ) ) this works in IE9, and
  adding CSS in this way does not strip @media queries in the way that
  repeat node.styleSheet.cssText += '...' operations will. This means the
  workarounds put in place to mitigate T108727 can be removed.
  quirksmode confirms that document.createTextNode() is supported in IE9,
  and mentions the issue with style tags as IE8-specific:
  http://quirksmode.org/dom/core/#t01

I created a test page with all the behaviors here:
https://people.wikimedia.org/~ori/If51f8303b/index.html

It loads correctly in IE9:
https://people.wikimedia.org/~ori/If51f8303b/screenshot.png

Change-Id: If51f8303b74fdc8001cfa20ea8b016fdc210b1b1

8 years agoMerge "Remove uses of deprecated TestUser properties"
jenkins-bot [Wed, 22 Jun 2016 15:48:46 +0000 (15:48 +0000)]
Merge "Remove uses of deprecated TestUser properties"

8 years agoRemove uses of deprecated TestUser properties
addshore [Fri, 6 May 2016 15:06:46 +0000 (16:06 +0100)]
Remove uses of deprecated TestUser properties

Change-Id: Ib44c66492e27516dfe205a5e428ebfd6b0fcdfd9

8 years agoMerge "SpecialSearch: simplify CSS selectors"
jenkins-bot [Wed, 22 Jun 2016 15:08:43 +0000 (15:08 +0000)]
Merge "SpecialSearch: simplify CSS selectors"

8 years agoSpecialSearch: simplify CSS selectors
Derk-Jan Hartman [Fri, 27 May 2016 22:43:41 +0000 (00:43 +0200)]
SpecialSearch: simplify CSS selectors

The CSS specificity in `Special:Search` is probably mostly from when
this was still in the skins. It's about time to clean it up.

Change-Id: Ic100a4b33560c14afc9ad2bfac162d1494b1b5bc

8 years agoMerge "Update namespaces for Konkani gom-deva"
jenkins-bot [Wed, 22 Jun 2016 13:41:59 +0000 (13:41 +0000)]
Merge "Update namespaces for Konkani gom-deva"

8 years agoMerge "Simplify translatewiki.net links from Special:AllMessages"
jenkins-bot [Wed, 22 Jun 2016 10:37:33 +0000 (10:37 +0000)]
Merge "Simplify translatewiki.net links from Special:AllMessages"

8 years agoMerge "Add ą, č, ę, ė, į, š, ų, ū, ž to linkTrail for lt language"
jenkins-bot [Wed, 22 Jun 2016 10:03:55 +0000 (10:03 +0000)]
Merge "Add ą, č, ę, ė, į, š, ų, ū, ž to linkTrail for lt language"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 21 Jun 2016 20:42:23 +0000 (22:42 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id5fb2d3cd7946e8557d2368ffa182a04b937f8c3

8 years agoinstaller: Allow specifying where LocalSettings.php should be saved
Kunal Mehta [Mon, 20 Jun 2016 17:22:51 +0000 (10:22 -0700)]
installer: Allow specifying where LocalSettings.php should be saved

This allows software packages to specify where the LocalSettings.php
file should be saved to when the user is downloading it from the web
installer.

Bug: T123151
Change-Id: I06ded602be9aac0a10773e9d85c4d1585a70933b

8 years agoAdd ą, č, ę, ė, į, š, ų, ū, ž to linkTrail for lt language
Brian Wolff [Tue, 21 Jun 2016 13:42:06 +0000 (09:42 -0400)]
Add ą, č, ę, ė, į, š, ų, ū, ž to linkTrail for lt language

Per request on bug by Durininkas.

Bug: T138293
Change-Id: I3d0a8dcb384a28261d6a97da1957623ac4b389f9

8 years agomediawiki.action.edit.stash: Restore dependency to 'jquery.getAttrs'
Fomafix [Tue, 21 Jun 2016 10:10:22 +0000 (10:10 +0000)]
mediawiki.action.edit.stash: Restore dependency to 'jquery.getAttrs'

mediawiki.action.edit.stash.js uses .serializeObject().
jQuery.fn.serializeObject is defined in module 'jquery.getAttrs'.
The dependency to 'jquery.getAttrs' was removed in 9bec479f.

* Follow-up 9bec479f.

Change-Id: I73bf1a29d76ab97a690b729a7e658048b011c680

8 years agoMerge "Add 'ApiMakeParserOptions' hook"
jenkins-bot [Mon, 20 Jun 2016 22:13:18 +0000 (22:13 +0000)]
Merge "Add 'ApiMakeParserOptions' hook"

8 years agoMerge "Add statsd logging of DeferredUpdates"
jenkins-bot [Mon, 20 Jun 2016 21:14:17 +0000 (21:14 +0000)]
Merge "Add statsd logging of DeferredUpdates"

8 years agoregistration: Add support for $wgGrantPermissions & $wgGrantPermissionGroups
Kunal Mehta [Fri, 10 Jun 2016 20:10:27 +0000 (13:10 -0700)]
registration: Add support for $wgGrantPermissions & $wgGrantPermissionGroups

Change-Id: If336aa351ee5dc4dc07f63cfac2a5d236e501718

8 years agoMerge "Show request id in Exception pages even if $wgShowExceptionDetails is false"
jenkins-bot [Mon, 20 Jun 2016 20:09:45 +0000 (20:09 +0000)]
Merge "Show request id in Exception pages even if $wgShowExceptionDetails is false"

8 years agoMerge "Provide CategoryAfterPageRemoved hook handlers with deleted page IDs"
jenkins-bot [Mon, 20 Jun 2016 20:02:41 +0000 (20:02 +0000)]
Merge "Provide CategoryAfterPageRemoved hook handlers with deleted page IDs"

8 years agoShow request id in Exception pages even if $wgShowExceptionDetails is false
Glaisher [Wed, 8 Jun 2016 17:04:48 +0000 (22:04 +0500)]
Show request id in Exception pages even if $wgShowExceptionDetails is false

Bug: T137277
Change-Id: I5ff7e4ce0336616f8a9bcc39031a0a032bd9a931

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 20 Jun 2016 19:54:50 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I3445e2be17bfe12e63d79bf8b5c5d74258b67e51

8 years agoProvide CategoryAfterPageRemoved hook handlers with deleted page IDs
Aaron Schulz [Fri, 17 Jun 2016 02:56:42 +0000 (19:56 -0700)]
Provide CategoryAfterPageRemoved hook handlers with deleted page IDs

Since this updates happens post-send or via the job queue, the
page object will be for a non-existing or newer page/redirect.

Change-Id: I20b583948157dccceca6eb1fbd25121822bf1b2f

8 years agoMerge "Fix documentation of the dir parameter of list=watchlistraw API action"
jenkins-bot [Mon, 20 Jun 2016 18:38:55 +0000 (18:38 +0000)]
Merge "Fix documentation of the dir parameter of list=watchlistraw API action"

8 years agoAdd 'ApiMakeParserOptions' hook
Brad Jorsch [Mon, 20 Jun 2016 15:58:53 +0000 (11:58 -0400)]
Add 'ApiMakeParserOptions' hook

This allows extensions (e.g. TemplateSandbox in I77a9aa5a) to better
interact with the ApiParse and ApiExpandTemplates modules.

Change-Id: I72d5cf8e0b86e4250af1459219dc3b42d7adbbb8

8 years agoMerge "Rephrase 'upload-foreign-cant-load-config' for clarity"
jenkins-bot [Mon, 20 Jun 2016 18:14:25 +0000 (18:14 +0000)]
Merge "Rephrase 'upload-foreign-cant-load-config' for clarity"

8 years agoMerge "Fix LegacyHookPreAuthenticationProvider::testUserForCreation"
jenkins-bot [Mon, 20 Jun 2016 17:31:22 +0000 (17:31 +0000)]
Merge "Fix LegacyHookPreAuthenticationProvider::testUserForCreation"

8 years agoMerge "Add $options parameter for testUserForCreation()"
jenkins-bot [Mon, 20 Jun 2016 17:30:13 +0000 (17:30 +0000)]
Merge "Add $options parameter for testUserForCreation()"

8 years agoMerge "Use GenderCache service in ApiQueryWatchlistIntegrationTest"
jenkins-bot [Mon, 20 Jun 2016 15:41:12 +0000 (15:41 +0000)]
Merge "Use GenderCache service in ApiQueryWatchlistIntegrationTest"

8 years agoFix LegacyHookPreAuthenticationProvider::testUserForCreation
Brad Jorsch [Thu, 16 Jun 2016 21:44:44 +0000 (17:44 -0400)]
Fix LegacyHookPreAuthenticationProvider::testUserForCreation

Simply testing shouldn't call AbortNewAccount, we only want to do that
when the account is actually being created.

Change-Id: Icb3d1ce63a2691aa232b4564ed88fee6d50d7ab7

8 years agoAdd $options parameter for testUserForCreation()
Brad Jorsch [Thu, 16 Jun 2016 21:43:12 +0000 (17:43 -0400)]
Add $options parameter for testUserForCreation()

This will allow providers to know whether the call is just for testing
(from ApiQueryUsers) or for actual creation, and skip duplicate work
when testForAccountCreation() is going to be called.

Change-Id: Id3ef713fd377135d78f66e5100dedd4689293b59
Depends-On: I4af8b3b692f60c42f8685b90be5936da7ba4e2e2
Depends-On: Ie9639a15d04b387be0e72754301eb6d91cd8adc2
Depends-On: I063cbdfbd9a223bf2391fce2b714ab82ddd3272f
Depends-On: I7c67512634f6e72251911238f083857da9fd3f84

8 years agoAdd tests for ApiQueryWatchlistRaw
Leszek Manicki [Thu, 16 Jun 2016 14:47:40 +0000 (16:47 +0200)]
Add tests for ApiQueryWatchlistRaw

This includes tests that originally were part of
I875a92074b52c00ac11db1fa05615abbf5262ab1

Change-Id: I9c07aa237607143985f0efe20ed0065d2bde27e4

8 years agoMerge "Handle session reset errors in invalidateSessionsForUser.php"
jenkins-bot [Mon, 20 Jun 2016 14:27:55 +0000 (14:27 +0000)]
Merge "Handle session reset errors in invalidateSessionsForUser.php"

8 years agoFix documentation of the dir parameter of list=watchlistraw API action
Leszek Manicki [Mon, 20 Jun 2016 12:11:04 +0000 (14:11 +0200)]
Fix documentation of the dir parameter of list=watchlistraw API action

Bug: T138213
Change-Id: I26709b03dd9b64c6f1231f3bfc3064c63c8f0c21

8 years agoMove changeslist CSS classes from mediawiki.legacy.shared
Prateek Saxena [Mon, 20 Jun 2016 09:18:35 +0000 (14:48 +0530)]
Move changeslist CSS classes from mediawiki.legacy.shared

Bug: T89981
Change-Id: Ifd90292fc54875403d871429ce6e5020036d4797

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 19 Jun 2016 19:58:25 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic37b73b22a6bf310319fe91b09d9a729419b61f2

8 years agoRender bad images in wikitext as links
Jackmcbarn [Thu, 8 Jan 2015 17:53:33 +0000 (12:53 -0500)]
Render bad images in wikitext as links

In galleries, bad images are rendered as links. This causes the same behavior
to occur in wikitext, rather than the current behavior of not rendering
anything.

Change-Id: I1a074bff7cb661b5b4e6db9503eb6a5de702ee2f

8 years agoMerge "Deprecate Parser::disableCache"
jenkins-bot [Sat, 18 Jun 2016 20:04:33 +0000 (20:04 +0000)]
Merge "Deprecate Parser::disableCache"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 18 Jun 2016 19:56:05 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I468bbcade78dcf0b9843b3bd6370cc3cabdf2e22

8 years agoDeprecate Parser::disableCache
Aaron Schulz [Wed, 15 Jun 2016 01:25:36 +0000 (18:25 -0700)]
Deprecate Parser::disableCache

Few maintained extensions still rely on this and it is
bad practice to use this for handling cache correctness.

Change-Id: I2de481198bbff5c4f3dd81fc6d1b137e4c37b93f

8 years agoAdd statsd logging of DeferredUpdates
Aaron Schulz [Sat, 18 Jun 2016 18:24:01 +0000 (11:24 -0700)]
Add statsd logging of DeferredUpdates

Bug: T137326
Change-Id: Icce439210c6412c1824d8d5c411880825bb05643

8 years agoHandle session reset errors in invalidateSessionsForUser.php
Gergő Tisza [Fri, 17 Jun 2016 00:12:38 +0000 (00:12 +0000)]
Handle session reset errors in invalidateSessionsForUser.php

Also, do not skip session reset if the user does not exist locally.

Change-Id: I5a55e4a6f2d296576ee76e212ed379225251e128

8 years agoImprove edit stashing when vary-revision is used
Aaron Schulz [Fri, 17 Jun 2016 23:16:27 +0000 (16:16 -0700)]
Improve edit stashing when vary-revision is used

At least avoid the first parse in doEditContent()/filters which
never has the revision set either. The second parse cannot be
avoided in doEditUpdates() however.

Bug: T136678
Change-Id: I12d2c3bbe1b21ad2ed9a484745d976ad62475e0d

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 17 Jun 2016 19:53:33 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I99bcec90e06d89ea9a6e80ee24ef026bdfacf551

8 years agoRemove no-longer needed backported class from phpunit
Kunal Mehta [Fri, 17 Jun 2016 01:55:25 +0000 (18:55 -0700)]
Remove no-longer needed backported class from phpunit

Since we finally upgraded our phpunit version, we no longer need a copy
of this phpunit matcher.

Change-Id: I9bf3db344a2e8789a264a453e4e6d87fedc4dc49

8 years agoMerge "DumpUploads: output local path instead of mwstore path"
jenkins-bot [Fri, 17 Jun 2016 02:12:27 +0000 (02:12 +0000)]
Merge "DumpUploads: output local path instead of mwstore path"

8 years agoSplit off basic styles from the JavaScript module 'mediawiki.action.history'
Bartosz Dziewoński [Thu, 16 Jun 2016 12:25:02 +0000 (14:25 +0200)]
Split off basic styles from the JavaScript module 'mediawiki.action.history'

Since d629541076c the .updatedmarker element was styled via a JavaScript
module - which caused a flash of unstyled content on the history page
for most users, and was left unstyled for noscript users.

Bug: T137383
Change-Id: I362abacf51160a8305b2b0013f65e89deb2ffc93

8 years agoMerge "mediawiki.action.edit: Merge with mediawiki.action.edit.stash"
jenkins-bot [Thu, 16 Jun 2016 21:47:55 +0000 (21:47 +0000)]
Merge "mediawiki.action.edit: Merge with mediawiki.action.edit.stash"

8 years agotest: basic test for ApiStashEdit
Antoine Musso [Thu, 16 Jun 2016 20:25:58 +0000 (22:25 +0200)]
test: basic test for ApiStashEdit

At least execute the main entry point.

Change-Id: I0788c9a7bf93b5365f4e510dff4e11fe6ffa3558

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 16 Jun 2016 19:54:08 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic811056a74b4f7bff1494288258016d8e8d76a8d

8 years agomediawiki.action.edit: Merge with mediawiki.action.edit.stash
Timo Tijhof [Thu, 9 Jun 2016 19:59:55 +0000 (20:59 +0100)]
mediawiki.action.edit: Merge with mediawiki.action.edit.stash

This module isn't used anywhere else. It was probably put into a
separate module due to the conditional loading. Though that can
be done client-side just as easily.

If we want to make it loaded conditionally, we could make the
module composition conditionally (which is straight-forward since
the condition doesn't vary on anything within the wiki).

* Follow-up 3a6c9d36: Remove 'jquery.getAttrs' from dependencies (unused).

Change-Id: Ic32da6f9b1c85eb106394b412fab9b22e0928323

8 years agoMerge "Fix handling of error messages from the 'SpecialPasswordResetOnSubmit' hook"
jenkins-bot [Thu, 16 Jun 2016 16:58:29 +0000 (16:58 +0000)]
Merge "Fix handling of error messages from the 'SpecialPasswordResetOnSubmit' hook"

8 years agoMerge "Add invalidateUserSessions.php maintenance script"
Dpatrick [Thu, 16 Jun 2016 16:04:40 +0000 (16:04 +0000)]
Merge "Add invalidateUserSessions.php maintenance script"

8 years agoFix handling of error messages from the 'SpecialPasswordResetOnSubmit' hook
Brad Jorsch [Thu, 16 Jun 2016 16:03:59 +0000 (12:03 -0400)]
Fix handling of error messages from the 'SpecialPasswordResetOnSubmit' hook

$error might be an array of key + values, but wfMessage() treats that as
an array of alternative message keys instead so the values are lost.
Message::newFromSpecifier(), on the other hand, does exactly what we
want.

Change-Id: I25765869f6888ac793c2af9caaa9bbdf2224d51a

8 years agoMerge "Fix typo in 'log-action-filter-suppress-block'"
jenkins-bot [Thu, 16 Jun 2016 13:54:01 +0000 (13:54 +0000)]
Merge "Fix typo in 'log-action-filter-suppress-block'"

8 years agoMerge "Add hook to modify Special:Contributions lines"
jenkins-bot [Thu, 16 Jun 2016 13:27:16 +0000 (13:27 +0000)]
Merge "Add hook to modify Special:Contributions lines"

8 years agoFix typo in 'log-action-filter-suppress-block'
Bartosz Dziewoński [Thu, 16 Jun 2016 13:10:30 +0000 (15:10 +0200)]
Fix typo in 'log-action-filter-suppress-block'

And some other instances of 'ppp'.

Bug: T137960
Change-Id: I3926873a79f297e0369d3c6c3300c29d2196d68f

8 years agoRephrase 'upload-foreign-cant-load-config' for clarity
Bartosz Dziewoński [Thu, 16 Jun 2016 13:07:50 +0000 (15:07 +0200)]
Rephrase 'upload-foreign-cant-load-config' for clarity

Bug: T137670
Change-Id: I105b9dd570745053c82f43d95c4b427788adacce

8 years agoAdd invalidateUserSessions.php maintenance script
Gergő Tisza [Wed, 15 Jun 2016 18:01:31 +0000 (18:01 +0000)]
Add invalidateUserSessions.php maintenance script

Similar to resetUserTokens.php but uses AuthManager and takes a
list of users (a script for invalidating all users would be
mostly pointless with $wgAuthenticationTokenVersion).

resetUserTokens.php is deprecated, but kept around - mainly in case
we want to transform it into a fast token reset algorithm much like
I6b6e75db2a.

Change-Id: I81450c44a7af26393db7fc61fd5c05f13a13ac3f

8 years agoAdd hook to modify Special:Contributions lines
amir [Wed, 8 Jun 2016 22:05:00 +0000 (22:05 +0000)]
Add hook to modify Special:Contributions lines

This gives finer-grained extensibility than the current ContributionsLineEnding
hook.

Bug: T122537
Change-Id: Ifca9f3f3b838a2915152f0200624ef40ee3f8a19

8 years agoMerge "Revert "wfShellExec: Work around PHP 5.3 stream_select() issue""
jenkins-bot [Thu, 16 Jun 2016 10:30:11 +0000 (10:30 +0000)]
Merge "Revert "wfShellExec: Work around PHP 5.3 stream_select() issue""

8 years agoMerge "Fix RSpec::Expectations::ExpectationNotMetError in Selenium tests"
jenkins-bot [Thu, 16 Jun 2016 08:17:06 +0000 (08:17 +0000)]
Merge "Fix RSpec::Expectations::ExpectationNotMetError in Selenium tests"

8 years agoRevert "wfShellExec: Work around PHP 5.3 stream_select() issue"
Kevin Israel [Sat, 13 Feb 2016 00:40:49 +0000 (19:40 -0500)]
Revert "wfShellExec: Work around PHP 5.3 stream_select() issue"

No longer needed. Currently, MediaWiki supports neither PHP 5.3
nor HHVM 3.4 or lower. The minimum HHVM version stated in the
Compatibility section of the RELEASE-NOTES file is 3.6.5.

This reverts commit 8bd6f698ccb990c9a9d37f495b8b5b7620832018.

Change-Id: I2edd25c4ce00eb324f7f6e04b2034ad28f7c6964