lhc/web/wiklou.git
7 years agoMerge "Resources: Remove very old comment about OOjs UI incompatibility"
jenkins-bot [Wed, 29 Jun 2016 16:07:15 +0000 (16:07 +0000)]
Merge "Resources: Remove very old comment about OOjs UI incompatibility"

7 years agoMerge "Add API module to receive CSP reports."
jenkins-bot [Wed, 29 Jun 2016 15:26:23 +0000 (15:26 +0000)]
Merge "Add API module to receive CSP reports."

7 years agoUpdate OOjs UI to v0.17.5
James D. Forrester [Wed, 29 Jun 2016 13:32:06 +0000 (14:32 +0100)]
Update OOjs UI to v0.17.5

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.5

Change-Id: I17caee666b1d1cc2da670e073ef57122a66ecfc6

7 years agoMerge "Deprecate the 'UploadVerification' hook"
jenkins-bot [Wed, 29 Jun 2016 13:25:27 +0000 (13:25 +0000)]
Merge "Deprecate the 'UploadVerification' hook"

7 years agoDrop RELEASE-NOTES-1.27, merge into HISTORY
James D. Forrester [Wed, 29 Jun 2016 12:32:23 +0000 (13:32 +0100)]
Drop RELEASE-NOTES-1.27, merge into HISTORY

Now that it's a release.

Change-Id: Ib8374f7916a74bfc564c347d2ea312a1e66a1dad

7 years agoMerge "kafka: Implement ack handling"
jenkins-bot [Wed, 29 Jun 2016 12:18:45 +0000 (12:18 +0000)]
Merge "kafka: Implement ack handling"

7 years agoRun maintenance/generateLocalAutoload.php
Gergő Tisza [Wed, 29 Jun 2016 11:35:24 +0000 (11:35 +0000)]
Run maintenance/generateLocalAutoload.php

Change-Id: I0cf208b927d28a09a8603604fdfe0a6c1e9beb6b

7 years agoMerge "Refactor database-related code in ApiQueryWatchlist"
jenkins-bot [Wed, 29 Jun 2016 09:07:44 +0000 (09:07 +0000)]
Merge "Refactor database-related code in ApiQueryWatchlist"

7 years agoMerge "autocomplete: fix duplicate/missing tracking events"
jenkins-bot [Wed, 29 Jun 2016 08:47:20 +0000 (08:47 +0000)]
Merge "autocomplete: fix duplicate/missing tracking events"

7 years agoMerge "js suggest: better keyup/keydown handling"
jenkins-bot [Wed, 29 Jun 2016 08:42:53 +0000 (08:42 +0000)]
Merge "js suggest: better keyup/keydown handling"

7 years agoRefactor database-related code in ApiQueryWatchlist
Leszek Manicki [Tue, 19 Apr 2016 09:34:31 +0000 (11:34 +0200)]
Refactor database-related code in ApiQueryWatchlist

This moves generating of a complex Watchlist and RecentChanges
related query to a WatchedItemQueryService class.
ApiQueryWatchlist class no longer contains any database-related
code.

Bug: T132565
Change-Id: I5a5cda13f8091baa430ac1a8e2176e0efd1ae192

7 years agojquery.accessKeyLabel: Avoid needless mw.Message#parser in updateTooltip()
Timo Tijhof [Mon, 27 Jun 2016 20:37:47 +0000 (21:37 +0100)]
jquery.accessKeyLabel: Avoid needless mw.Message#parser in updateTooltip()

When calling mw.util.addPortletLink(), Chrome on a MacBook Pro spends 3ms
in mw.Message#parser for each link that doesn't even have a title.

> addPortletLink: updateTooltipAccessKeys: updateTooltip: msg: mw.Message.parser

