lhc/web/wiklou.git
8 years agoUnroll DummyLinker::__call
addshore [Wed, 20 Apr 2016 07:54:42 +0000 (08:54 +0100)]
Unroll DummyLinker::__call

Change-Id: Ie1325c2b8f06f9936e7b7ad10780c4b0cf702d18

8 years agoMove DummyLinker to own file
addshore [Wed, 20 Apr 2016 07:48:48 +0000 (08:48 +0100)]
Move DummyLinker to own file

Change-Id: I1808a6b77af2597b4dd2c9f1e0c8604c2bc8c801

8 years agoRELNOTES for Skin::__call unroll & removal
addshore [Tue, 19 Apr 2016 12:52:01 +0000 (13:52 +0100)]
RELNOTES for Skin::__call unroll & removal

Change-Id: I3d03338cbb48fe00f2beeb0dc7f5a1c2ff25d77d

8 years agoRemove unused Skin -> Linker deprecated methods
addshore [Tue, 19 Apr 2016 12:41:43 +0000 (13:41 +0100)]
Remove unused Skin -> Linker deprecated methods

This also creates full pass through methods for
the remaining methods that are used by extensions
and skins in gerrit still.

Release notes will be added in a followup

Change-Id: I31c3b754cd70b1c60310add0de9d29a76f713cad

8 years agoRe add wfDeprecated calls after Skin::__call unroll
addshore [Wed, 20 Apr 2016 07:33:47 +0000 (08:33 +0100)]
Re add wfDeprecated calls after Skin::__call unroll

Change-Id: I0418d88e0fe355b7efff6e923d3144db3a294cea

8 years agoSpecially handle Title objects in Title::newFromLinkTarget()
Kunal Mehta [Wed, 20 Apr 2016 05:21:09 +0000 (22:21 -0700)]
Specially handle Title objects in Title::newFromLinkTarget()

Every single caller of Title::newFromLinkTarget() already special cases
when the LinkTarget object is already a Title, so move that logic into
one function.

Change-Id: Iba5432ae01c87850e5b34893092427c5b1629188

8 years agoAdd root title class to <body>
Marc A. Pelletier [Sun, 3 Apr 2016 07:46:06 +0000 (10:46 +0300)]
Add root title class to <body>

This adds a class to the body node of output pages in the form:

rootpage-X

Where X is the root title of the page.

This provides for the use cases in the linked tasks, and allows the
numerous existing cases of expensive css selectors using class*='page-X'
that are otherwise needed to apply a style to a page and or its subpages.

Bug: T123156
Bug: T17075
Change-Id: Ib16e380d97bd7bb55c5b5044a084fefbd039d599

8 years agoMerge "RebuildRecentchanges improvements"
jenkins-bot [Wed, 20 Apr 2016 00:02:47 +0000 (00:02 +0000)]
Merge "RebuildRecentchanges improvements"

8 years agoUpdate OOjs UI to v0.16.6
James D. Forrester [Tue, 19 Apr 2016 22:00:12 +0000 (15:00 -0700)]
Update OOjs UI to v0.16.6

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

Change-Id: Ib9bb35d87633d06211dd75e237d7b105947f8df1

8 years agoRebuildRecentchanges improvements
Aaron Schulz [Tue, 19 Apr 2016 20:40:38 +0000 (13:40 -0700)]
RebuildRecentchanges improvements

* Always delete entries in the time range
* Batch queries and wait for slaves
* Optimized size-fetching query (pass 2)
* Set with rc_type with the actual constants (pass 2)
* Avoid flagging non-bot accounts as 'bot edits
* Use more modern DB layer coding style

Bug: T133053
Change-Id: I55cc099bf40977fa9e0a365da104c208441eec00

