Commit graph

77760 commits

Author SHA1 Message Date
daniel
f284dffc21 Introduce Title::getTalkPageIfDefined.
This is part of the effort to remove the assumption that every page
can have a talk page. Before we can merge Icee208dc4 which makes
Title::getTalkPage() throw an exception of no corresponding talk
namespace is defined, all extensions that call getTalkPage() must
be changed to either check canHaveTalkPage() first, or to use
the conveniance function getTalkPageIfDefined() instead.

Bug: T165149
Bug: T172146
Change-Id: I6d2613d8f7105048022f8093186dc57f1f8173ab
2017-08-01 19:09:13 +02:00
jenkins-bot
7b6b8e9b53 Merge "Use mw-parser-output for numbered external link counters" 2017-08-01 15:34:08 +00:00
jenkins-bot
c50920f5d4 Merge "Remove unused csslint rules" 2017-08-01 15:34:04 +00:00
jenkins-bot
8804850f44 Merge "Allow blacklisting certain namespaces in Special:ShortPages" 2017-08-01 14:20:30 +00:00
Ed Sanders
361c98d0b9 Use mw-parser-output for numbered external link counters
1. Not every skin uses mw-body-content (e.g. Minerva)
2. A page may have multiple separate parser outputs,
   e.g. Flow, where the numbering context should reset.

Change-Id: I867e0da619f99600210340becd468ec293bf9667
2017-08-01 13:45:54 +01:00
Ed Sanders
358bd878ea Remove unused csslint rules
Change-Id: I290f442b6a15fecd7cd2061190e52585984d2b6b
2017-08-01 13:38:24 +01:00
jenkins-bot
e4af56a9fb Merge "EditPage: Drop 80% width restriction on wpSummary for OOUI form" 2017-07-31 23:20:18 +00:00
James D. Forrester
8be59d5ab3 EditPage: Drop 80% width restriction on wpSummary for OOUI form
Bug: T64316
Change-Id: I007a92e32a62cdf8a1b3ac479386e32fb54469f5
2017-07-31 16:11:34 -07:00
jenkins-bot
c3666b91f3 Merge "RCFilters: show new changes" 2017-07-31 22:23:46 +00:00
jdlrobson
115fe784b5 Allow blacklisting certain namespaces in Special:ShortPages
This new config variable ($wgShortPagesNamespaceBlacklist)
allows wikis to specify namespaces which should be excluded from
Special:ShortPages.

This will be used by Commons, for which NS_FILE is a content namespace
(accessible via Special:Random and Special:Nearby) but is not useful
to list on Special:ShortPages.

If the blacklist cancels out all namespace in wgContentNamespaces then
all namespaces will show up on the page.

Bug: T170687
Change-Id: I10b4849a5d7f3f8af75ccc6cfba230d03725c898
2017-08-01 00:21:12 +02:00
jenkins-bot
7911744c3d Merge "Adjust print styles for thumb" 2017-07-31 22:01:28 +00:00
jdlrobson
fa3a12265b Adjust print styles for thumb
* Remove all borders and margins
* Gray thumb caption color
* Increasing padding
* Aligning to left
* Explicitly choose font size

Bug: T169823
Change-Id: If32f76f11f260bb33decf1ebe934470acee66ce6
2017-07-31 14:21:16 -07:00
jenkins-bot
55e4f560e7 Merge "Remove obsolete animation vendor prefix" 2017-07-31 21:00:23 +00:00
jenkins-bot
1aaf672294 Merge "Follow-up b446a3b9: don't auto-close DateInputWidget too early" 2017-07-31 20:57:04 +00:00
jenkins-bot
f368f46c95 Merge "Enable archive search by default on Special:Undelete." 2017-07-31 20:33:26 +00:00
Translation updater bot
bd50005e3f Localisation updates from https://translatewiki.net.
Change-Id: I5389c55f987527a1ba58e11cea0937e1d6888cb7
2017-07-31 22:04:15 +02:00
Volker E
d352bbbc79 Remove obsolete animation vendor prefix
Opera 12.10 supported unprefixed animations, gradients, transforms &
transitions. See http://www.opera.com/docs/changelogs/unified/1210/
Opera 15 used Blink and was supported up to v30 with
`-webkit` prefix.