Change-Id: Id6c26e31eb2c1431fe9725e608813bdf40069207

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Jun 2016 20:09:49 +0000 (22:09 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6a1e0bab0d201e631b0c6434fd6839245f6dc0c1

7 years agoMerge "skins: Minor code clean up"
jenkins-bot [Tue, 28 Jun 2016 19:57:20 +0000 (19:57 +0000)]
Merge "skins: Minor code clean up"

7 years agoDeprecate the 'UploadVerification' hook
Bartosz Dziewoński [Tue, 28 Jun 2016 19:32:43 +0000 (21:32 +0200)]
Deprecate the 'UploadVerification' hook

It has been replaced by 'UploadVerifyFile' a long time ago,
but never officially deprecated.

Change-Id: I345dca48c28ee5e1e2ad35bb6f42bbc03a1f4dd1

7 years agoAdd API module to receive CSP reports.
Brian Wolff [Mon, 29 Feb 2016 03:57:10 +0000 (22:57 -0500)]
Add API module to receive CSP reports.

There are two expected usecases for this:
* The proposed builtin CSP support at I80f6f4
* Setting CSP headers on media served from upload.wikimedia.org

This was split from I80f6f46

For details on CSP, see http://www.w3.org/TR/CSP2/
See also https://www.mediawiki.org/wiki/Requests_for_comment/Content-Security-Policy

Related to (but not directly a fix for) T117618

Bug: T135963
Change-Id: Id92126ca7707186757e77fe50cd336ff1acb8b3f

7 years agoMerge "mediawiki.ui: Align `.mw-ui-input:focus` to design spec"
jenkins-bot [Tue, 28 Jun 2016 18:15:05 +0000 (18:15 +0000)]
Merge "mediawiki.ui: Align `.mw-ui-input:focus` to design spec"

7 years agoMerge "Allow Message::newFromSpecifier to handle ApiMessages"
jenkins-bot [Tue, 28 Jun 2016 17:36:10 +0000 (17:36 +0000)]
Merge "Allow Message::newFromSpecifier to handle ApiMessages"

7 years agoAllow Message::newFromSpecifier to handle ApiMessages
Brad Jorsch [Tue, 21 Jun 2016 15:12:53 +0000 (11:12 -0400)]
Allow Message::newFromSpecifier to handle ApiMessages

Instead of constructing a new Message from the Message as
a MessageSpecifier, just clone the existing Message which will preserve
subclass data.

Also, make use of this to simplify the logic in ApiBase::parseMsg().

Change-Id: I9545acb8da752c0c21e16d8b1d37d8802fcb329d

7 years agoMerge "ApiQuerySiteInfo: Expose wgFixArabicUnicode and wgFixMalayalamUnicode"
jenkins-bot [Tue, 28 Jun 2016 15:52:34 +0000 (15:52 +0000)]
Merge "ApiQuerySiteInfo: Expose wgFixArabicUnicode and wgFixMalayalamUnicode"

7 years agoMerge "mediawiki.js: Correct a typo in documentation"
jenkins-bot [Tue, 28 Jun 2016 07:26:56 +0000 (07:26 +0000)]
Merge "mediawiki.js: Correct a typo in documentation"

7 years agoUsageException: Validate that $codestr is a non-empty string
Brad Jorsch [Mon, 27 Jun 2016 23:31:56 +0000 (19:31 -0400)]
UsageException: Validate that $codestr is a non-empty string

Current theory on T138585 is that something is passing in false, so
let's throw an InvalidArgumentException that should log a backtrace for
us.

Bug: T138585
Change-Id: Iba0dad424c56340b8bc73322bb1a7ae6d4de314a

7 years agoApiQuerySiteInfo: Expose wgFixArabicUnicode and wgFixMalayalamUnicode
Yusuke Matsubara [Sun, 26 Jun 2016 12:38:17 +0000 (21:38 +0900)]
ApiQuerySiteInfo: Expose wgFixArabicUnicode and wgFixMalayalamUnicode

These variables control how MediaWiki normalizes page titles.
Clients need to know these settings to not be surprised by such normalization.
See T94826.

Change-Id: Id77f584b8c3a3d9c065993bd74525f166112b20c

7 years agomediawiki.js: Correct a typo in documentation
Bartosz Dziewoński [Mon, 27 Jun 2016 22:54:04 +0000 (00:54 +0200)]
mediawiki.js: Correct a typo in documentation

Change-Id: I03808e49d67c5d412929472d3e0cde2390e1a8e1

7 years agoMerge "Fix misleading comment about svg filtering."
jenkins-bot [Mon, 27 Jun 2016 20:36:25 +0000 (20:36 +0000)]
Merge "Fix misleading comment about svg filtering."

7 years agoMerge "mediawiki.api.edit: Add edit() and create() methods"
jenkins-bot [Mon, 27 Jun 2016 20:26:01 +0000 (20:26 +0000)]
Merge "mediawiki.api.edit: Add edit() and create() methods"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 27 Jun 2016 20:18:30 +0000 (22:18 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I41d9dca5b60db89e21609a1eff34494298daf6f3

7 years agomediawiki.api.edit: Add edit() and create() methods
Timo Tijhof [Mon, 27 Jun 2016 16:08:34 +0000 (17:08 +0100)]
mediawiki.api.edit: Add edit() and create() methods

Doing edits "The Right Way" is non-trivial due there being mulitple strict options that
need to be known and enabled. By default, the API encourages bad behaviour:

* Edit is unexpectedly saved as anon after session becomes invalid.
* Other edits are silently overwritten.
* Accidentally re-creates a deleted page.
* Accidentally creates a new page when an edit was intended (eg. if title was wrong).

Implement abstraction methods for edit and create that handle all this.
Thus guarding JS edits with the same protections as EditPage.

Change-Id: Ic6a35902cbae262971c704b9b8127e54733dac79

7 years agoMerge "Expose $wgMaxArticleSize in siteinfo query api"
jenkins-bot [Mon, 27 Jun 2016 15:28:21 +0000 (15:28 +0000)]
Merge "Expose $wgMaxArticleSize in siteinfo query api"

7 years agoExpose $wgMaxArticleSize in siteinfo query api
Florian [Sat, 25 Jun 2016 16:43:23 +0000 (18:43 +0200)]
Expose $wgMaxArticleSize in siteinfo query api

Currently, an user of the api has to try to save a page to see,
if it's too big, or not. A much saner way would be, that the api user
reads the siteinfo of the target wiki to know the maximum size of a
page and trim the edit to not exceed this limit.

This commit exposes the value of the configuration variable, which
handles the maximum article size.

Bug: T138669
Change-Id: I25a4c1b9013f98e5b0a263a637c8b006dccfd5ad

7 years agoskins: Minor code clean up
Timo Tijhof [Mon, 27 Jun 2016 12:32:02 +0000 (14:32 +0200)]
skins: Minor code clean up

* Make Skin::initPage visibility explicit.
* Make Skin::preloadExistence protected (not used outside this class).
* Remove use of empty().
* Avoid empty if-block.

Change-Id: I85bac34ded3414af5b998af614d554402ce92f21

7 years agoFix misleading comment about svg filtering.
Brian Wolff [Mon, 27 Jun 2016 09:47:21 +0000 (05:47 -0400)]
Fix misleading comment about svg filtering.

Follow-up 551d79a3e6754. See also Bug T122653.

Change-Id: I0662dc6618596bb3a3bad345de45b054b6f7f968

7 years agomediawiki.ui: Align `.mw-ui-input:focus` to design spec
Volker E [Sun, 26 Jun 2016 12:37:48 +0000 (14:37 +0200)]
mediawiki.ui: Align `.mw-ui-input:focus` to design spec

Aligning `.mw-ui-input:focus` to design specification
https://phabricator.wikimedia.org/M101

Change-Id: I4e4d20d38047e9b2e069a84a073fc57480303452

7 years agoFollow-up 9e45850: Temporarily duplicate styles back to shared.css
Prateek Saxena [Sun, 26 Jun 2016 12:11:58 +0000 (17:41 +0530)]
Follow-up 9e45850: Temporarily duplicate styles back to shared.css

Per Bartosz and Timo's comments on
Ifd90292fc54875403d871429ce6e5020036d4797

Change-Id: I90940d3f67780af6f1efb8507a0bc038e0496220

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 26 Jun 2016 08:48:14 +0000 (10:48 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib334b266f7a061203444ca34e6b3fa5add2d9d22

7 years agoMerge "Follow-up ebe7205c: Edit stash: Unbreak jQuery selectors"
jenkins-bot [Sat, 25 Jun 2016 14:23:01 +0000 (14:23 +0000)]
Merge "Follow-up ebe7205c: Edit stash: Unbreak jQuery selectors"

7 years agoFollow-up ebe7205c: Edit stash: Unbreak jQuery selectors
Fomafix [Sat, 25 Jun 2016 09:40:51 +0000 (09:40 +0000)]
Follow-up ebe7205c: Edit stash: Unbreak jQuery selectors

Change-Id: I4d72948ba62cb5c1cc29277f30363c29e42fa25b

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 25 Jun 2016 12:09:10 +0000 (14:09 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I8526fd44dca56b8cbd902e909936137a1b108c1f

7 years agoMerge "Mock Http in MediaWikiPageNameNormalizerTest and add more test cases"
jenkins-bot [Sat, 25 Jun 2016 10:03:57 +0000 (10:03 +0000)]
Merge "Mock Http in MediaWikiPageNameNormalizerTest and add more test cases"

7 years agoRestore load position override for 'site.styles' module
Timo Tijhof [Fri, 24 Jun 2016 13:51:27 +0000 (15:51 +0200)]
Restore load position override for 'site.styles' module

Follows-up 93ed259 which changed the module to be 'site.styles', but
the override was still looking for a module called 'site' (which isn't
listed in that queue anymore).

Bug: T138586
Change-Id: I3052a2e378f804d0d4d117f8ed446fe9b4b59f99

7 years agoMark the APIEditBeforeSave hook as deprecated
James D. Forrester [Thu, 23 Jun 2016 16:44:17 +0000 (18:44 +0200)]
Mark the APIEditBeforeSave hook as deprecated

Bug: T137832
Depends-On: I9d0b7e7713c805ebc7bf59f55456e69c6491e265 (AbuseFilter)
Depends-On: I27f244631e9dcd160bffff70349e5034f2a537ea (ConfirmEdit)
Depends-On: I7b0e1d125b196379dd5bf26658ff642d32ba832a (ProofreadPage)
Depends-On: I97f6a3c20476f1a42e3fadc701df5870a30c790c (SpamBlacklist)
Change-Id: I6947d5373aa33224141f8d21cf3a1ee1f641d952

7 years agoMock Http in MediaWikiPageNameNormalizerTest and add more test cases
Marius Hoch [Fri, 24 Jun 2016 15:24:10 +0000 (17:24 +0200)]
Mock Http in MediaWikiPageNameNormalizerTest and add more test cases

Bug: T138570
Change-Id: Ia156ba61afb90c9a3b1a2e1e0bf967056bd87fc8

7 years agoMerge "Chinese Conversion Table Update 2016-4"
jenkins-bot [Fri, 24 Jun 2016 18:21:21 +0000 (18:21 +0000)]
Merge "Chinese Conversion Table Update 2016-4"

7 years agoMerge "Extended login: Don't use a $wg config variable, add UserName"
jenkins-bot [Fri, 24 Jun 2016 17:59:28 +0000 (17:59 +0000)]
Merge "Extended login: Don't use a $wg config variable, add UserName"

7 years agoMerge "build: Bump grunt-stylelint to v0.4.0 and make pass"
jenkins-bot [Fri, 24 Jun 2016 15:48:15 +0000 (15:48 +0000)]
Merge "build: Bump grunt-stylelint to v0.4.0 and make pass"

7 years agoMerge "registration: Support Change/RemoveCredentialsBlacklist in extension.json"
jenkins-bot [Fri, 24 Jun 2016 14:34:06 +0000 (14:34 +0000)]
Merge "registration: Support Change/RemoveCredentialsBlacklist in extension.json"

7 years agoMerge "Make deprecated TestUser properties private"
jenkins-bot [Fri, 24 Jun 2016 14:26:34 +0000 (14:26 +0000)]
Merge "Make deprecated TestUser properties private"

7 years agoMerge "Edit stash: Support CodeEditor"
jenkins-bot [Fri, 24 Jun 2016 14:22:34 +0000 (14:22 +0000)]
Merge "Edit stash: Support CodeEditor"

7 years agobuild: Bump grunt-stylelint to v0.4.0 and make pass
James D. Forrester [Fri, 10 Jun 2016 09:24:45 +0000 (10:24 +0100)]
build: Bump grunt-stylelint to v0.4.0 and make pass

Change-Id: I00e469cf9b484c9d4d4ad145480fa6e66dd7e8cc

7 years agoregistration: Support Change/RemoveCredentialsBlacklist in extension.json
Gergő Tisza [Tue, 14 Jun 2016 21:21:02 +0000 (21:21 +0000)]
registration: Support Change/RemoveCredentialsBlacklist in extension.json

Change-Id: I4d796a46d99daa8841fcdcbe76dddf9db46af9ed

7 years agoEdit stash: Support CodeEditor
Fomafix [Thu, 23 Jun 2016 11:31:00 +0000 (11:31 +0000)]
Edit stash: Support CodeEditor

Use .textSelection( 'getContents' ) instead of .val() for '#wpTextbox1' and '#wpSummary'.

Then the normalization of line endings and dependency on 'jquery.getAttrs' is not necessary.

Bug: T137861
Change-Id: I26f7021a2a02cf719c9e5f44787b95cfc3239959

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 24 Jun 2016 08:17:40 +0000 (10:17 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5105d0a0b0e35fdafbe9604122a49ae692cabe5a

7 years agoFix unit tests running on non-DB environment
Stanislav Malyshev [Thu, 23 Jun 2016 22:38:15 +0000 (15:38 -0700)]
Fix unit tests running on non-DB environment

Bug: T138551
Change-Id: Ie1d3c8b24e5271d4e12f4190400531cbe606bfd4

7 years agoMerge "mw.jqueryMsg: Add support for {{PAGENAME}} and {{PAGENAMEE}}"
jenkins-bot [Thu, 23 Jun 2016 18:46:54 +0000 (18:46 +0000)]
Merge "mw.jqueryMsg: Add support for {{PAGENAME}} and {{PAGENAMEE}}"

7 years agoExtended login: Don't use a $wg config variable, add UserName
Matthew Flaschen [Wed, 22 Jun 2016 16:36:16 +0000 (18:36 +0200)]
Extended login: Don't use a $wg config variable, add UserName

CentralAuth needs 'User' as well for this to work.  However, this
shows the exact cookie names are an implementation detail that should
not be exposed as a 'wg'.

Instead, use a function in the CookieSessionProvider.  That way,
CentralAuth can override it properly without requiring users to change
$wg's.

I also added UserName. provideSessionInfo will fail to return
session info if UserID and UserName are both set and don't match.

Also, the UserID<->UserName mapping is public, so there is no
additional privacy issue.  Thus, it seems we should expire them
the same time.

Bug: T68699
Change-Id: Ia3259846433980408f79d44f665e17e15670e8ee

7 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"

7 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"

7 years agokafka: Implement ack handling
Erik Bernhardson [Fri, 3 Jun 2016 00:44:43 +0000 (17:44 -0700)]
kafka: Implement ack handling

By default the kafka implementation we use doesn't require any kind of
acknowledgment, it just throws messages into the wind and lets them sit
where they may. Implement an option for KafkaHandler to specify the
number of acks (number of replicas that must record the message) and
some error handling to throw exceptions as necessary when there is a
problem.

Bug: T135159
Change-Id: I859dc791072db407f908b2f36be0d6704f1a6256

7 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"

7 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"

7 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

7 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

7 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

7 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

7 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"

7 years agoChinese Conversion Table Update 2016-4
Chiefwei [Thu, 23 Jun 2016 12:57:11 +0000 (20:57 +0800)]
Chinese Conversion Table Update 2016-4

Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82 .

It is only data changes and only works for Chinese WikiProjects.

Change-Id: I69a61766a9a1aa2cdb58d55434606afabba0e9b9

7 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()"

7 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()"

7 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()"

7 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()"

7 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

7 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

7 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()"

7 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

7 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

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

7 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

7 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"

7 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"

7 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"

7 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"

7 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

7 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)"

7 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"

7 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

7 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

7 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

7 years agomw.jqueryMsg: Add support for {{PAGENAME}} and {{PAGENAMEE}}
Bartosz Dziewoński [Thu, 23 Jun 2016 08:48:44 +0000 (10:48 +0200)]
mw.jqueryMsg: Add support for {{PAGENAME}} and {{PAGENAMEE}}

Bug: T115259
Change-Id: I40146e9db5e0b1c171a0fb43b68e28f83c8a590a

7 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

7 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"

7 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

7 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

7 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'"

7 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"

7 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

7 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"

7 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"

7 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

7 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

7 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"