lhc/web/wiklou.git
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 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 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

8 years agoAllow description text caching for ForeignDBFile
Aaron Schulz [Wed, 13 Apr 2016 17:54:28 +0000 (10:54 -0700)]
Allow description text caching for ForeignDBFile

A large amount of real time is spent in fetching Commons
descriptions pages from wikipedias, according to xenon
flame graphs.

Change-Id: I3935bf8bf23da58b734f897d7a1979e9b2f7e5c8

8 years agoMerge "Add a rewind function to SearchResultSet"
jenkins-bot [Thu, 14 Apr 2016 00:00:18 +0000 (00:00 +0000)]
Merge "Add a rewind function to SearchResultSet"

8 years agoAdd a rewind function to SearchResultSet
Erik Bernhardson [Wed, 13 Apr 2016 19:21:54 +0000 (12:21 -0700)]
Add a rewind function to SearchResultSet

This is implemented in CirrusSearch so the result set can be looped
through multiple times. In general having a rewind function on any
iterator is probably a good idea, so pushing it into the upstream
interface.

Change-Id: Iaac9c11d8742288610011a2a0f6282944d35d5f3

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

Change-Id: If98c4a1a477e70076aa3ebf8e12a64b5b111cafc

8 years agoMerge "mediawiki.api: Log warning when requesting legacy token types"
jenkins-bot [Wed, 13 Apr 2016 19:51:27 +0000 (19:51 +0000)]
Merge "mediawiki.api: Log warning when requesting legacy token types"

8 years agoRevert "Hack IEUrlExtension::haveUndecodedRequestUri() to always return true"
Ori.livneh [Wed, 13 Apr 2016 19:49:39 +0000 (19:49 +0000)]
Revert "Hack IEUrlExtension::haveUndecodedRequestUri() to always return true"

This reverts commit 30c5c55bd28f2fe35867286b73100f42f829c448.

Change-Id: I219ae8db4f730f6ff19e395976ab08d7b9cfc50c

8 years agoHack IEUrlExtension::haveUndecodedRequestUri() to always return true
Ori Livneh [Wed, 13 Apr 2016 19:44:47 +0000 (12:44 -0700)]
Hack IEUrlExtension::haveUndecodedRequestUri() to always return true

Interacting badly with I1f108eb74. Will revert this shortly.

Change-Id: I58259aa7ccf00a07d19db6e6e23df48f0b78103c

8 years agomediawiki.api: Log warning when requesting legacy token types
Ricordisamoa [Tue, 15 Mar 2016 15:53:05 +0000 (16:53 +0100)]
mediawiki.api: Log warning when requesting legacy token types

Change-Id: Ia2c795a95b58f62f4687501a5537e5890d90144e

8 years agoMerge "Track which web request created a job"
jenkins-bot [Wed, 13 Apr 2016 18:06:38 +0000 (18:06 +0000)]
Merge "Track which web request created a job"

8 years agoTrack which web request created a job
Erik Bernhardson [Mon, 11 Apr 2016 21:00:43 +0000 (14:00 -0700)]
Track which web request created a job

We currently push a request id into structured logging (monolog/
logstash) to allow seeing all logs that were triggered by the same
request. This extends that to pass the id through jobs so jobs triggered
by a web request also share the same id and can be tracked together.
This web request id will follow jobs both directly created by a request,
and jobs created by those jobs.

This should give us some more visibility when debugging into what
started a particular job, and if a large number of jobs blowing up the
job queue are somehow related.

Change-Id: Iedbd031e6e9bb18fd6f7b923c8c305102255ab4b

8 years agoresourceloader: Implement modern module loading (2/2)
jdlrobson [Fri, 22 Jan 2016 19:29:28 +0000 (11:29 -0800)]
resourceloader: Implement modern module loading (2/2)

* Send 'module' and 'require' parameters to module closures.
  This depends on Ia925844cc22f143 being deployed one cycle earlier.
* Patch Moment and OOjs to ensure these libraries continue to expose
  their module as globals as well. AMD/UMD-compatible libraries
  only expose a global *OR* an export, not both. We need both
  for back-compat.
