lhc/web/wiklou.git
7 years agotranslateBlockExpiry: Duration is block expiry minus current time
Zhuyifei1999 [Fri, 27 Jan 2017 08:51:06 +0000 (08:51 +0000)]
translateBlockExpiry: Duration is block expiry minus current time

For relative timestamps in $str, strtotime( $str, $now ) returns an
absolute Unix timestamp $str since $now, and this timestamp is given
to $time. However, Language::formatDuration expects a time duration,
not an absolute timestamp. We obtain this duration from the difference
between $time, the absolute timestamp of block expiry, and $now, the
absolute timestamp of the time in which the block action happened.

Tests have been added to test both this patch and 01936fa, the patch
that caused this regression.

Bug: T156453
Change-Id: I6fd8c02dc3c6456067fe25cb9f33f5b4c78332aa

7 years agoFurther updates to .mailmap for the generation of CREDITS
TTO [Wed, 18 Jan 2017 03:22:25 +0000 (03:22 +0000)]
Further updates to .mailmap for the generation of CREDITS

Mostly adding current and former WMF/WMDE employees, and a couple of
others, under the correct version of their full names.

Change-Id: I36ca297967125cc211705509466358d9d762e5c8

7 years agoobjectcache: add WANObjectCacheReaper for assuring purges
Aaron Schulz [Sat, 3 Sep 2016 04:43:16 +0000 (21:43 -0700)]
objectcache: add WANObjectCacheReaper for assuring purges

* This fixes keys based on some sort of change log.
  Updates are wrapped in a mutex and keep track of the
  last known good position.
* Make WANObjectReapUpdate class that cleans up title
  related keys using the recentchanges table. This triggers
  as a deferred updates on RC view.

Change-Id: I7f14b9ca2533032147e62b1a3cc004a23da86579

7 years agoMerge "rcfeed: Add basic PHPUnit integration test"
jenkins-bot [Fri, 27 Jan 2017 02:16:09 +0000 (02:16 +0000)]
Merge "rcfeed: Add basic PHPUnit integration test"

7 years agoMerge "ApiUpload: Raise an error on attempts to async-upload a POSTed file"
jenkins-bot [Thu, 26 Jan 2017 19:33:31 +0000 (19:33 +0000)]
Merge "ApiUpload: Raise an error on attempts to async-upload a POSTed file"

7 years agoMerge "Avoid master queries when old filter checks are viewed"
jenkins-bot [Thu, 26 Jan 2017 17:46:24 +0000 (17:46 +0000)]
Merge "Avoid master queries when old filter checks are viewed"

7 years agoMerge "ApiSandbox: Allow displaying query parameters in various formats"
jenkins-bot [Thu, 26 Jan 2017 17:46:03 +0000 (17:46 +0000)]
Merge "ApiSandbox: Allow displaying query parameters in various formats"

7 years agoApiUpload: Raise an error on attempts to async-upload a POSTed file
Brad Jorsch [Thu, 26 Jan 2017 17:26:38 +0000 (12:26 -0500)]
ApiUpload: Raise an error on attempts to async-upload a POSTed file

"Upload from stash" and "Upload from POST" use the same code path via
ApiUpload::performUpload(). It looks like when a31d0f8edd implemented
"async upload from stash", it was overlooked that someone might attempt
to do an unsupported "async upload from POST".

Bug: T156365
Change-Id: I6d207270af490cfc59d994a22a6406df45a9f6a2

7 years agoClarify emailuserfooter mw-message
MarcoAurelio [Thu, 26 Jan 2017 10:30:32 +0000 (11:30 +0100)]
Clarify emailuserfooter mw-message

Recently we modified this message to add a privacy disclaimer which is
automatically added to outbound email sent using the Special:EmailUser
function on MediaWiki.

The disclaimer, notwithstanding, it only shown for the receiver of the
message so we should clarify that their email address will be disclosed to
the original sender only if they decide to reply to the email.

This patch therefore adds a "If you reply"-like wording to the
emailuserfooter message clearly stating that only if the user decides to
reply the message, their email address will be indeed disclosed to that
original sender.

Change-Id: Ie2ccf26b078e768f615eea8c8a83d92ff83abce0

7 years agoMerge "Fixing grammar, capitalization and spelling in comments"
jenkins-bot [Thu, 26 Jan 2017 03:33:37 +0000 (03:33 +0000)]
Merge "Fixing grammar, capitalization and spelling in comments"

7 years agoMerge "refreshLinks.php: allow refreshing by categories, tracking or not"
jenkins-bot [Thu, 26 Jan 2017 03:33:30 +0000 (03:33 +0000)]
Merge "refreshLinks.php: allow refreshing by categories, tracking or not"