Change-Id: Ie8edbcd7f85c713ea2156706ea3a3a7b423d8d9d
2017-07-31 21:34:56 +02:00
Roan Kattouw
d13f76bc30 Follow-up b446a3b9: don't auto-close DateInputWidget too early
Clicking on a month does not mean that the user has made a selection,
it only means that if we are in { precision: 'month' } mode.
In { precision: 'day' } mode, clicking a month is navigational,
so don't auto-close in that case.

Bug: T172041
Change-Id: I16a3e15a3b69844ff866fc09ba6a9268e85b2930
2017-07-31 12:22:59 -07:00
jenkins-bot
b24bfae5fe Merge "Adjustments to floating elements in print styles" 2017-07-31 18:38:50 +00:00
jdlrobson
c2ba18e5a6 Adjustments to floating elements in print styles
Bug: T169823
Change-Id: I38c030fe5d321f8d3419dca5a69e2a0f99ae6c16
2017-07-31 11:28:32 -07:00
jenkins-bot
b630452cad Merge "refreshLinks.php: Fix fatal when using --category parameter" 2017-07-31 18:19:03 +00:00
Stanislav Malyshev
1c6eee868e Enable archive search by default on Special:Undelete.
Bug: T163235
Change-Id: I7341719ec8858011965f91d873ce446efc05dcdf
2017-07-31 11:11:29 -07:00
Stephane Bisson
a7b5673cbc Remove StructuredChangeFiltersEnableSaving completely
Follow up I9202b7ee2f9ff80106d1fb4d3e6cddec04c8b4ac

Remove one last occurence in SpecialRecentchanges.php

Change-Id: I74fd3969ad73f0b34db5c4edcf9114c27b48b187
2017-07-31 11:47:59 -04:00
jenkins-bot
24163f37a3 Merge "RCFilters: Remove $wgStructuredChangeFiltersEnableSaving feature flag" 2017-07-31 13:43:36 +00:00
jenkins-bot
85ac1b5d7c Merge "mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load" 2017-07-31 13:43:32 +00:00
Roan Kattouw
d198d00e11 RCFilters: Remove $wgStructuredChangeFiltersEnableSaving feature flag
It's set to true now, and the feature is mature enough that we
don't need it to be feature-flagged anymore.

Change-Id: I9202b7ee2f9ff80106d1fb4d3e6cddec04c8b4ac
2017-07-31 08:58:28 -04:00
Stephane Bisson
e2bea6350c RCFilters: show new changes
When "live update" is off and new changes are detected,
show a link to load and prepend the changes to the list.

Also adding a line between old and new changes
when grouping by pages is off.

Bug: T163426
Change-Id: I6a111d23956bdc04caa4c71e9deede056779aafa
2017-07-31 08:50:09 -04:00
Louperivois
6458badecc mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load
Bug: T166621
Change-Id: I3921651585dd8b382afc99eca18a927eba1ebe47
2017-07-30 17:07:12 -04:00
Translation updater bot
19cc066749 Localisation updates from https://translatewiki.net.
Change-Id: I96387423844fd658c38225a43cabdc06e258900f
2017-07-30 22:05:59 +02:00
Jesús Martínez Novo
ec7b5e9262 refreshLinks.php: Fix fatal when using --category parameter
A title object must be passed to refreshCategory(), which is created in
the above lines, not the string representation received as a parameter.

bug: T172061
Change-Id: Id579a86a26cb438c1866351064c6887dbcea23b0
2017-07-30 15:39:36 +02:00
jenkins-bot
3c81a8e9fe Merge "build: Update Travis CI config to use fast Trusty containers" 2017-07-30 03:48:07 +00:00
jenkins-bot
cc23fea8d1 Merge "phpunit: Fix failing DeprecatedGlobalTest on HHVM at Travis CI" 2017-07-30 03:47:27 +00:00
Translation updater bot
b161fd7b30 Localisation updates from https://translatewiki.net.
Change-Id: I65223520fecf6d5ef2ae15427edf417422c15666
2017-07-29 22:02:39 +02:00
jenkins-bot
9ad1724f6b Merge "Hide "hideuser" on Special:Block for non-infinite blocks" 2017-07-29 04:24:00 +00:00
Timo Tijhof
3baef9f510 build: Update Travis CI config to use fast Trusty containers
We tried this before when Trusty containers were still in Beta,
but the issues we ran into at the time have since been fixed.

1. Missing package djvulibre-bin: Fixed.
   https://github.com/travis-ci/apt-package-whitelist/issues/4036

2. MySQL launch problems: Fixed
   https://github.com/travis-ci/travis-ci/issues/5837
   https://github.com/travis-ci/travis-ci/issues/6842