* Update pluralRuleParser to make use of module export to allow
  usage via require().

To test, check out the patch and run:
> mw.loader.load('moment');
> mw.loader.require('moment')()
> mw.loader.require('moment')('2011-04-01').fromNow()

Bug: T108655
Change-Id: Idbd054880ee70d659ec760aef8fcb38d0704a394

8 years agoMerge "Use english messages for background use of Status::getWikiText"
jenkins-bot [Wed, 13 Apr 2016 14:03:56 +0000 (14:03 +0000)]
Merge "Use english messages for background use of Status::getWikiText"

8 years agoSwitch to external HtmlFormatter
Max Semenik [Tue, 12 Apr 2016 20:20:20 +0000 (13:20 -0700)]
Switch to external HtmlFormatter

wikimedia/html-formatter is already present in mediawiki/vendor
as of 3954ca36ce3cbedc76c1763ad2694320c1327ce6.

Bug: T125001
Change-Id: Ie98096e5e3d325cde583bc66b21b8b41f2bba8b2

8 years agoMerge "Convert File::getDescriptionText() to getWithSetCallback()"
jenkins-bot [Wed, 13 Apr 2016 00:24:49 +0000 (00:24 +0000)]
Merge "Convert File::getDescriptionText() to getWithSetCallback()"

8 years agoConvert File::getDescriptionText() to getWithSetCallback()
Aaron Schulz [Tue, 12 Apr 2016 23:21:52 +0000 (16:21 -0700)]
Convert File::getDescriptionText() to getWithSetCallback()

Change-Id: Ia27d6fc851598162367ad6e749feb6d76f2569bc

8 years agoMerge "OOjs UI: Apply texfield -> textfield typo fix on the library build"
jenkins-bot [Tue, 12 Apr 2016 23:14:05 +0000 (23:14 +0000)]
Merge "OOjs UI: Apply texfield -> textfield typo fix on the library build"

8 years agoOOjs UI: Apply texfield -> textfield typo fix on the library build
James D. Forrester [Tue, 12 Apr 2016 22:58:39 +0000 (15:58 -0700)]
OOjs UI: Apply texfield -> textfield typo fix on the library build

Broken in I7212e07, this was fixed in I7922121 which will be part of
OOjs UI v0.16.6 in a couple of weeks' time. For now, let's apply it
as a local patch to unbreak the Search form. Also, whoops.

Change-Id: Ie882ae6ee823d6cbcfc899e336c1170ef6f9f092

8 years agoMerge "Bump grunt to 1.0.1, remove grunt-cli"
jenkins-bot [Tue, 12 Apr 2016 22:52:21 +0000 (22:52 +0000)]
Merge "Bump grunt to 1.0.1, remove grunt-cli"

8 years agoMerge "More FSFile docs"
jenkins-bot [Tue, 12 Apr 2016 22:41:54 +0000 (22:41 +0000)]
Merge "More FSFile docs"

8 years agoMerge "filebackend: Make resyncFiles() easier to use"
jenkins-bot [Tue, 12 Apr 2016 21:28:06 +0000 (21:28 +0000)]
Merge "filebackend: Make resyncFiles() easier to use"

8 years agoMerge "virtualrest: Small doc fix"
jenkins-bot [Tue, 12 Apr 2016 21:22:26 +0000 (21:22 +0000)]
Merge "virtualrest: Small doc fix"

8 years agoMerge "Revert "Measure commitMasterChanges() run time""
jenkins-bot [Tue, 12 Apr 2016 21:18:56 +0000 (21:18 +0000)]
Merge "Revert "Measure commitMasterChanges() run time""

8 years agofilebackend: Make resyncFiles() easier to use
Aaron Schulz [Tue, 12 Apr 2016 10:29:52 +0000 (03:29 -0700)]
filebackend: Make resyncFiles() easier to use

Pass in the resync mode as a flag instead of using
the object instance.

Change-Id: I2da661a65afd712403db936b6e31fba8e8069096

8 years agoMore FSFile docs
Aaron Schulz [Tue, 5 Apr 2016 19:28:21 +0000 (12:28 -0700)]
More FSFile docs