8 years agoMerge "Unroll __call in Skin"
jenkins-bot [Tue, 19 Apr 2016 20:25:53 +0000 (20:25 +0000)]
Merge "Unroll __call in Skin"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 19 Apr 2016 19:59:09 +0000 (21:59 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I945074db5ba068c8e6b49b0cef3990938e766f16

8 years agoMerge "Improve HTMLSubmitField return value"
jenkins-bot [Tue, 19 Apr 2016 19:43:55 +0000 (19:43 +0000)]
Merge "Improve HTMLSubmitField return value"

8 years agoMerge "rebuildrecentchanges: Allow rebuilding specified time range only"
jenkins-bot [Tue, 19 Apr 2016 18:44:10 +0000 (18:44 +0000)]
Merge "rebuildrecentchanges: Allow rebuilding specified time range only"

8 years agorebuildrecentchanges: Allow rebuilding specified time range only
Bartosz Dziewoński [Tue, 19 Apr 2016 17:58:22 +0000 (19:58 +0200)]
rebuildrecentchanges: Allow rebuilding specified time range only

Bug: T133053
Change-Id: I8eef6e72f1105352116248548ab077fef818a8f9

8 years agoAdd missing visualClear on search result page
Florian [Tue, 19 Apr 2016 17:24:04 +0000 (19:24 +0200)]
Add missing visualClear on search result page

I'm not sure, when this was removed or why it broke, but without
the visualClear (clear:both), the text match section is near the
title match section, instead of after it.

Bug: T133071
Change-Id: I68028a8658ba0aa526ce1a6ef6401f9fd79533f8

8 years agoRemove stray variable in processLogin()
Aaron Schulz [Tue, 19 Apr 2016 16:52:27 +0000 (09:52 -0700)]
Remove stray variable in processLogin()

Change-Id: Ife23555755e69d1d40b0c37259f53f3df78468aa

8 years agoRemove unused wfGetDB() in SiteStats::jobs
addshore [Tue, 19 Apr 2016 16:07:50 +0000 (17:07 +0100)]
Remove unused wfGetDB() in SiteStats::jobs

Change-Id: Id818a71a75e4d4cb8397df5b1ff3dfdd3b155ea7

8 years agoMerge "Convert Special:WithoutInterwiki to HTMLForm"
jenkins-bot [Tue, 19 Apr 2016 15:19:43 +0000 (15:19 +0000)]
Merge "Convert Special:WithoutInterwiki to HTMLForm"

8 years agoUnroll __call in Skin
addshore [Tue, 19 Apr 2016 12:37:04 +0000 (13:37 +0100)]
Unroll __call in Skin

Change-Id: Ia07a6099fed42bddcf2d6135de9c06f744b2f309

8 years agoMerge "Fix wrong @return type hints in Language::tsTo… methods"
jenkins-bot [Tue, 19 Apr 2016 12:12:34 +0000 (12:12 +0000)]
Merge "Fix wrong @return type hints in Language::tsTo… methods"

8 years agoAdd getStatsdDataFactory to MediawikiServices
addshore [Mon, 11 Apr 2016 18:28:17 +0000 (19:28 +0100)]
Add getStatsdDataFactory to MediawikiServices

Change-Id: Iaf89d5d7887f766064266874ea7ba73362531ed2

8 years agoFix wrong @return type hints in Language::tsTo… methods
Thiemo Mättig [Tue, 19 Apr 2016 10:18:20 +0000 (12:18 +0200)]
Fix wrong @return type hints in Language::tsTo… methods

Change-Id: Ic4dec8e8612021f010734037b6c3527bef2fe04a

8 years agoMerge "Hide hiddencat catwatch changes in special changelists"
jenkins-bot [Tue, 19 Apr 2016 07:34:52 +0000 (07:34 +0000)]
Merge "Hide hiddencat catwatch changes in special changelists"

8 years agoConvert Special:WithoutInterwiki to HTMLForm
tonythomas01 [Sun, 17 Apr 2016 09:06:07 +0000 (14:36 +0530)]
Convert Special:WithoutInterwiki to HTMLForm

TODO: Should be eventually converted to OOUI

Bug: T117721
Change-Id: I56b6b78b53d2531ebdb9cd0f903a4ce475dbc56b

8 years agoMerge "Segment stash edit cache stats by basis for hit/miss"
jenkins-bot [Tue, 19 Apr 2016 01:43:27 +0000 (01:43 +0000)]
Merge "Segment stash edit cache stats by basis for hit/miss"

8 years agoSegment stash edit cache stats by basis for hit/miss
Ori Livneh [Tue, 19 Apr 2016 01:13:08 +0000 (18:13 -0700)]
Segment stash edit cache stats by basis for hit/miss

Instead of just counting cache hits and misses, segment the counts by reason,
so we can differentiate (for example) timestamp-based cache hits from
staleness-check-survivor cache hits. I want this data so I can determine
whether increasing the cutoff for timestamp-based hits from 3 to 5 seconds has
a substantial enough impact to warrant the slightly weaker consistency.

Also changed 'cache-hit' to 'cache_hit'. MediaWiki normalizes the dash to an
underscore anyway, but the normalization is there for dynamically-constructed
key names (or name segments). In the case of hard-coded values, it is desirable
for the code to be as close as possible to the final form of the metric name,
to simplify metric lookup.

Change-Id: I0cd61da9746e3ca3695e23200f698b8b1371798c

8 years agoregistration: Support skipFunction module definitions
James D. Forrester [Tue, 19 Apr 2016 01:13:18 +0000 (18:13 -0700)]
registration: Support skipFunction module definitions

Change-Id: I9c5cea3e8df1fae001d4d98c0782a04dec803776

8 years agoMerge "Reject usernames with namespace or interwiki prefixes"
jenkins-bot [Mon, 18 Apr 2016 23:30:23 +0000 (23:30 +0000)]
Merge "Reject usernames with namespace or interwiki prefixes"

8 years agoMerge "Enforce $wgReadOnly for job queues"
jenkins-bot [Mon, 18 Apr 2016 22:41:50 +0000 (22:41 +0000)]
Merge "Enforce $wgReadOnly for job queues"

8 years agoAllow tag names for SqlBagOStuff consistent hashing
Aaron Schulz [Mon, 18 Apr 2016 19:09:54 +0000 (12:09 -0700)]
Allow tag names for SqlBagOStuff consistent hashing

This is needed to avoid poor hit rates in multi-DC setups

Change-Id: I8830bd6bffa4619e31609676527282ef9af0c76c

8 years agoMerge "DateTimeInputWidget: Set type before calling parent constructor"
jenkins-bot [Mon, 18 Apr 2016 21:36:16 +0000 (21:36 +0000)]
Merge "DateTimeInputWidget: Set type before calling parent constructor"

8 years agoEnforce $wgReadOnly for job queues
Aaron Schulz [Fri, 25 Mar 2016 19:52:39 +0000 (12:52 -0700)]
Enforce $wgReadOnly for job queues

Bug: T130795
Change-Id: I9d8cf919de80dbe855086b9c590c0a0f20dc33b9

8 years agoresourceloader: Use feature test instead of UA sniffing
Timo Tijhof [Sat, 20 Feb 2016 15:22:22 +0000 (15:22 +0000)]
resourceloader: Use feature test instead of UA sniffing

Converting to a feature test reduces complexity of the startup module, and
makes the blacklist more meaningful - allowing us to safely remove some
unnecessary feature guards and polyfills.

It'll also provide unsupported browsers a much better experience. Previously,
unsupported browsers got the payload for Grade A runtime. Many of which would
likely fatal due to unimplemented DOM and JS methods. With the capability
filter in this commit, the client will only initialise the environment if the
browser is capable - falling back to Grade C otherwise.

The feature-test that replaces the user-agent filter in this commit is 99.96%
effectively the same - based on a 7 day analytics campaign on all Wikimedia
wikis (see T102318 for details).

Bug: T102318
Change-Id: I847b3f5f80f1eef3f57bbe7518768468e271082b

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

Change-Id: I3777ce409669883f0d7ac20ce834bf8526b6dfea

8 years agoDateTimeInputWidget: Set type before calling parent constructor
Brad Jorsch [Mon, 18 Apr 2016 18:45:27 +0000 (14:45 -0400)]
DateTimeInputWidget: Set type before calling parent constructor

This way when the parent calls setValue() which calls cleanUpValue(), it
cleans up the value correctly.

Change-Id: I9dcfa74ca03f6aded1dd0f9593d24b0986596b41

8 years agoMerge "Use new TWN template for log-action-filter-* qqq messages"
jenkins-bot [Mon, 18 Apr 2016 16:55:11 +0000 (16:55 +0000)]
Merge "Use new TWN template for log-action-filter-* qqq messages"

8 years agoImprove getErrorsByType() docs
Aaron Schulz [Mon, 18 Apr 2016 16:08:26 +0000 (09:08 -0700)]
Improve getErrorsByType() docs

Change-Id: I235a82ee1036d59a0f4929fc2170f261280f9b4d

8 years agoMerge "Test coverage WatchedItemStore::duplicateAllAssociatedEntries to 100%"
jenkins-bot [Mon, 18 Apr 2016 15:17:07 +0000 (15:17 +0000)]
Merge "Test coverage WatchedItemStore::duplicateAllAssociatedEntries to 100%"

8 years agoMerge "Test coverage WatchedItemStore::addWatchBatchForUser to 100%"
jenkins-bot [Mon, 18 Apr 2016 15:17:03 +0000 (15:17 +0000)]
Merge "Test coverage WatchedItemStore::addWatchBatchForUser to 100%"

8 years agoMerge "Reject usernames with # as user-type API parameters"
jenkins-bot [Mon, 18 Apr 2016 15:16:58 +0000 (15:16 +0000)]
Merge "Reject usernames with # as user-type API parameters"

8 years agoReject usernames with namespace or interwiki prefixes
Gergő Tisza [Sat, 16 Apr 2016 17:36:33 +0000 (17:36 +0000)]
Reject usernames with namespace or interwiki prefixes

User::getCanonicalName silently stripped namepace/iw prefixes,
resulting in weird behavior (e.g. entering 'Template:Foo' in the
registration form username field was accepted, but user 'Foo' was
created). Explicitly reject such names instead.

Also remove leading whitespace from test cases testing for something
else.

Bug: T94656
Change-Id: Idfb22f998cb069fca24abcf5809afd6e0324b0ae

8 years agoHide hiddencat catwatch changes in special changelists
WMDE-Fisch [Wed, 13 Apr 2016 15:52:48 +0000 (17:52 +0200)]
Hide hiddencat catwatch changes in special changelists

If a hidden category has a member added or removed
this will only be shown to users that have the user
preference "display hidden categories".

Also added method to WikiCategoryPage to check
for hidden status.

Added unit tests for both.

Bug: T127944
Change-Id: Ic53d51391fa29d5e18fef4c42b8a275816c7ba4a

8 years agoImprove HTMLSubmitField return value
Gergő Tisza [Fri, 1 Apr 2016 12:12:06 +0000 (15:12 +0300)]
Improve HTMLSubmitField return value

- do not return anything when the button was not clicked
- return boolean true (instead of the button text) when it was clicked

Unbreaks submit fields which currently don't return anything so there is
no easy way to tell whether they have been clicked.

Change-Id: If4e0dfb6ee6674f0dace80a01850e2d0cbbdb47a

8 years agoMerge "Fix RecentChange::parseParams @return docs"
jenkins-bot [Mon, 18 Apr 2016 12:25:30 +0000 (12:25 +0000)]
Merge "Fix RecentChange::parseParams @return docs"

8 years agoTest coverage WatchedItemStore::duplicateAllAssociatedEntries to 100%
addshore [Mon, 18 Apr 2016 11:32:46 +0000 (12:32 +0100)]
Test coverage WatchedItemStore::duplicateAllAssociatedEntries to 100%

Change-Id: I3d686fda1175a9ae5e4244b9ba8cfdb416950ebd

8 years agoTest coverage WatchedItemStore::addWatchBatchForUser to 100%
addshore [Mon, 18 Apr 2016 11:25:54 +0000 (12:25 +0100)]
Test coverage WatchedItemStore::addWatchBatchForUser to 100%

Change-Id: I6ff916519af87a40187d86149b0b72c2ab5a5f26

8 years agoFix RecentChange::parseParams @return docs
addshore [Mon, 18 Apr 2016 10:06:09 +0000 (11:06 +0100)]
Fix RecentChange::parseParams @return docs

Per the docs of unserialize:
In case the passed string is not unserializeable, false is returned.

Also as we can not guarentee an array was serialized in
rc_params we cant say it will always be an array...
Quite often this is just an empty string which will
result in: "s:0:"";" (not an array)....

Change-Id: Ib22f9f7468a23ce3d4f145d47f8514d08be6c957

8 years agoMerge "HTMLForm code style fixes"
jenkins-bot [Mon, 18 Apr 2016 08:05:41 +0000 (08:05 +0000)]
Merge "HTMLForm code style fixes"

8 years agoMerge "mediawiki.special.upload: Use formatversion=2 for API requests"
jenkins-bot [Mon, 18 Apr 2016 08:05:34 +0000 (08:05 +0000)]
Merge "mediawiki.special.upload: Use formatversion=2 for API requests"

8 years agoMerge "parserTests.php: fix three bitrot bugs with --record"
jenkins-bot [Mon, 18 Apr 2016 07:45:39 +0000 (07:45 +0000)]
Merge "parserTests.php: fix three bitrot bugs with --record"

8 years agoMerge "Move disable of preference 'enotifminoredits'"
jenkins-bot [Mon, 18 Apr 2016 07:43:32 +0000 (07:43 +0000)]
Merge "Move disable of preference 'enotifminoredits'"

8 years agoMerge "Rephrase watchlistedit-clear-title"
jenkins-bot [Mon, 18 Apr 2016 07:42:10 +0000 (07:42 +0000)]
Merge "Rephrase watchlistedit-clear-title"

8 years agoMerge "search: getInterwikiResults returns array of SearchResultSets"
jenkins-bot [Mon, 18 Apr 2016 07:42:05 +0000 (07:42 +0000)]
Merge "search: getInterwikiResults returns array of SearchResultSets"

8 years agoMerge "Adding param documentation for Parser::internalParse()"
jenkins-bot [Mon, 18 Apr 2016 07:30:53 +0000 (07:30 +0000)]
Merge "Adding param documentation for Parser::internalParse()"

8 years agoMerge "Remove dead code from CategoryPager"
jenkins-bot [Mon, 18 Apr 2016 07:30:48 +0000 (07:30 +0000)]
Merge "Remove dead code from CategoryPager"

8 years agoMerge "Modify documentation of select() method for Database."
jenkins-bot [Mon, 18 Apr 2016 07:30:44 +0000 (07:30 +0000)]
Merge "Modify documentation of select() method for Database."

8 years agoMerge "API: Allow subclassing ApiQueryImageInfo"
jenkins-bot [Mon, 18 Apr 2016 07:30:37 +0000 (07:30 +0000)]
Merge "API: Allow subclassing ApiQueryImageInfo"

8 years agoModify documentation of select() method for Database.
Brian Wolff [Sun, 17 Apr 2016 19:41:28 +0000 (15:41 -0400)]
Modify documentation of select() method for Database.

* Add a note in Database.php that docs are in IDatabase.php,
maybe its just me, but I didn't realize that was where the docs
are (even though in retrospect that should have been obvious) and
wasted a lot of time because I didn't realize that.
* Change references to IDatabase::tableName() in doc to
DatabaseBase::tableName(), since tableName is not in the IDatabase
interface.
* Be explicit in docs for select() about which parts are safe for
user input. I think its important to be very explicit about this.

No code changes, just doc changes.

Change-Id: I3a66477afc6a5f54855062482ef04c2966e468f6

8 years agoAPI: Allow subclassing ApiQueryImageInfo
Derk-Jan Hartman [Sun, 17 Apr 2016 15:46:07 +0000 (17:46 +0200)]
API: Allow subclassing ApiQueryImageInfo

execute() references the static self::getInfo, which therefor cannot be
overriden by the subclass ApiQueryVideoInfo. Preferably, we'd fix the
implementation to not require this subclassing, but this will make
that transition easier. Use late static binding to make sure the
subclass implementation can be used.

Change-Id: Iab2d01abb9f9b3b799123d8ee344ea139e476576

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 17 Apr 2016 19:55:56 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I7228c53f7cd77d7a19248b13d66afff01cfd6396

8 years agoUse new TWN template for log-action-filter-* qqq messages
Alex Monk [Sun, 17 Apr 2016 17:59:21 +0000 (18:59 +0100)]
Use new TWN template for log-action-filter-* qqq messages

Change-Id: I3ca1be738d552e72f5ddf66afdf0c74f0122ee0a

8 years agomediawiki.special.upload: Use formatversion=2 for API requests
Fomafix [Sun, 17 Apr 2016 11:20:53 +0000 (11:20 +0000)]
mediawiki.special.upload: Use formatversion=2 for API requests

This simplifies the processing of the response.

Change-Id: I2073ec2c017e4d5c5c7f786b45118516feea1aac

8 years agoKill obsolete check
matejsuchanek [Fri, 15 Apr 2016 20:11:27 +0000 (22:11 +0200)]
Kill obsolete check

Was a temporary fix for T126428 and was added in
c940fa8ec1f965ea23a3eb8c2d1eeccd994c124b.

Change-Id: Iad988f69068147cdc24c8829627875274540b16e

8 years agoHTMLForm code style fixes
Gergő Tisza [Sun, 17 Apr 2016 07:28:52 +0000 (07:28 +0000)]
HTMLForm code style fixes

Change-Id: I30612c7cfde1d76aff7fac24fb2b0033457fbc27

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 16 Apr 2016 20:43:27 +0000 (22:43 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I862b3058c7538e56264257b44bc0b0bff04f1da0

8 years agoRemove dead code from CategoryPager
umherirrender [Sat, 16 Apr 2016 10:16:48 +0000 (12:16 +0200)]
Remove dead code from CategoryPager

Remove dead code about an alternate sort on Special:Categories. This
also removes the unused system messages.
To get a list of the count of categories, it is possible to use
Special:MostLinkedCategories

Change-Id: Ie41218a28cde52222809eafe2e9e92e4a4e38a2e

8 years agoMerge "Put a high max limit of 60,000 on Special:LinkSearch"
jenkins-bot [Sat, 16 Apr 2016 18:41:03 +0000 (18:41 +0000)]
Merge "Put a high max limit of 60,000 on Special:LinkSearch"

8 years agoReject usernames with # as user-type API parameters
Gergő Tisza [Sat, 16 Apr 2016 17:45:39 +0000 (17:45 +0000)]
Reject usernames with # as user-type API parameters

Th API handles parameters of type 'user' as page titles, which resulted
in silently dropping # characters and anything following them.
Reject such usernames explicitly instead.

Bug: T132852
Change-Id: Iba8061b20d5e25de80ff30d09eb53939c97cdaac

8 years agoMerge "Remove experimental MCRD class"
jenkins-bot [Sat, 16 Apr 2016 01:21:44 +0000 (01:21 +0000)]
Merge "Remove experimental MCRD class"

8 years agoMerge "Title: Throw if newFromText is given an invalid value"
jenkins-bot [Fri, 15 Apr 2016 22:55:00 +0000 (22:55 +0000)]
Merge "Title: Throw if newFromText is given an invalid value"

8 years agoRemove experimental MCRD class
Aaron Schulz [Fri, 15 Apr 2016 22:21:04 +0000 (15:21 -0700)]
Remove experimental MCRD class

Change-Id: I0282240cb325037354d22bc0eef89780084611d2

8 years agoPut a high max limit of 60,000 on Special:LinkSearch
Brian Wolff [Fri, 15 Apr 2016 21:42:21 +0000 (17:42 -0400)]
Put a high max limit of 60,000 on Special:LinkSearch

LinkSearch uses inefficient paging. Previously there was no
max limit, then it was 10,000, but people on enwiki are complaining,
so put it up to something high, like 60,000, to fix the immediate
issue.

Special page should of course be changed to use efficient paging.

Bug: T130058
Change-Id: I0c4b1ad0138571bcf286ca88bceebf86b9a095f6

8 years agoMerge "mw.Api: Replace deprecated token names by 'csrf'"
jenkins-bot [Fri, 15 Apr 2016 20:51:08 +0000 (20:51 +0000)]
Merge "mw.Api: Replace deprecated token names by 'csrf'"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 15 Apr 2016 19:57:25 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I97436ec70e5c33350f413162201ced484c5a9484

8 years agoMerge "mediawiki.special.upload: Don't fail when trying to thumbnail invalid file"
jenkins-bot [Fri, 15 Apr 2016 19:11:07 +0000 (19:11 +0000)]
Merge "mediawiki.special.upload: Don't fail when trying to thumbnail invalid file"

8 years agoMerge "mediawiki.special.upload: Don't fail when invalid title is given"
jenkins-bot [Fri, 15 Apr 2016 19:11:02 +0000 (19:11 +0000)]
Merge "mediawiki.special.upload: Don't fail when invalid title is given"

8 years agoMerge "Avoid DBPerformance log warnings in SpecialPreferences"
jenkins-bot [Fri, 15 Apr 2016 19:04:15 +0000 (19:04 +0000)]
Merge "Avoid DBPerformance log warnings in SpecialPreferences"

8 years agoMerge "mediawiki.page.ready: Load 'SearchInputWidget' too"
jenkins-bot [Fri, 15 Apr 2016 18:52:22 +0000 (18:52 +0000)]
Merge "mediawiki.page.ready: Load 'SearchInputWidget' too"

8 years agomw.ForeignApi: Percent-encode dots in the 'origin' parameter
Bartosz Dziewoński [Thu, 14 Apr 2016 17:33:43 +0000 (19:33 +0200)]
mw.ForeignApi: Percent-encode dots in the 'origin' parameter

Depending on server configuration, MediaWiki may forbid some periods in
URLs, due to an IE 6 XSS bug. If that is the case on the remote wiki,
ForeignApi would previously not be able to contact it.

Also tweaked similar code in mw.Api to make it more obvious what is
the purpose of it, and future-proof against any dots in tokens.

Bug: T132612
Change-Id: I6dc0b4ab18e5756fc7566608192d59d10729db99

8 years agomw.Api: Replace deprecated token names by 'csrf'
Fomafix [Fri, 15 Apr 2016 15:52:42 +0000 (15:52 +0000)]
mw.Api: Replace deprecated token names by 'csrf'

Since 65077ede the deprecated token names like 'edit' or 'options' generate
a warning.

Change-Id: I1587f66bd9e5cdb8cc24cf68eced1d28ae22f44e

8 years agoCheck for global blocks
Matthias Mullie [Wed, 13 Apr 2016 14:24:30 +0000 (16:24 +0200)]
Check for global blocks

Depends on GlobalBlocking change I2893b9e24173d21fe518c360f6c6add363cc7b23,
where the Block object is added to the hook.

Before this, it's only possible to check for globalblock status. It is not
possible to print a proper error message without relying on the extension
and manually calling its GlobalBlocking::getUserBlockErrors to fetch the
actual error message.

Bug: T111229
Depends-On: I2893b9e24173d21fe518c360f6c6add363cc7b23
Change-Id: I23d29c1a0e016de4e82d5b51afa94ae9afd70ee4

8 years agomediawiki.special.upload.js: Remove spinner in .always() instead of .done()
Fomafix [Fri, 15 Apr 2016 04:43:04 +0000 (04:43 +0000)]
mediawiki.special.upload.js: Remove spinner in .always() instead of .done()

This removes the spinner even when the API request fails.

Change-Id: Ic0f08312b9a1137772f5b6734256e7bd48d20fcf

8 years agoAvoid DBPerformance log warnings in SpecialPreferences
Aaron Schulz [Thu, 14 Apr 2016 23:22:54 +0000 (16:22 -0700)]
Avoid DBPerformance log warnings in SpecialPreferences

Preference views do not need the master DB.

Change-Id: Id0c3fc6d453b6af0eca8450107da6d554c822347

8 years agomediawiki.special.upload: Don't fail when trying to thumbnail invalid file
Bartosz Dziewoński [Thu, 14 Apr 2016 21:16:22 +0000 (23:16 +0200)]
mediawiki.special.upload: Don't fail when trying to thumbnail invalid file

The thumbnail spinner would spin forever if we never got a 'load' event
on the image.

Bug: T132242
Change-Id: I1c68ed185b58950c3648f56e07144bb29a8bed56

8 years agomediawiki.special.upload: Don't fail when invalid title is given
Bartosz Dziewoński [Mon, 4 Apr 2016 14:37:58 +0000 (16:37 +0200)]
mediawiki.special.upload: Don't fail when invalid title is given

If an invalid title was given (for example, anything including '['),
the destination title check would throw an exception and a spinner
would spin forever.

Change-Id: If6f02051383675817a0e2ad406dd71cab33fb5bf

8 years agoMerge "SpecialRunJobs: delegate error handling to MWExceptionHandler"
jenkins-bot [Thu, 14 Apr 2016 21:13:44 +0000 (21:13 +0000)]
Merge "SpecialRunJobs: delegate error handling to MWExceptionHandler"

8 years agoMerge "Fix UID test and make debugging easier"
jenkins-bot [Thu, 14 Apr 2016 20:43:58 +0000 (20:43 +0000)]
Merge "Fix UID test and make debugging easier"

8 years agoSpecialRunJobs: delegate error handling to MWExceptionHandler
Bryan Davis [Thu, 14 Apr 2016 20:08:38 +0000 (14:08 -0600)]
SpecialRunJobs: delegate error handling to MWExceptionHandler

Make the custom error handler that is installed to suppress Cookie
header errors delegate unhandled errors to the default MediaWiki error
handler. This will preserve fatal error logging for errors raised by
jobs.

Bug: T89169
Change-Id: I52ef544fa18351bf310b04b17ab4e0239020fe20

8 years agoAdding param documentation for Parser::internalParse()
Kaldari [Thu, 14 Apr 2016 20:01:08 +0000 (14:01 -0600)]
Adding param documentation for Parser::internalParse()

Change-Id: Id0adeff2c2fa940205f4b7692d27b45e3466be79

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

Change-Id: I7264e3c32d5a088999af65c1e597a2ed6a400e27

8 years agoMerge "Follow-up Idb1202579: Add special-characters-group-greekextended to RL module"
jenkins-bot [Thu, 14 Apr 2016 19:12:07 +0000 (19:12 +0000)]
Merge "Follow-up Idb1202579: Add special-characters-group-greekextended to RL module"

8 years agoFollow-up Idb1202579: Add special-characters-group-greekextended to RL module
Ed Sanders [Thu, 14 Apr 2016 18:48:54 +0000 (19:48 +0100)]
Follow-up Idb1202579: Add special-characters-group-greekextended to RL module

Bug: T130535
Change-Id: I3e26d08a34283eaafe129dbef0944ea10c086162

8 years agosearch: getInterwikiResults returns array of SearchResultSets
Erik Bernhardson [Thu, 14 Apr 2016 16:04:12 +0000 (09:04 -0700)]
search: getInterwikiResults returns array of SearchResultSets

This function was incorrectly annotated. We can clearly see from the
code that uses it, such as in SpecialSearch, that this is an array of
SearchResultSet objects.

Bug: T132625
Change-Id: I4af07d3c9a9b08fd1fa438ddb6b781f78472b26c

8 years agomediawiki.page.ready: Load 'SearchInputWidget' too
Bartosz Dziewoński [Thu, 14 Apr 2016 16:03:08 +0000 (18:03 +0200)]
mediawiki.page.ready: Load 'SearchInputWidget' too

Bug: T132656
Change-Id: I66601ebad2e64f07536f1a3d77187a7c8ac5b524

8 years agoRemove unused import in WatchedItemStoreUnitTest
Leszek Manicki [Thu, 14 Apr 2016 15:28:44 +0000 (17:28 +0200)]
Remove unused import in WatchedItemStoreUnitTest

Change-Id: I56abf221e6e601ad0bceaae1a15eb8f1097f5baa

8 years agoMerge "Use WatchedItemStore for SP:RC watchers count"
jenkins-bot [Thu, 14 Apr 2016 14:38:23 +0000 (14:38 +0000)]
Merge "Use WatchedItemStore for SP:RC watchers count"

8 years agoMerge "CatWatch don't show the number of pages transcluded"
jenkins-bot [Thu, 14 Apr 2016 14:10:12 +0000 (14:10 +0000)]
Merge "CatWatch don't show the number of pages transcluded"

8 years agoUse WatchedItemStore for SP:RC watchers count
addshore [Thu, 14 Apr 2016 08:15:18 +0000 (09:15 +0100)]
Use WatchedItemStore for SP:RC watchers count

Bug: T132568
Change-Id: Ic6a0ee77cb767c6f8e4a8d359feb0405c9a990d1

8 years agoCatWatch don't show the number of pages transcluded
addshore [Sat, 2 Apr 2016 16:06:40 +0000 (19:06 +0300)]
CatWatch don't show the number of pages transcluded

Providing the perfectly correct number of pages
that have acctually been added to or removed from a
category is extermly hard.

Rather than providing data that is most likely wrong
and a bit useless ONLY provide a link to Special:WhatLinksHere.

This touches on the following bugs and may mean that
some of them don't need to be thought about any further.

Bug: T126855
Bug: T126407
Bug: T126139
Change-Id: Ida06d822d1955091595c17c9c6c2968a40a93bcd