Also add HHVM 3.18 to the test matrix (latest currently preinstalled
version of HHVM).

Change-Id: I2f56e303c01f069207fb086e784e49292ea4eb58
2017-07-28 18:30:32 -07:00
Timo Tijhof
3b9d758274 phpunit: Fix failing DeprecatedGlobalTest on HHVM at Travis CI
Follows-up 1d77070f19. On Travis CI, this test fails on HHVM:

> There was 1 failure:
> 1) DeprecatedGlobalTest::testWarning
> Failed asserting that exception of type "PHPUnit_Framework_Error" is thrown.

I've been unable to reproduce this locally, but within Travis CI
it happens on both Trusty containers and Trusty VMs, no matter the
version of HHVM. After some trial and error, I narrowed it down
to the error_reporting setting, which presumably has a different default
in the HHVM package Travis CI uses.

Change-Id: I588218103d6c72df5ad4fb6289df688b3740233e
2017-07-28 18:30:32 -07:00
jenkins-bot
be656c67a2 Merge "RCFilters: Make 'related links' collapsible" 2017-07-29 01:16:05 +00:00
jenkins-bot
b6e891e054 Merge "Follow-up 0b3ea6e1ab: use more flexible regex for timestamp in ChangesListSpecialPageTest" 2017-07-29 01:14:17 +00:00
Moriel Schottlender
b71ad28776 RCFilters: Make 'related links' collapsible
Bug: T166919
Change-Id: I89d69c6614f641ac92143f0b1a718145e9cd61bd
2017-07-28 18:03:49 -07:00
Roan Kattouw
ed4210a567 Follow-up 0b3ea6e1ab: use more flexible regex for timestamp in ChangesListSpecialPageTest
Postgres uses timestamps like "2017-07-28 17:37:03" that aren't all numbers.

Bug: T75174
Change-Id: I1b65578c955ccdce1060783b06c2ca577796e68f
2017-07-28 17:36:25 -07:00
jenkins-bot
705b7f7716 Merge "RCFilters: Create a sticky preference for days/limit groups" 2017-07-29 00:05:39 +00:00
jenkins-bot
a00e369aff Merge "Follow-up to '3D' file type addition" 2017-07-29 00:03:18 +00:00
jenkins-bot
3baaaabd12 Merge "Update wikimedia/relpath from 1.0.3 -> 2.0.0" 2017-07-29 00:01:18 +00:00
Matthias Mullie
6260545fee Follow-up to '3D' file type addition
Based on feedback on Id78a504302fa664b353a4c45bdc5d99f95a0180a

Bug: T157348
Change-Id: Id6bfe8d20307f62e4673a5ef30e79f164b1ea034
2017-07-28 23:46:33 +00:00
Timo Tijhof
977334a6bd Update wikimedia/relpath from 1.0.3 -> 2.0.0
* (4f670afd92) Normalize leading path separator to forward slash
               Fixes Windows compatibility.
* (b0eeb17d31) Drop support for PHP 5.3 and PHP 5.4.

Depends-On: I98eb809ff72c4d09bfbb89a9dad9bc7094868240
Change-Id: I4111af30dfbfe2c72d52325bbd1923773e3b4202
2017-07-28 23:44:03 +00:00
jenkins-bot
0136e56de4 Merge "RCFilters: Remember legend expand/collapse state" 2017-07-28 23:12:40 +00:00
jenkins-bot
15e5777d56 Merge "RCFilters: Open limit/days popups the other way" 2017-07-28 23:10:57 +00:00
Moriel Schottlender
155d1f91d1 RCFilters: Create a sticky preference for days/limit groups
- Add sticky preference for groups and the operation behind
  it.
- Allow normalization from the UriProcessor
- Backwards-compatibility for saved queries
- Allow saved queries to load regardless of sticky params
  and to be compared correctly without the sticky params.
- Add days/limit preferences and update those on change
- Update the preference even if we received a new value
  from the URL.

Bug: T171514
Bug: T171368
Change-Id: I5232f3372f0e5c981332d152faf0ab47cc470b56
2017-07-28 16:06:30 -07:00
jenkins-bot
30bef892f4 Merge "RCFilters: Allow setting a new query as default" 2017-07-28 23:02:25 +00:00
Moriel Schottlender
437ac87037 RCFilters: Open limit/days popups the other way
Bug: T171968
Change-Id: I83127f43cef02194c839cd0ac531ae43fa386e9a
2017-07-28 15:58:55 -07:00