Change-Id: I1ca3e0bc9d5db4ca043f313fb15a780ae102c50a

8 years agovirtualrest: Small doc fix
Aaron Schulz [Tue, 12 Apr 2016 20:53:36 +0000 (13:53 -0700)]
virtualrest: Small doc fix

Change-Id: Ie162eb88b4afc492b10c75f00b9725767e21ffeb

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

Change-Id: I95fb9e364f3268eddab39b9abe4c68c62a1ec11a

8 years agoMerge "Don't report image cache hits / misses"
Ori Livneh [Tue, 12 Apr 2016 19:24:42 +0000 (19:24 +0000)]
Merge "Don't report image cache hits / misses"

8 years agoRevert "Measure commitMasterChanges() run time"
Ori.livneh [Tue, 12 Apr 2016 18:48:25 +0000 (18:48 +0000)]
Revert "Measure commitMasterChanges() run time"

This reverts commit efb441883937. This is the biggest metric
by statsd traffic volume on the Wikimedia cluster. Please re-introduce this
only with sampling.

Bug: T101141
Change-Id: I7bc3b3aaa98dcefe1a80a4f458a83232c29a27ea

8 years agoMerge "Do not validate relevant user name"
jenkins-bot [Tue, 12 Apr 2016 18:58:18 +0000 (18:58 +0000)]
Merge "Do not validate relevant user name"

8 years agoDon't report image cache hits / misses
Ori Livneh [Tue, 12 Apr 2016 18:30:21 +0000 (11:30 -0700)]
Don't report image cache hits / misses

This single metric is responsible for a substantial proportion of overall
statsd traffic on the Wikimedia cluster, per the task cited below. Nobody is
closely monitoring this statistic. We can reintroduce it with sampling at a
later date if it is deemed to be useful.

Bug: T101141
Change-Id: I6457cb91d527ce42c0918ac4e80613e6b59061ac

8 years agoUse english messages for background use of Status::getWikiText
umherirrender [Sun, 10 Apr 2016 12:12:43 +0000 (14:12 +0200)]
Use english messages for background use of Status::getWikiText

Status::getWikiText is used for internal logging, api error messages and
maintenance scripts. All this places are usually in english, so pass an
english language to getWikiText.

Change-Id: I3010fca8eb5740a3a851c55a8b12e171714c78f7

8 years agoMerge "Add preference for watching uploaded files"
jenkins-bot [Tue, 12 Apr 2016 17:29:29 +0000 (17:29 +0000)]
Merge "Add preference for watching uploaded files"

8 years agoFix core DB data in unit testing
Brad Jorsch [Mon, 11 Apr 2016 17:36:38 +0000 (13:36 -0400)]
Fix core DB data in unit testing

Iec4ed4c8 made it so addCoreDBData() only gets called once. Which is
nice, except for the fact that it means any test that puts
'user_groups' into $this->tablesUsed is going to cause UTSysop to no
longer be a sysop, so any later test that expects it to be one is going
to mysteriously fail.

The fix is to make resetDB() actually clear out the 'user' table when
requested, but then to re-call addCoreDBData() so UTSysop is still
there.

This might break extension tests if they're relying on the 'user' table
never being cleared even if it's specified in $this->tablesUsed, but
hopefully that's not often the case.

Bug: T132411
Change-Id: If251739fd486544f54a0c07edcc24aeef0998342
Depends-On: I0546a4f18e0751d209b6b7c6cd42973f25828313
Depends-On: I4924ae941b3844b39dd3f44c6986c3bf29b0d62a

8 years agoMerge "Reduce code duplication in MessageCache"
jenkins-bot [Tue, 12 Apr 2016 10:33:13 +0000 (10:33 +0000)]
Merge "Reduce code duplication in MessageCache"

8 years agoReduce code duplication in MessageCache
Adrian Heine [Thu, 7 Apr 2016 09:56:06 +0000 (11:56 +0200)]
Reduce code duplication in MessageCache

Change-Id: I3432958c8f81b7a33079b7933e85b87ced7363fa