7 years agoMerge "Inject remaining cache objects into MessageCache"
jenkins-bot [Thu, 26 Jan 2017 03:30:00 +0000 (03:30 +0000)]
Merge "Inject remaining cache objects into MessageCache"

7 years agoMerge "Avoid races in MessageCache::replace()"
jenkins-bot [Thu, 26 Jan 2017 00:53:11 +0000 (00:53 +0000)]
Merge "Avoid races in MessageCache::replace()"

7 years agorcfeed: Add basic PHPUnit integration test
Timo Tijhof [Sat, 7 Jan 2017 04:41:31 +0000 (20:41 -0800)]
rcfeed: Add basic PHPUnit integration test

Change-Id: Ifb5ddd4bda6cd1be050da7a5419ebe90f5ecf60f

7 years agoMerge "UploadBase: Allow RDF Schema namespace in SVG files"
jenkins-bot [Thu, 26 Jan 2017 00:02:46 +0000 (00:02 +0000)]
Merge "UploadBase: Allow RDF Schema namespace in SVG files"

7 years agoMerge "InstantCommons: do not cache thumbs"
jenkins-bot [Wed, 25 Jan 2017 22:39:33 +0000 (22:39 +0000)]
Merge "InstantCommons: do not cache thumbs"

7 years agoInstantCommons: do not cache thumbs
Gergő Tisza [Wed, 25 Jan 2017 20:03:33 +0000 (12:03 -0800)]
InstantCommons: do not cache thumbs

There is no point in local thumb caching when we set apibase
and thumbUrl to the remote wiki. It will only confuse MediaWiki
into creating local thumbnails for certain LinksUpdate tasks
even though the rendered page will reference thumbnails hosted
on Commons.

Bug: T145496
Change-Id: I0bd4b539f575036dd865bdd946660f10a9ee8801

7 years agoMerge "Update html/php clauses for subpage parserTests."
jenkins-bot [Wed, 25 Jan 2017 19:08:23 +0000 (19:08 +0000)]
Merge "Update html/php clauses for subpage parserTests."

7 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Wed, 25 Jan 2017 18:37:08 +0000 (18:37 +0000)]
Merge "Sync up with Parsoid parserTests."

7 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Wed, 25 Jan 2017 17:50:52 +0000 (12:50 -0500)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 643d5392bcf4dfebf906102627c51e8a608125bf

Change-Id: I4d7dc7378ca7cfdb3919f33959f58eb5c4d88ca8

7 years agoPrevent unexpected }- in converter output
Liangent [Thu, 23 Apr 2015 06:33:48 +0000 (06:33 +0000)]
Prevent unexpected }- in converter output

Previously for input -{<span title="-{X}-">X</span>}-, the converter
sees -{<span title="-&#123;X}-">A</span>}-, so <span title="-&#123;X
becomes the content in the first block, and a stray }- is left to output.

Now, the converter sees -{<span title="-&#123;X&#125;-">A</span>}- with
this change. In further processing, the span tag may be parsed and have
its title attrib converted. For cases where the content is not processed
further (eg. "R" = raw flag), "-{X}-" is left as is in the attrib, which
is not so ideal, but at least it's better than the original extra }-
outside the whole tag.

Change-Id: Idbaaf53f914f362e5b8cc9fad02a524f8d591bb7

7 years agoMerge "Don't remove border for floatright and floatleft"
jenkins-bot [Wed, 25 Jan 2017 15:17:31 +0000 (15:17 +0000)]
Merge "Don't remove border for floatright and floatleft"

7 years agoUpdate html/php clauses for subpage parserTests.
C. Scott Ananian [Thu, 19 Jan 2017 20:26:29 +0000 (15:26 -0500)]
Update html/php clauses for subpage parserTests.

The NS_USER namespace needs to have subpages enabled before these tests
work on the PHP parser.