8 years agoFlag triggerOpportunisticLinksUpdate() behind $wgMiserMode
Aaron Schulz [Mon, 11 Apr 2016 21:49:27 +0000 (14:49 -0700)]
Flag triggerOpportunisticLinksUpdate() behind $wgMiserMode

This has caused job flood or DB load problems too often.

Bug: T132318
Change-Id: Ieeaf047e748bdfb980d4d5511c22890bd6f28c67

8 years agoCache first-letter data in APC, if available
Ori Livneh [Mon, 11 Apr 2016 23:41:57 +0000 (16:41 -0700)]
Cache first-letter data in APC, if available

I noticed that `frwiki:first-letters:fr:fr:4.8.1.1` was at the very top of keys
sorted by bandwidth (that is, reqs/sec * size) on one of the memcache servers
on WMF prod.

The data takes ~60 - 80ms to compute, in case of a cache miss. That's not
enough to justify using a tiered cache abstraction here, IMO.

Change-Id: If81ce8f86f2c378565f1f6a0dd2c04dee825c4e9

8 years agoMerge "Convert Special:Search input to OOUI"
jenkins-bot [Mon, 11 Apr 2016 22:56:29 +0000 (22:56 +0000)]
Merge "Convert Special:Search input to OOUI"

8 years agoIncrease triggerOpportunisticLinksUpdate() backoff TTL
Aaron Schulz [Mon, 11 Apr 2016 20:29:46 +0000 (13:29 -0700)]
Increase triggerOpportunisticLinksUpdate() backoff TTL

Make use of the expected TTL for the links to become
possible stale, instead of the hard-coded value of
60 seconds. Use a minimum of 3600.

Heavily used Commons templates, for example, lower
the parser cache TTL to 86400. Enqueuing jobs before
that time passes is a waste.

Bug: T132318
Change-Id: I9a3c088db9dd1747b8e99ccf7ec4633e7f01fe7b

8 years agoMerge "Thumbnails: allow overflow inside thumbnails"
jenkins-bot [Mon, 11 Apr 2016 21:48:35 +0000 (21:48 +0000)]
Merge "Thumbnails: allow overflow inside thumbnails"

8 years agoMerge "jquery.makeCollapsible: Don't ignore clicks on fake links without href"
jenkins-bot [Mon, 11 Apr 2016 21:20:52 +0000 (21:20 +0000)]
Merge "jquery.makeCollapsible: Don't ignore clicks on fake links without href"

8 years agoRevert "Allow reset of global services."
Catrope [Mon, 11 Apr 2016 20:37:32 +0000 (20:37 +0000)]
Revert "Allow reset of global services."

Completely breaks login.

This reverts commit 8e7a0a0912bb98a4a12375b354e23f03262bf213.

Change-Id: Ide7ab5632e987e81374c21173df6ab3998649df7

8 years agoMerge "Revert "Make WatchedItemStore use MediaWikiServices""
jenkins-bot [Mon, 11 Apr 2016 20:36:58 +0000 (20:36 +0000)]
Merge "Revert "Make WatchedItemStore use MediaWikiServices""

8 years agoRevert "Make WatchedItemStore use MediaWikiServices"
Catrope [Mon, 11 Apr 2016 20:25:47 +0000 (20:25 +0000)]
Revert "Make WatchedItemStore use MediaWikiServices"

In order to cleanly revert "Allow reset of global services"
which breaks login.

This reverts commit 99e8d45b50993113b26ced7c8bb91e44c7d908b1.

Change-Id: Iae7f7b7b7083345dd50c313ee68e2e814f130f1a

8 years agoMerge "Fix RebuildLocalisationCache bug from MediaWikiServices"
jenkins-bot [Mon, 11 Apr 2016 20:14:19 +0000 (20:14 +0000)]
Merge "Fix RebuildLocalisationCache bug from MediaWikiServices"

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

Change-Id: I065f082606ccb1d6df353f503ee8f393d8d6466b

8 years agoFix RebuildLocalisationCache bug from MediaWikiServices
Bryan Davis [Mon, 11 Apr 2016 19:11:03 +0000 (13:11 -0600)]
Fix RebuildLocalisationCache bug from MediaWikiServices

Revert changes to rebuildLocalisationCache.php introduced in Ie98bf5a.
The forked children do not need separate service connections and the
reset process fails due to MW_SERVICE_BOOTSTRAP_COMPLETE being defined.

Bug: T132370
Change-Id: I0d7ddcd66e7c6945fabd91fea29a48805bf14793

8 years agoMerge "Add templateOverridesBySection to multi LBFactory"
jenkins-bot [Mon, 11 Apr 2016 18:39:36 +0000 (18:39 +0000)]
Merge "Add templateOverridesBySection to multi LBFactory"

8 years agoMerge "Normalize `input[type="search"]`"
jenkins-bot [Mon, 11 Apr 2016 17:45:49 +0000 (17:45 +0000)]
Merge "Normalize `input[type="search"]`"

8 years agoMerge "RightsLogFormatter: Use DB key to generate foreign user link"
jenkins-bot [Mon, 11 Apr 2016 16:41:18 +0000 (16:41 +0000)]
Merge "RightsLogFormatter: Use DB key to generate foreign user link"

8 years agoMerge "Finish stash uploads with upload dialog"
jenkins-bot [Mon, 11 Apr 2016 16:34:12 +0000 (16:34 +0000)]
Merge "Finish stash uploads with upload dialog"

8 years agoRun generateLocalAutoload.php
Brad Jorsch [Mon, 11 Apr 2016 15:50:42 +0000 (11:50 -0400)]
Run generateLocalAutoload.php

Ie98bf5af5 was apparently done by hand.

Change-Id: I323391340dbcc2f25bc849bbbb489142e79bb5ed

8 years agoMake WatchedItemStore use MediaWikiServices
addshore [Wed, 6 Apr 2016 10:46:50 +0000 (11:46 +0100)]
Make WatchedItemStore use MediaWikiServices

Change-Id: I5c8c1a652a35e055d8d65753a60c0d1684e1c37d

8 years agoAllow reset of global services.
daniel [Mon, 12 Oct 2015 08:05:45 +0000 (10:05 +0200)]
Allow reset of global services.

This change provides a mechanism to reset global service instances
in an orderly manner. There are three use cases for this:

* the installation process
* forking processes
* integration tests (which must of the existing phpunit tests are)

Depends-On: I5d638ad415fc3840186a0beaa09ac02ea688539b
Change-Id: Ie98bf5af59208f186dba59a9e971c72ea0b63e69

8 years agoAdd missing use MWException to SessionManager
addshore [Mon, 11 Apr 2016 12:34:20 +0000 (13:34 +0100)]
Add missing use MWException to SessionManager

Change-Id: I098e719cd888400191438bb0c4deeaaff1aa32dd

8 years agoThumbnails: allow overflow inside thumbnails
Derk-Jan Hartman [Mon, 11 Apr 2016 11:05:14 +0000 (13:05 +0200)]
Thumbnails: allow overflow inside thumbnails

overflow:hidden on the thumbnail has been in place like this for a
long time. One of the primary reasons was for long sentences in the
thumbcaption. For that, modern browsers now support word-wrap.
I know of no good reasons why overflow would have to apply to the
rest of the frame. Therfor moved to thumbcaption only, and added
word-wrap.

Bug: T132306
Change-Id: I1953683fa2a6d22ed82bac1acd37e5cb12636381

8 years agoMerge "Swap exif-pixelydimension and exif-pixelxdimension messages"
jenkins-bot [Mon, 11 Apr 2016 01:57:32 +0000 (01:57 +0000)]
Merge "Swap exif-pixelydimension and exif-pixelxdimension messages"

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

Change-Id: I01a967bb1fc77fa9a4f8dd9c8bab4e238b682cd5

8 years agoMerge "User.php: Update 'setEmailWithConfirmation' for notification email"
jenkins-bot [Sun, 10 Apr 2016 05:30:11 +0000 (05:30 +0000)]
Merge "User.php: Update 'setEmailWithConfirmation' for notification email"