Change-Id: I8e5e3bbd0dea6fc12f3b9ff9feeb58812fc51af1

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 25 Jan 2017 12:55:12 +0000 (13:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9a3d688828f6d3085eca91ba1653835b7854da21

7 years agoMerge "Remove unused protected method SpecialUserrights::splitGroups"
jenkins-bot [Wed, 25 Jan 2017 11:01:58 +0000 (11:01 +0000)]
Merge "Remove unused protected method SpecialUserrights::splitGroups"

7 years agoMerge "Fix functionality and usages of SpecialUserrights::userCanChangeRights"
jenkins-bot [Wed, 25 Jan 2017 11:01:54 +0000 (11:01 +0000)]
Merge "Fix functionality and usages of SpecialUserrights::userCanChangeRights"

7 years agoMerge "RCFilters UI: Add 'remove' and 'restore defaults' to filter list"
jenkins-bot [Wed, 25 Jan 2017 05:57:02 +0000 (05:57 +0000)]
Merge "RCFilters UI: Add 'remove' and 'restore defaults' to filter list"

7 years agoMerge "RCFilters UI: Read default states of filters"
jenkins-bot [Wed, 25 Jan 2017 05:54:43 +0000 (05:54 +0000)]
Merge "RCFilters UI: Read default states of filters"

7 years agoRCFilters UI: Add 'remove' and 'restore defaults' to filter list
Moriel Schottlender [Sat, 10 Dec 2016 00:18:59 +0000 (16:18 -0800)]
RCFilters UI: Add 'remove' and 'restore defaults' to filter list

Bug: T144448
Bug: T149391
Change-Id: I418ad6b34ae8a7456a7e66bc703d4dccf36764a5

7 years agoRCFilters UI: Read default states of filters
Moriel Schottlender [Fri, 9 Dec 2016 01:06:23 +0000 (17:06 -0800)]
RCFilters UI: Read default states of filters

Add the functionality to read the default state of filters
and preserve them, so that they are considered when either
base state is requested or when filters are explicitly told
to revert to default.

Bug: T149391
Bug: T144448
Change-Id: I9e8e3430ca2f80d3f67422681e8fb69a43ee4bef

7 years agoAvoid races in MessageCache::replace()
Aaron Schulz [Fri, 28 Oct 2016 05:53:51 +0000 (22:53 -0700)]
Avoid races in MessageCache::replace()

Do the process cache update immediately (as before) but push
the shared cache updates to a deferred update. This update
will thus start with a clear transaction snapshot, so it can
acquire the lock before the first SELECT as is proper.

Also added some missing method visibilities.

Bug: T144952
Change-Id: I462554b300d4688b09ab80cd1bb8a4340ffaa786

7 years agoMerge "rcfilters: Remove implemented filters from list of links"
jenkins-bot [Wed, 25 Jan 2017 00:30:15 +0000 (00:30 +0000)]
Merge "rcfilters: Remove implemented filters from list of links"

7 years agoMerge "Follow-up e3da2e23: Fix typo in hideanons filter name"
jenkins-bot [Wed, 25 Jan 2017 00:24:02 +0000 (00:24 +0000)]
Merge "Follow-up e3da2e23: Fix typo in hideanons filter name"

7 years agoMerge "Add tests for OutputPage::addMeta and set{Index|Follow}Policy"
jenkins-bot [Tue, 24 Jan 2017 19:53:49 +0000 (19:53 +0000)]
Merge "Add tests for OutputPage::addMeta and set{Index|Follow}Policy"

7 years agoMerge "Installer: don't treat the existance of main page as an error"
jenkins-bot [Tue, 24 Jan 2017 19:03:07 +0000 (19:03 +0000)]
Merge "Installer: don't treat the existance of main page as an error"

7 years agoAdd tests for OutputPage::addMeta and set{Index|Follow}Policy
Thiemo Mättig [Tue, 24 Jan 2017 17:30:33 +0000 (18:30 +0100)]
Add tests for OutputPage::addMeta and set{Index|Follow}Policy

This is a very basic test setup for the core functionality only. All
the special cases in getHeadLinksArray are currently not tested. But
this is a start.

This is relevant for the changes made in Ie8fd697.

Bug: T51859
Change-Id: I61e2da68ae0daea15fab2065a5dd63605d0b837d

7 years agoDon't remove border for floatright and floatleft
Derk-Jan Hartman [Tue, 24 Jan 2017 14:13:21 +0000 (15:13 +0100)]
Don't remove border for floatright and floatleft

This is a leftover from T2691, from a time when the skin still used
borders to fake a margin that didn't overlap with H2 elements. We fixed
this a long time ago in T28449 and it's follow ups, but this border: 0;
remained.

I discovered this now no longer desired side effect when trying to
apply these classes to tables.

Change-Id: I52b18c7c5b3dfea39c4653a8add00a607e7eab73

7 years agoCreate active/inactive behavior for complementary filters
Moriel Schottlender [Thu, 15 Dec 2016 02:01:20 +0000 (18:01 -0800)]
Create active/inactive behavior for complementary filters

Filters that are complementary or that contain one another should
indicate that they are inactive (or ineffective/disabled/excluded)
from the search.

Bug: T149452
Bug: T149391
Change-Id: Ie58493ef940698dddb04362473664c404f392b2b

7 years agoUpdate Balancer to latest HTML5 spec
C. Scott Ananian [Tue, 18 Oct 2016 13:51:33 +0000 (06:51 -0700)]
Update Balancer to latest HTML5 spec

This corresponds to the 1.0.27 release of domino, and matches the
latest HTML5 spec as of 2016-10-18.

Changes include:
* <menuitem> is no longer an empty element.
* <isindex> has been removed.
* Updated html5lib-tests (copied from domino 1.0.27).
* Round-trip-safe serialization of <pre>/<listing>/<textarea> is only
  used when "tidy compatibility" mode is enabled; the behavior in
  the HTML5 spec no longer cleanly round trips.

Change-Id: I656944b0d7bb6c3c0e4fe44fc6ebd1a4c36412ad

7 years agorcfilters: Remove implemented filters from list of links
Roan Kattouw [Tue, 24 Jan 2017 04:12:04 +0000 (15:12 +1100)]
rcfilters: Remove implemented filters from list of links

This is a bit hacky because the filter name needs to be inferred
from the class on each span, and because the separators aren't
wrapped.

Change-Id: Ib39ad435d3b48fa38533926e4ab49942c3bd5d6f

7 years agoFollow-up e3da2e23: Fix typo in hideanons filter name
Roan Kattouw [Tue, 24 Jan 2017 03:15:27 +0000 (14:15 +1100)]
Follow-up e3da2e23: Fix typo in hideanons filter name

Change-Id: I5d3d72147f1c0ce7994e253801128dbe145f72e8

7 years agoMerge "Pass the right username to 'tool-link-userrights' / 'tool-link-userrights...
jenkins-bot [Tue, 24 Jan 2017 01:50:35 +0000 (01:50 +0000)]
Merge "Pass the right username to 'tool-link-userrights' / 'tool-link-userrights-readonly'"

7 years agoInstaller: don't treat the existance of main page as an error
Max Semenik [Tue, 24 Jan 2017 00:52:37 +0000 (16:52 -0800)]
Installer: don't treat the existance of main page as an error

It results in CLI installer returning status code 1, messing various
automation such as our own Vagrant.

Change-Id: I7c14596db4ddd91339b2d2af463d851123a00ae7

7 years agoMerge "mediawiki.api.options: Use sequential API requests in the remaining edge cases"
jenkins-bot [Tue, 24 Jan 2017 00:02:40 +0000 (00:02 +0000)]
Merge "mediawiki.api.options: Use sequential API requests in the remaining edge cases"

7 years agorefreshLinks.php: allow refreshing by categories, tracking or not
Max Semenik [Tue, 29 Nov 2016 23:04:07 +0000 (15:04 -0800)]
refreshLinks.php: allow refreshing by categories, tracking or not

Needed for selective updates of pages using a particular feature.
Intended to be run in production, so needs to scale.

Bug: T149723
Change-Id: If20fb1f91de8d4227def5b07d6d52b91161ed3fd

7 years agomediawiki.api.options: Use sequential API requests in the remaining edge cases
Bartosz Dziewoński [Mon, 23 Jan 2017 21:46:09 +0000 (22:46 +0100)]
mediawiki.api.options: Use sequential API requests in the remaining edge cases

Bug: T100908
Change-Id: I927c098fd750bd765ffd746d40c3f7408f99f2de

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 23 Jan 2017 21:01:44 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ied68f6be3ea1dfec0f05d6e9ca36004ade979fb3

7 years agoMerge "Reciprocal fallback between ca (Catalan) and oc (Occitan)"
jenkins-bot [Mon, 23 Jan 2017 20:54:09 +0000 (20:54 +0000)]
Merge "Reciprocal fallback between ca (Catalan) and oc (Occitan)"

7 years agoReciprocal fallback between ca (Catalan) and oc (Occitan)
Federico Leva [Tue, 17 Jan 2017 19:35:02 +0000 (20:35 +0100)]
Reciprocal fallback between ca (Catalan) and oc (Occitan)

The two languages are extremely close, to the point linguists have
considered one a variant of the other till not too long ago. The
two linguistic communities have strong ties according to Donneky,
2011: http://hdl.handle.net/10443/1302 . Speakers should have no
difficulty understanding each other.

A translator has compared a sample of translations in the two
languages and found them to be largely similar and compatible.

Use European date formats; no $namespaceGenderAliases for now in oc.

Discussed at:
https://translatewiki.net/wiki/Thread:Portal_talk:Ca/Joining_forces_with_Occitan

The proposal has been notified on all Catalan Wikimedia projects, see
* https://ca.wikipedia.org/wiki/Tema:Tjc8xr0z769mskl5
* https://ca.wiktionary.org/w/index.php?diff=903923
etc. has met a very positive response.

This change is not incompatible with the oc→fr fallback (I02fc9af984).

Change-Id: Ibbad7a830bc010654db8ad5679d6a0f45357d382

7 years agoRemove useless title parameter in CategoryPager
Florian Schmidt [Mon, 23 Jan 2017 19:09:44 +0000 (20:09 +0100)]
Remove useless title parameter in CategoryPager

The title is already added as the action of the form tag,
so adding it again as a hidden input field is pretty useless
and more confusing in the url. Therefore: Removing it.

Change-Id: I146b562357105e337f86a6ccfeb55477262f67cd

7 years agoLanguage fallback from sh (Serbo-Croatian) to bs, sr-el, hr
Federico Leva [Sun, 15 Jan 2017 23:08:29 +0000 (00:08 +0100)]
Language fallback from sh (Serbo-Croatian) to bs, sr-el, hr

Bosnian, Serbian and Croatian are closely related languages and have
respectively about 2700, 1400 and 1200 translations identical to that
of Serbo-Croatian, which has about 5400 in total. This demonstrates
that we can profitably reuse some translators' work to reduce the
usage of English in Serbo-Croatian despite the low level of translation
and that there is a logical order in the fallback sequence.

The information has been collected and discussed with translators at
https://translatewiki.net/wiki/Thread:Portal_talk:Sh/Language_fallback
and Wikipedia editors have been notified of the discussion with
https://sh.wikipedia.org/w/index.php?diff=40677113&oldid=40676567
and messages in the talk page of each individual editor.

Inherit linktrail and digit separators, but not $defaultDateFormat,
$datePreferences, $datePreferenceMigrationMap or
$namespaceGenderAliases to reduce the impact and variance.

Change-Id: I04310ee32370ae20c00ea970b3163dcb8f167eba

7 years agoFix mode of CategoryPager.php to 644
Florian Schmidt [Mon, 23 Jan 2017 19:06:57 +0000 (20:06 +0100)]
Fix mode of CategoryPager.php to 644

Follow up: I4811771210384a32407b7378c7428361e46da33e

Change-Id: I0c87e04ca82f9b3f18f276cb41adbe6890cb870a

7 years agoMerge "PHAN: conditionally load stubs"
jenkins-bot [Mon, 23 Jan 2017 18:11:43 +0000 (18:11 +0000)]
Merge "PHAN: conditionally load stubs"

7 years agoMerge "Soft deprecated EditPage::submit to avoid new use"
jenkins-bot [Mon, 23 Jan 2017 17:47:28 +0000 (17:47 +0000)]
Merge "Soft deprecated EditPage::submit to avoid new use"

7 years agoSoft deprecated EditPage::submit to avoid new use
addshore [Mon, 23 Jan 2017 17:12:08 +0000 (18:12 +0100)]
Soft deprecated EditPage::submit to avoid new use

Currently this has no usages.
::edit can be called directly

Change-Id: I892e3de61c0513dc186d0f35e05107ed7136447d

7 years agoRemove unused protected method SpecialUserrights::splitGroups
Bartosz Dziewoński [Mon, 23 Jan 2017 16:49:59 +0000 (17:49 +0100)]
Remove unused protected method SpecialUserrights::splitGroups

Change-Id: I7e06086aab6c939ec4c92887fd8d75ae7c09b860

7 years agoFix functionality and usages of SpecialUserrights::userCanChangeRights
Bartosz Dziewoński [Mon, 23 Jan 2017 16:32:33 +0000 (17:32 +0100)]
Fix functionality and usages of SpecialUserrights::userCanChangeRights

SpecialUserrights::userCanChangeRights is a funky method that is
called by things outside of SpecialUserrights to see if they should
display a link to it. It had some bugs and missing documentation.

* SpecialUserrights::userCanChangeRights relied on $this->isself to
  see if the acting user and target user are the same, but it gets set
  in execute() which never runs when used like this.
* It wasn't clear whether the $user parameter represented the acting
  user or the target user, resulting in incorrect usage in
  SkinTemplate.

The net effect of these bugs is that skin sidebar would display
"Change user groups" instead of "View user groups" for all users when
the current user was only allowed to change some of their own groups.

Change-Id: Ie47b9c7463b373fe17006567239aa09e824b015d

7 years agoPass the right username to 'tool-link-userrights' / 'tool-link-userrights-readonly'
Bartosz Dziewoński [Mon, 23 Jan 2017 16:32:23 +0000 (17:32 +0100)]
Pass the right username to 'tool-link-userrights' / 'tool-link-userrights-readonly'

Change-Id: Iba2e41942352b834acb4ecd0781313ae522c25c4

7 years agoPHAN: conditionally load stubs
addshore [Fri, 20 Jan 2017 17:35:03 +0000 (17:35 +0000)]
PHAN: conditionally load stubs

Change-Id: I6f78c573468a393d82927d614df5bceda86a9e9c

7 years agoApiSandbox: Allow displaying query parameters in various formats
Brad Jorsch [Sun, 22 Jan 2017 18:44:58 +0000 (13:44 -0500)]
ApiSandbox: Allow displaying query parameters in various formats

I9c24a230 added a box with a JSON-formatted version of the request
parmeters, saying "In the future we can provide more formats via a
dropdown". That future should have been then. It is now.

Beyond simply making it possible to select the format via a dropdown,
this change adds a JS hook, apisandbox.formatRequest, to allow adding
new formats from extensions, gadgets, and site scripts instead of
requiring them all to be added to core.

Change-Id: I20b093e0891f36cb3f1faa3eb3d6aed0f17b6b7d

7 years agoMerge "Standardize html form by using OOUI in Special:Categories"
jenkins-bot [Sun, 22 Jan 2017 20:59:33 +0000 (20:59 +0000)]
Merge "Standardize html form by using OOUI in Special:Categories"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 22 Jan 2017 20:59:21 +0000 (21:59 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If2cf309a446a47958a10a6fc6d16498e1b52eb80

7 years agoMerge "Revert "ApiSandbox: Display params as JSON on request page""
jenkins-bot [Sun, 22 Jan 2017 18:38:45 +0000 (18:38 +0000)]
Merge "Revert "ApiSandbox: Display params as JSON on request page""

7 years agoStandardize html form by using OOUI in Special:Categories
Amir Sarabadani [Sun, 22 Jan 2017 03:44:53 +0000 (07:14 +0330)]
Standardize html form by using OOUI in Special:Categories

Bug: T117728
Change-Id: I4811771210384a32407b7378c7428361e46da33e

7 years agoMerge "mw.notification: Re-implement autoHideSeconds as string preset option"
jenkins-bot [Sun, 22 Jan 2017 07:58:54 +0000 (07:58 +0000)]
Merge "mw.notification: Re-implement autoHideSeconds as string preset option"

7 years agomw.notification: Re-implement autoHideSeconds as string preset option
Timo Tijhof [Fri, 20 Jan 2017 03:25:59 +0000 (03:25 +0000)]
mw.notification: Re-implement autoHideSeconds as string preset option

Instead of allowing freeform number values, make it a preset-based
string where pre-defined values are encouraged.

A numerical override is still possible by creating a new preset,
but this undocumented/private for now.

Follows-up 4b9992a0, which added this option. No usage found
as of yet in Wikimedia Git, thus no deprecation/back-compat.

Also:
* Unbreaks `#autoHideSeconds` reference in #autoHideLimit doc.
* Improve wording of #autoHideLimit doc.

Bug: T155228
Change-Id: Id84d8b616fe26b9976263f4bd6bdc70cc8a539ba

7 years agoParser: Trim leading whitespace from links before checking for leading :
This, that and the other [Tue, 27 Dec 2016 09:51:50 +0000 (20:51 +1100)]
Parser: Trim leading whitespace from links before checking for leading :

The leading spaces on the link only cause us problems, such as for the
$noforce check 20 lines later.

Bug: T129218
Change-Id: I93a8da1f73b38fa3da362f8f27479b3039ed3f13

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 21 Jan 2017 20:54:02 +0000 (21:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I846c7cf640fe159540ba25c6abfdce30b9dc5351

7 years agoMerge "Revert "Added reason suggestion in block/delete/protect forms""
jenkins-bot [Sat, 21 Jan 2017 19:47:27 +0000 (19:47 +0000)]
Merge "Revert "Added reason suggestion in block/delete/protect forms""

7 years agoMerge "SpecialMIMEsearch: Add a dropdown with input suggestions"
jenkins-bot [Sat, 21 Jan 2017 19:44:34 +0000 (19:44 +0000)]
Merge "SpecialMIMEsearch: Add a dropdown with input suggestions"

7 years agoMerge "Replaced all deprecated Linker methods with proper ones in core(1)"
jenkins-bot [Sat, 21 Jan 2017 19:33:09 +0000 (19:33 +0000)]
Merge "Replaced all deprecated Linker methods with proper ones in core(1)"

7 years agoRevert "Added reason suggestion in block/delete/protect forms"
Florianschmidtwelzow [Sat, 21 Jan 2017 18:54:21 +0000 (18:54 +0000)]
Revert "Added reason suggestion in block/delete/protect forms"

See the task, this was probably entirely my fault not having
looked at this more carefully. Technically the change is ok,
however, it seems to doesn't make much sense in combination
with the Reason dropdown box.

This reverts commit faab2411c29a2ad0851c596f1cadfec1d7e06892.

Task: T34950
Change-Id: I1eeb9c68ff0db20d29e7d5f0fb18f0bfa3224416

7 years agoMerge "BlockLogFormatter: Durations are relative to block's timestamp, not Unix epoch"
jenkins-bot [Sat, 21 Jan 2017 18:54:54 +0000 (18:54 +0000)]
Merge "BlockLogFormatter: Durations are relative to block's timestamp, not Unix epoch"

7 years agoInject remaining cache objects into MessageCache
Aaron Schulz [Sat, 21 Jan 2017 01:47:15 +0000 (17:47 -0800)]
Inject remaining cache objects into MessageCache

Change-Id: I431d6e9b443a00fdc1b65adb90ae9de496242f81

7 years agoFix typo in README
TTO [Sat, 21 Jan 2017 03:57:03 +0000 (03:57 +0000)]
Fix typo in README

Change-Id: If32667e5e41d924f14ad803c470a21cd54f3f17b

7 years agoMerge "ApiErrorFormatter_BackCompat: Use first error, not last"
jenkins-bot [Sat, 21 Jan 2017 03:35:19 +0000 (03:35 +0000)]
Merge "ApiErrorFormatter_BackCompat: Use first error, not last"

7 years agoMerge "Remove unused fields in SpecialUnusedimages query"
jenkins-bot [Sat, 21 Jan 2017 01:19:06 +0000 (01:19 +0000)]
Merge "Remove unused fields in SpecialUnusedimages query"

7 years agoMerge "Special:Upload should not crash on failing previews"
jenkins-bot [Fri, 20 Jan 2017 20:53:03 +0000 (20:53 +0000)]
Merge "Special:Upload should not crash on failing previews"

7 years agoSpecial:Upload should not crash on failing previews
Derk-Jan Hartman [Thu, 19 Jan 2017 19:49:55 +0000 (11:49 -0800)]
Special:Upload should not crash on failing previews

A thumbnail transformation can fail, but the preview on Special:Upload
was not accounting for failed previews and caused a stacktrace on
accessing getUrl on 'false'.

Bug: T155771
Change-Id: Iff3a2ae3512a34a2d2efb981b7ea85da71aaf637

7 years agoMerge "Added release notes for 'ContentHandler::runLegacyHooks' removal"
jenkins-bot [Fri, 20 Jan 2017 20:13:01 +0000 (20:13 +0000)]
Merge "Added release notes for 'ContentHandler::runLegacyHooks' removal"

7 years agoMerge "Add small script for common job queue admin tasks"
jenkins-bot [Fri, 20 Jan 2017 20:12:57 +0000 (20:12 +0000)]
Merge "Add small script for common job queue admin tasks"

7 years agoAdded release notes for 'ContentHandler::runLegacyHooks' removal
rlot [Fri, 20 Jan 2017 19:51:14 +0000 (20:51 +0100)]
Added release notes for 'ContentHandler::runLegacyHooks' removal

Bug: T154498
Change-Id: I37402478beaac1848feff2ed95e97bebbec5cee0

7 years agoMerge "Update docs/hooks.txt for ShowSearchHitTitle"
jenkins-bot [Fri, 20 Jan 2017 14:30:26 +0000 (14:30 +0000)]
Merge "Update docs/hooks.txt for ShowSearchHitTitle"

7 years agoMerge "Fix Selenium tests"
jenkins-bot [Fri, 20 Jan 2017 13:28:11 +0000 (13:28 +0000)]
Merge "Fix Selenium tests"

7 years agoFix Selenium tests
Željko Filipin [Thu, 19 Jan 2017 16:17:01 +0000 (17:17 +0100)]
Fix Selenium tests

The tests were broken because the feedback meesage is no longer
displayed as part of the page, but using HTML5 `required` attribute.

Bug: T155640
Change-Id: I9c46db374ec7f50262f84d721a21110aa6e81699

7 years agoReplaced all deprecated Linker methods with proper ones in core(1)
Yuriy Shnitkovskiy [Wed, 18 Jan 2017 20:55:20 +0000 (22:55 +0200)]
Replaced all deprecated Linker methods with proper ones in core(1)

Change-Id: Ie3a718dc1eae1507f8829fcf419c64c6846d2cb6

7 years agoUpdate docs/hooks.txt for ShowSearchHitTitle
Thiemo Mättig [Fri, 20 Jan 2017 09:40:28 +0000 (10:40 +0100)]
Update docs/hooks.txt for ShowSearchHitTitle

Reasons:
* $text is vague. It's the label of the link. There is a function named
  getTitleSnippet, which is what I'm reusing for the variable name.
* $page is vague. It's not the page of the search result, but the search
  special page.
* $queryString is not a string but an array of strings.

I also updated https://www.mediawiki.org/wiki/Manual:Hooks/ShowSearchHitTitle
accordingly.

Change-Id: Ia18dbf5ccf7f9fcc8890ad01641d0b7ff3e6eee8

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 20 Jan 2017 07:32:07 +0000 (08:32 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id4e35d1705d767dfd1130533acfb0d721cc5829e

7 years agoFixing grammar, capitalization and spelling in comments
Zppix [Thu, 19 Jan 2017 00:54:59 +0000 (00:54 +0000)]
Fixing grammar, capitalization and spelling in comments

Change-Id: Iac80f6668be17c0e35908fc8fdacbae0201f2d7f

7 years agoMerge "Make most of DateFormatter private"
jenkins-bot [Thu, 19 Jan 2017 22:53:57 +0000 (22:53 +0000)]
Merge "Make most of DateFormatter private"

7 years agoMerge "SpecialContributions: Username input is not really required"
jenkins-bot [Thu, 19 Jan 2017 21:39:32 +0000 (21:39 +0000)]
Merge "SpecialContributions: Username input is not really required"

7 years agoMake most of DateFormatter private
Max Semenik [Wed, 18 Jan 2017 19:01:26 +0000 (11:01 -0800)]
Make most of DateFormatter private

As discussed in https://gerrit.wikimedia.org/r/#/c/332702/ , these
methods and fields shouldn't have been marked public in the first place.
No outside users. Also, declare a couple of fields and remove unused ones.

Change-Id: I7775978c87d983784a484ee2ad901d25c42499b3

7 years agoSpecialContributions: Username input is not really required
Bartosz Dziewoński [Thu, 19 Jan 2017 21:29:08 +0000 (22:29 +0100)]
SpecialContributions: Username input is not really required

Bug: T155780
Change-Id: If5cd6867029c005cf56a1628efc239955cd49931

7 years agoMerge "Remove unused $resourceLoader"
jenkins-bot [Thu, 19 Jan 2017 21:07:36 +0000 (21:07 +0000)]
Merge "Remove unused $resourceLoader"

7 years agoRemove unused $resourceLoader
addshore [Thu, 19 Jan 2017 20:51:22 +0000 (20:51 +0000)]
Remove unused $resourceLoader

Change-Id: I6b5aebe2c6221ee101ec3bc4c84eafd9aeb7b0e2

7 years agoresources: Update OOjs UI with fixes on top of v0.18.4 (master)
James D. Forrester [Thu, 19 Jan 2017 20:33:18 +0000 (12:33 -0800)]
resources: Update OOjs UI with fixes on top of v0.18.4 (master)

Cherry-picked fixes:

be46e1773cd0f6b04510c325054d49835714b5f3
629389a777b35d131289a12cecf986e52ff65534
92dcdcf5351f6d499624d247b2a3ebff66346aca
f991c382ce3dd80ed3498bb09e81885b94f8795e

Bug: T155711
Bug: T155728
Change-Id: I741db3a17eec812b50b4befcc7eba603943b759c

7 years agoSpecialMIMEsearch: Add a dropdown with input suggestions
Bartosz Dziewoński [Thu, 19 Jan 2017 19:56:47 +0000 (20:56 +0100)]
SpecialMIMEsearch: Add a dropdown with input suggestions

I think people usually distinguish file types by their extensions.
We shouldn't expect them to know what the valid values are here.

Change-Id: I854d48494e7b8c5eb1f49e364c5300df5cd73fe9

7 years agoMerge "Un-blacklist PhanUndeclaredVariable"
jenkins-bot [Thu, 19 Jan 2017 19:00:57 +0000 (19:00 +0000)]
Merge "Un-blacklist PhanUndeclaredVariable"

7 years agoMerge "Use HTTPS instead of HTTP for Amazon"
jenkins-bot [Thu, 19 Jan 2017 18:46:46 +0000 (18:46 +0000)]
Merge "Use HTTPS instead of HTTP for Amazon"

7 years agoHTMLTextField: Set the 'dir' attribute in OOUI mode
Bartosz Dziewoński [Thu, 19 Jan 2017 15:19:27 +0000 (16:19 +0100)]
HTMLTextField: Set the 'dir' attribute in OOUI mode

Bug: T153636
Change-Id: I7ddf6a358f8150ef252d8d8e76661fe1eb93a790