8 years agoNormalize `input[type="search"]`
Volker E [Sun, 10 Apr 2016 02:18:49 +0000 (19:18 -0700)]
Normalize `input[type="search"]`

Limiting property `-webkit-appearance` to `input[type="search"]` only,
as it's the element this rule is targeting for instead of unnecessarily
applying it to all `.mw-ui-input` elements. Also adding rule to
remove proprietary IE 10-11 clear button. Bringing it on
par with OOjs UI.

Change-Id: Id375fdb86bf7ef3cfbb2f7e198d59be4947e4edb

8 years agoDo not validate relevant user name
rillke [Sat, 9 Apr 2016 23:49:52 +0000 (01:49 +0200)]
Do not validate relevant user name

- This makes Special:Log's behaviour consistent with other special
  pages, e.g. Special:Contributions.

Change-Id: Ic0a9322d920d7514bacac1f29a1da4fe57cae854

8 years agoMerge "Add note that IP::isInRange() can return unexpected results for invalid args"
jenkins-bot [Sat, 9 Apr 2016 20:28:15 +0000 (20:28 +0000)]
Merge "Add note that IP::isInRange() can return unexpected results for invalid args"

8 years agoMerge "Show absolute block expiry in user timezone on block logs"
jenkins-bot [Sat, 9 Apr 2016 19:37:29 +0000 (19:37 +0000)]
Merge "Show absolute block expiry in user timezone on block logs"

8 years agoShow absolute block expiry in user timezone on block logs
umherirrender [Tue, 5 Apr 2016 17:11:00 +0000 (19:11 +0200)]
Show absolute block expiry in user timezone on block logs

For this add an user parameter to Language::translateBlockExpiry.
This allows the function to display the absolute block expiry in the
user's time zone. Use this when formatting block log entries.

This also avoids the use of $wgUser

Bug: T131241
Change-Id: If0a1d3c88bb4242a016eb9b2df115413de786149

8 years agoMerge "Switch Special:FileDuplicateSearch to OOUI"
jenkins-bot [Sat, 9 Apr 2016 18:02:04 +0000 (18:02 +0000)]
Merge "Switch Special:FileDuplicateSearch to OOUI"

8 years agoMerge "SpecialLog: Don't put assignment within another expression"
jenkins-bot [Sat, 9 Apr 2016 17:50:51 +0000 (17:50 +0000)]
Merge "SpecialLog: Don't put assignment within another expression"

8 years agoMerge "Add possibility to filter for log_action in all core logs"
jenkins-bot [Sat, 9 Apr 2016 15:06:31 +0000 (15:06 +0000)]
Merge "Add possibility to filter for log_action in all core logs"

8 years agoMake some TablePager methods actually protected
Ricordisamoa [Sat, 9 Apr 2016 04:37:33 +0000 (06:37 +0200)]
Make some TablePager methods actually protected

* getTableClass
* getNavClass
* getSortHeaderClass

Change-Id: I459ca456149635e3300c7ca7cfed4c1edc1c12b1

8 years agoMerge "Run generateLocalAutoload.php"
jenkins-bot [Fri, 8 Apr 2016 23:56:10 +0000 (23:56 +0000)]
Merge "Run generateLocalAutoload.php"

8 years agoMerge "Use pg_result_error, not pg_last_error, as the latter gives false negatives."
jenkins-bot [Fri, 8 Apr 2016 23:56:05 +0000 (23:56 +0000)]
Merge "Use pg_result_error, not pg_last_error, as the latter gives false negatives."

8 years agoMerge "Clean up after "Kill mbstring fallbacks""
jenkins-bot [Fri, 8 Apr 2016 23:42:40 +0000 (23:42 +0000)]
Merge "Clean up after "Kill mbstring fallbacks""

8 years agoAdd preference for watching uploaded files
Mark Holmquist [Thu, 7 Nov 2013 02:50:01 +0000 (18:50 -0800)]
Add preference for watching uploaded files

Adds a preference in the Watchlist section for watching uploaded files
for an account. Also works from API-based upload methods, so
UploadWizard and other tools should work fine.

Bug: T33313
Change-Id: If962e667de12b35904b2d1b2d9e99c26b588ec2a

8 years agoFinish stash uploads with upload dialog
Mark Holmquist [Fri, 4 Mar 2016 17:51:58 +0000 (11:51 -0600)]
Finish stash uploads with upload dialog

Adds a 'filekey' option to the upload dialog's booklet layout
so it's possible to complete a stashed upload with the dialog,
even if the dialog didn't stash the file.

Proof of concept gadget/userscript for testing purposes:

https://phabricator.wikimedia.org/P2783

Or use this ImageTweaks patch to test:

I8f8421697a6d44ec47b66496ad9ada548c4a7d0b

Change-Id: I2cdea08a29cd481eb7fe5cbd83b9e4b6941a6380

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

Change-Id: I3bd0664b4ce71182be57e062204c0ae039fd8f84

8 years agoMerge "Change \\ to \ in phpdoc"
jenkins-bot [Fri, 8 Apr 2016 18:12:54 +0000 (18:12 +0000)]
Merge "Change \\ to \ in phpdoc"

8 years agoChange \\ to \ in phpdoc
Gergő Tisza [Wed, 6 Apr 2016 22:22:33 +0000 (00:22 +0200)]
Change \\ to \ in phpdoc

Remove "\\" in namespacing. This is a Doxygen compatibility hack but
does not seem needed anymore, Doxygen reads namespaced class names
correctly, see e.g. https://doc.wikimedia.org/mediawiki-core/master/php/classMediaWiki_1_1Services_1_1ServiceContainer.html

PHP IDEs, on the other hand, were broken by the double backslash.

As an unrelated small doc fix, add parameter docs to PermissionError
constructor (parent has different arguments so the inherited
documentation is wrong).

Change-Id: I6da0f512b8c84f65fd20e90e4617108fe6a8fcd2

8 years agoFix mbstring check in update.php
Kevin Israel [Fri, 8 Apr 2016 04:44:33 +0000 (00:44 -0400)]
Fix mbstring check in update.php

Maintenance::error() will not cause the script to exit unless the
$die argument, when cast as an integer, is greater than 0. Since
the default value is 0, specify a different one, as in the other
calls from within the same function.

Follows-up 943563062f0a6995.

Change-Id: I3af72b1cd87c63d7f57436866633e86c272e904f

8 years agoMerge "SkinTemplate.php: Add missing @param documentation to wrapHTML"
jenkins-bot [Thu, 7 Apr 2016 20:39:39 +0000 (20:39 +0000)]
Merge "SkinTemplate.php: Add missing @param documentation to wrapHTML"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 7 Apr 2016 20:32:53 +0000 (22:32 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib3d0e6a16e61f0443aaa7e929d8bf66c45f5d4df

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 agoRun generateLocalAutoload.php
Kevin Israel [Mon, 4 Apr 2016 03:27:50 +0000 (23:27 -0400)]
Run generateLocalAutoload.php

Change-Id: I618f831f5c33d0163b873dd0494cc37799450001

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 agoClean up after "Kill mbstring fallbacks"
Kevin Israel [Thu, 7 Apr 2016 10:01:45 +0000 (06:01 -0400)]
Clean up after "Kill mbstring fallbacks"

* Removed fallback code from Language, the associated data file
  (Utf8Case.ser), and the code to generate that data file.
* Removed comment in LanguageFi that "mb_substr has a compatibility
  function in GlobalFunctions.php".
* Removed check for mbstring in bench_utf8_title_check.php.
* In the tests for StringUtils::isUtf8():
  * Removed separate test for the non-mbstring code path.
  * Removed mentions of mbstring from function names and assertion
    messages, since mb_check_encoding() is now always used.
* Also updated the comment in StringUtils::isUtf8() referring to
  PHP 5.3, which is no longer supported in MediaWiki, to indicate
  that the same issue also exists in old versions of HHVM. (If
  we don't have to support 3.4 or older, then the function could
  be deprecated and removed if desired.)

Follows-up 943563062f0a6995.

Change-Id: I55e5cd534b849c6ea06a7fadacbbf34a12d87ebe

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"