lhc/web/wiklou.git
7 years agoMerge "RCFilters UI: Adjust popup positioning again"
jenkins-bot [Wed, 15 Mar 2017 11:23:53 +0000 (11:23 +0000)]
Merge "RCFilters UI: Adjust popup positioning again"

7 years agoMerge "mw.loader: Add tests for mw.loader StringSet fallback"
jenkins-bot [Wed, 15 Mar 2017 08:22:01 +0000 (08:22 +0000)]
Merge "mw.loader: Add tests for mw.loader StringSet fallback"

7 years agoMerge "rv accidental inclusion of debug code in TemplateParser"
jenkins-bot [Wed, 15 Mar 2017 07:19:13 +0000 (07:19 +0000)]
Merge "rv accidental inclusion of debug code in TemplateParser"

7 years agoMerge "Default to CACHE_ACCEL if user skips advanced settings"
jenkins-bot [Wed, 15 Mar 2017 07:01:44 +0000 (07:01 +0000)]
Merge "Default to CACHE_ACCEL if user skips advanced settings"

7 years agoDefault to CACHE_ACCEL if user skips advanced settings
Brian Wolff [Wed, 15 Mar 2017 06:35:53 +0000 (06:35 +0000)]
Default to CACHE_ACCEL if user skips advanced settings

In the event user skips advanced settings in the installer, and
CACHE_ACCEL is available, we should default to it. This is already
the default in the event the user goes to advanced settings
since b3dc2fedc5e35015f9c7

Bug: T160495
Change-Id: Icaa2ca4e8eb63254142e837d2a47b6023a8ea0a2

7 years agorv accidental inclusion of debug code in TemplateParser
Brian Wolff [Wed, 15 Mar 2017 04:53:39 +0000 (04:53 +0000)]
rv accidental inclusion of debug code in TemplateParser

Follow up 73e08353fb96f5cbd93c6a7004d91c3d0845b446

Change-Id: I59bcff4334be61977a617a4a8726ae90165530e7

7 years agoMerge "Avoid breaking wikis that were modifying $wgDummyLanguageCodes"
jenkins-bot [Wed, 15 Mar 2017 02:59:07 +0000 (02:59 +0000)]
Merge "Avoid breaking wikis that were modifying $wgDummyLanguageCodes"

7 years agoMerge "Make MessageCache use the immutable text cache during cache rebuilds"
jenkins-bot [Wed, 15 Mar 2017 02:52:21 +0000 (02:52 +0000)]
Merge "Make MessageCache use the immutable text cache during cache rebuilds"

7 years agoMerge "Better path traversal prevention in TemplateParser."
jenkins-bot [Wed, 15 Mar 2017 02:50:32 +0000 (02:50 +0000)]
Merge "Better path traversal prevention in TemplateParser."

7 years agoMerge "mw.widgets.SearchInputWidget: Do not pass `type: 'search'` to TextInputWidget"
jenkins-bot [Tue, 14 Mar 2017 23:49:40 +0000 (23:49 +0000)]
Merge "mw.widgets.SearchInputWidget: Do not pass `type: 'search'` to TextInputWidget"

7 years agoMerge "Add --tidy option to maintenance/parse.php"
jenkins-bot [Tue, 14 Mar 2017 23:23:29 +0000 (23:23 +0000)]
Merge "Add --tidy option to maintenance/parse.php"

7 years agoMerge "Fixing search results percentage width"
jenkins-bot [Tue, 14 Mar 2017 23:07:39 +0000 (23:07 +0000)]
Merge "Fixing search results percentage width"

7 years agoAdd --tidy option to maintenance/parse.php
Subramanya Sastry [Sun, 12 Mar 2017 22:13:51 +0000 (17:13 -0500)]
Add --tidy option to maintenance/parse.php

Change-Id: I6ec08237bd15ee2d824164a0493b7fff9ef312db

7 years agomw.widgets.SearchInputWidget: Do not pass `type: 'search'` to TextInputWidget
Bartosz Dziewoński [Tue, 14 Mar 2017 21:28:16 +0000 (22:28 +0100)]
mw.widgets.SearchInputWidget: Do not pass `type: 'search'` to TextInputWidget

Causes deprecation warnings.

Most of this code is copy-pasted from OO.ui.SearchInputWidget.

Bug: T148471
Change-Id: I81d52ba938a8b90c5d2c173f1f2682d9e3300e43

7 years agoFixing search results percentage width
Jan Drewniak [Mon, 27 Feb 2017 12:24:27 +0000 (13:24 +0100)]
Fixing search results percentage width

The width of search results on SpecialSearch
page was set to 60% to accomodate the interwiki
results sidebar. As seen on:
https://phabricator.wikimedia.org/T149806

This modification should be moved to the
interwikiwidget.styles.less file so it doesn't
interfere with results when the intwiki
widget is not active.

Bug: T159806
Change-Id: Ib9bdc501c8b0eccbcc84abe399a38d10c9a5d20f

7 years agoMerge "Don't use $this as a function argument"
jenkins-bot [Tue, 14 Mar 2017 21:08:27 +0000 (21:08 +0000)]
Merge "Don't use $this as a function argument"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 14 Mar 2017 20:59:01 +0000 (21:59 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I700258b10dc880529bb6f37c7a31b54b765310ef

7 years agoMake sure Swift store operations close the source file handle
Aaron Schulz [Thu, 9 Mar 2017 02:51:27 +0000 (18:51 -0800)]
Make sure Swift store operations close the source file handle

Bug: T159607
Change-Id: I9a8907a20ba83f33cc5fc96bc15a1728770f656a

7 years agopostEdit: Only call mw.cookie.get() if needed
Timo Tijhof [Wed, 8 Mar 2017 04:57:16 +0000 (20:57 -0800)]
postEdit: Only call mw.cookie.get() if needed

Avoid synchronous document.cookie reads unconditionally during page load.
At least avoid the read where it isn't needed, such as non-view actions
and special pages.

Ideally this would happen in mw.requestIdleCallback, but unfurtunately
various extensions have a fragile dependency on reading mw.config
wgPostEdit at initialitation time which would likely fail if this is no
longer set synchronously. To be revisited...

Change-Id: Ib655bf6507333c1a9845a05eb436dca522efbab7

7 years agoBetter path traversal prevention in TemplateParser.
Brian Wolff [Tue, 14 Mar 2017 04:01:09 +0000 (04:01 +0000)]
Better path traversal prevention in TemplateParser.

In practise this probably doesn't matter, since template names
are not user controlled, and php isn't stupid enough to fall for
tricks with nulls (afaict). Nonetheless, the code from Title is
only meant to prevent url traversal, it is not meant to prevent
file system path traversal.

Change-Id: Id690576326d03744acc8fbbe78f4b7a4b4c04d7e

7 years agoMerge "Add image.img_user, image.img_timestamp index"
jenkins-bot [Tue, 14 Mar 2017 17:53:51 +0000 (17:53 +0000)]
Merge "Add image.img_user, image.img_timestamp index"

7 years agoMerge "Minor fixes for second sister search AB test"
jenkins-bot [Tue, 14 Mar 2017 16:12:38 +0000 (16:12 +0000)]
Merge "Minor fixes for second sister search AB test"

7 years agoMerge "Make the title of Special:UserRights more generic"
jenkins-bot [Tue, 14 Mar 2017 15:27:56 +0000 (15:27 +0000)]
Merge "Make the title of Special:UserRights more generic"

7 years agoMerge "Update CREDITS and .mailmap files"
jenkins-bot [Tue, 14 Mar 2017 15:09:56 +0000 (15:09 +0000)]
Merge "Update CREDITS and .mailmap files"

7 years agoAdd image.img_user, image.img_timestamp index
Matthias Mullie [Tue, 14 Mar 2017 14:16:48 +0000 (15:16 +0100)]
Add image.img_user, image.img_timestamp index

This will allow searching on user id instead of just the name.
This is how ContribsPager, LogPager, ... all work already.

Bug: T160415
Change-Id: I4db7bd0f917a428f40eb315246f89d49c7ae5b6a

7 years agoMake the title of Special:UserRights more generic
Huji Lee [Tue, 14 Mar 2017 14:23:31 +0000 (10:23 -0400)]
Make the title of Special:UserRights more generic

Bug: T154575
Change-Id: If9899040c88cefeb64a09444ef0f6f42e91ebca6

7 years agoMinor fixes for second sister search AB test
Jan Drewniak [Fri, 10 Mar 2017 13:04:27 +0000 (14:04 +0100)]
Minor fixes for second sister search AB test

These are a few minor fixes to improved the
UX of the new sister search sidebar.

- Making the link color on sister search results blue
- Fixing the order of the multimedia search results widget
- added a more explicit 'more results' message instead
of the current '(more)' message.
- aligning the top of the sidebar with the top of the regular
search results.
- fixing a typo in the multimedia widget.

Bug: T158935
Change-Id: Iaae603cc217b7847bebfa61b050b7c86bdd19f14

7 years agoTitle: Remove outdated comment in loadRestrictionsFromRows()
Bartosz Dziewoński [Sat, 11 Mar 2017 21:24:47 +0000 (22:24 +0100)]
Title: Remove outdated comment in loadRestrictionsFromRows()

It has been refactored, and decodeExpiry() is now a method of Database.

Change-Id: I357b303317c877be944474db1331855adb1eb8fd

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 13 Mar 2017 21:11:02 +0000 (22:11 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9eb8d7af838750dbf5141508402d0cae77b3274b

7 years agoUpdate CREDITS and .mailmap files
Eddie Greiner-Petter [Thu, 9 Mar 2017 21:24:43 +0000 (22:24 +0100)]
Update CREDITS and .mailmap files

Update the CREDITS file using maintenance/updateCredits.php script that
uses `git log` to identify contributors. For each added user it was
checked by hand that no user with the same mail adress but an other
"Real Name" was already in the CREDITS file. This is the case with one
entry, prevent this using .mailmap. Also remove (WMDE) at end of real
name in one case using .mailmap file. Also change version name MW 1.28
to 1.29 while at it.

Change-Id: I4c3bb8c3e5f0c1317ea8711efc4f88e571b0c5c6

7 years agoDon't use $this as a function argument
Erik Bernhardson [Mon, 13 Mar 2017 18:12:50 +0000 (11:12 -0700)]
Don't use $this as a function argument

PHP 7.1 adds the limitation that $this cannot be used as a function
parameter. Ensure forward compatability by renaming the parameters.

Bug: T160144
Change-Id: I33d2ab1ffeeeb32e3a467cc146ee8feef0255258

7 years agoMerge "Drop index oi_name_archive_name on table oldimage"
jenkins-bot [Mon, 13 Mar 2017 05:19:57 +0000 (05:19 +0000)]
Merge "Drop index oi_name_archive_name on table oldimage"

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

Change-Id: I5d800846ef2aa196635559493dbc1b8acb3802b5

7 years agoMerge "Fix mistake in ObjectCache doc"
jenkins-bot [Sun, 12 Mar 2017 07:15:28 +0000 (07:15 +0000)]
Merge "Fix mistake in ObjectCache doc"

7 years agoMerge "Back-end of new RecentChanges page, refactoring"
jenkins-bot [Sat, 11 Mar 2017 01:55:14 +0000 (01:55 +0000)]
Merge "Back-end of new RecentChanges page, refactoring"

7 years agoBack-end of new RecentChanges page, refactoring
Matthew Flaschen [Tue, 14 Feb 2017 07:55:37 +0000 (02:55 -0500)]
Back-end of new RecentChanges page, refactoring

Generate old RC, Related changes (it was already displayed and working
on 'Related changes' before this change), and Watchlist/etc. and data
for new UI from back-end.

This moves everything used for defining the old (unstructured) and new
(structured) filters into unified objects, ChangesListFilter and
ChangesListFilterGroup (and sub-classes).

This includes the query logic (see below) and logic for adding
CSS attribution classes.

This is a breaking change (for subclasses of ChangesListSpecialpage)
due to the signature (and name) change of buildMainQueryConds and
doMainQuery.  An alternative that I don't think is a breaking change
would be to put the filter->DB logic in runMainQueryHook, but then it's
doing more than just running a hook.

This is because it used to only build $conds here, but it's clear from
filterOnUserExperienceLevel filters need more than this.  I added all
the DB parameters from the hook, but this could be debated.

I have an checked and fixed the WMF-deployed extensions affected by
this.

Other than that, there should be full back-compat (including legacy
filters not using the new system).

* add hidepatrolled/hideunpatrolled to new UI.

* Move userExpLevel from RC to ChangesListSpecialPage.  Although for
now the structured UI only displays on RC anyway, when it displays on
watchlist, it seems we'll want userExpLevel there.

  Change this to make 'all' exclude unregistered users.

* Don't have front-end convert none-selected to 'all' on string_options.

* Needs the hideanons/hideliu special redirect to be done before this
is merged (T151873)

Bug: T152754
Bug: T152797
Change-Id: Iec2d82f6a830403d1c948a280efa58992e0cdee7

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 10 Mar 2017 20:53:16 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6e0a0fa411473a40ebae5035fd559f37a36fff52

7 years agoRCFilters UI: Adjust popup positioning again
Roan Kattouw [Fri, 10 Mar 2017 18:32:53 +0000 (10:32 -0800)]
RCFilters UI: Adjust popup positioning again

We should really change this to properly
align to the bottom of the text box, rather than
continuing to tweak a margin-top value.

Change-Id: Ic86c59a1726fa6e0ffd888a5e12b177f1d6fcfa5

7 years agoFix mistake in ObjectCache doc
Amir Sarabadani [Fri, 10 Mar 2017 09:42:43 +0000 (13:12 +0330)]
Fix mistake in ObjectCache doc

Change-Id: Iafe3c460ca462aa160cfea6769fd78f8b023548c

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 9 Mar 2017 21:47:22 +0000 (22:47 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7e25a8afe355bce65359c162b9384d243c67cebd

7 years agoMerge "composer.json: Make ext-curl a suggested package for MediaWiki core"
jenkins-bot [Thu, 9 Mar 2017 21:40:13 +0000 (21:40 +0000)]
Merge "composer.json: Make ext-curl a suggested package for MediaWiki core"

7 years agoMerge "Allow fields to define their own merge strategy via callback."
jenkins-bot [Thu, 9 Mar 2017 21:32:46 +0000 (21:32 +0000)]
Merge "Allow fields to define their own merge strategy via callback."

7 years agocomposer.json: Make ext-curl a suggested package for MediaWiki core
Derk-Jan Hartman [Thu, 9 Mar 2017 16:26:49 +0000 (17:26 +0100)]
composer.json: Make ext-curl a suggested package for MediaWiki core

curl is the preferred HTTP implementation as far as I'm a aware and the
only implementation used by MultiHttpClient, a requirement for
something like VisualEditor

Change-Id: I40a015339d4a3f92cfadcd92dfd70425639d0412

7 years agomw.special.apisandbox: Prevent text fields from collapsing into nothingness
Bartosz Dziewoński [Thu, 9 Mar 2017 16:52:04 +0000 (17:52 +0100)]
mw.special.apisandbox: Prevent text fields from collapsing into nothingness

Change-Id: Ib0d5cf6a227e1e03442e54db6fdacad272c53ed9

7 years agoMerge "Remove unused old messages for user login and signup"
jenkins-bot [Thu, 9 Mar 2017 09:40:02 +0000 (09:40 +0000)]
Merge "Remove unused old messages for user login and signup"

7 years agoMerge "Remove unused old logging messages for revision deletion"
jenkins-bot [Thu, 9 Mar 2017 09:36:01 +0000 (09:36 +0000)]
Merge "Remove unused old logging messages for revision deletion"

7 years agoMerge "Do not use real message names in 'All_system_messages' preprocessor test"
jenkins-bot [Thu, 9 Mar 2017 09:34:29 +0000 (09:34 +0000)]
Merge "Do not use real message names in 'All_system_messages' preprocessor test"

7 years agoMake masterPosWait() error clearer
Aaron Schulz [Thu, 9 Mar 2017 05:16:00 +0000 (21:16 -0800)]
Make masterPosWait() error clearer

Change-Id: I86706b2c4167fba897c56235072675b66ed06634

7 years agoMake MessageCache use the immutable text cache during cache rebuilds
Aaron Schulz [Thu, 9 Mar 2017 04:32:04 +0000 (20:32 -0800)]
Make MessageCache use the immutable text cache during cache rebuilds

Only 1 message typically changed per run, so for wikis using
external storage and with many customized messages, this can
make rebuilds considerably faster.

Bug: T158084
Change-Id: Ib668e69a207e3fbeb7871f2f6a102ff1af567368

7 years agoAvoid breaking wikis that were modifying $wgDummyLanguageCodes
TTO [Thu, 9 Mar 2017 00:12:01 +0000 (00:12 +0000)]
Avoid breaking wikis that were modifying $wgDummyLanguageCodes

Follow-up to If73c74ee87d8235381449cab7dcd9f46b0f23590.

Change-Id: I51b7ecf51860bfddea87fcf7cad17295088e1dd9

7 years agoMerge "Improve sorting on SpecialWanted*-Pages"
jenkins-bot [Thu, 9 Mar 2017 00:25:46 +0000 (00:25 +0000)]
Merge "Improve sorting on SpecialWanted*-Pages"

7 years agoMerge "Add RemexHtml to the list of available Tidy drivers"
jenkins-bot [Wed, 8 Mar 2017 23:33:17 +0000 (23:33 +0000)]
Merge "Add RemexHtml to the list of available Tidy drivers"

7 years agoAdd RemexHtml to the list of available Tidy drivers
Tim Starling [Wed, 8 Mar 2017 23:18:12 +0000 (10:18 +1100)]
Add RemexHtml to the list of available Tidy drivers

Change-Id: I5a87a6ed24ca3ef7c5fdb21e74f9eb410bf74b4c

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 8 Mar 2017 20:56:28 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I916d8727a605173281bfebc8c2ef9592d4f87282

7 years agoMerge "Break up $wgDummyLanguageCodes"
jenkins-bot [Wed, 8 Mar 2017 20:46:46 +0000 (20:46 +0000)]
Merge "Break up $wgDummyLanguageCodes"

7 years agoBreak up $wgDummyLanguageCodes
This, that and the other [Thu, 12 Jan 2017 14:17:41 +0000 (01:17 +1100)]
Break up $wgDummyLanguageCodes

$wgDummyLanguageCodes is a set and mapping of different language codes:

* Renamed language codes: ['als' => 'gsw', 'bat-smg' => 'sgs',
                           'be-xold' => 'be-tarask', 'fiu-vro' => 'vro',
                           'roa-rup' => 'rup', 'zh-classical' => 'lzh',
                           'zh-min-nan' => 'nan', 'zh-yue' => 'yue'].
  The old language codes are deprecated because they are invalid but
  should be supported for compatibility reasons for a while.
* Language codes of macro languages, which get mapped to the main
  language: ['bh' => 'bho', 'no' => 'nb'].
* Language variants which get mapped to main language:
  ['simple' => 'en'].
* Internal language codes of the private-use-area which get mapped to
  itself: ['qqq' => 'qqq', 'qqx' => 'qqx']

This is a very strange conglomeration which should get differentiated,
and were split up in the following ways:

* Renamed language codes are available from
  LanguageCode::getDeprecatedCodeMapping().
* Language codes of macro languages and the variants that are mapped to
  the main language are available as $wgExtraLanguageCodes and are set
  in DefaultSettings.php.
* Internal language codes are set in $wgDummyLanguageCodes in Setup.php.

Change-Id: If73c74ee87d8235381449cab7dcd9f46b0f23590

7 years agoMerge "Add some translations for Western Punjabi (pnb)"
jenkins-bot [Wed, 8 Mar 2017 19:21:09 +0000 (19:21 +0000)]
Merge "Add some translations for Western Punjabi (pnb)"

7 years agoMerge "RCFilters UI: Anchor the highlight popup"
jenkins-bot [Wed, 8 Mar 2017 17:26:05 +0000 (17:26 +0000)]
Merge "RCFilters UI: Anchor the highlight popup"

7 years agoImprove sorting on SpecialWanted*-Pages
Eddie Greiner-Petter [Tue, 21 Feb 2017 12:58:47 +0000 (13:58 +0100)]
Improve sorting on SpecialWanted*-Pages

Change the SpecialWanted*-Pages so that they do sort
1. by the number of links to a site (as is now) and
2. alphabetically for entries which have the same number of links (new)

Bug: T4335
Change-Id: If54cd52b69007ee81af4733a14be3fd893c4abfe

7 years agoRemove unused old messages for user login and signup
Bartosz Dziewoński [Wed, 8 Mar 2017 15:59:24 +0000 (16:59 +0100)]
Remove unused old messages for user login and signup

According to their documentation, these messages are no longer used
since MediaWiki 1.22. They only waste translators' time.

The messages appear to not be used by any skins or extensions
in Wikimedia version control.

Change-Id: I4b8e91558654b5f9006ed44bad6971237f057d07

7 years agoRemove unused old logging messages for revision deletion
Bartosz Dziewoński [Wed, 8 Mar 2017 15:37:57 +0000 (16:37 +0100)]
Remove unused old logging messages for revision deletion

Per T20578, change a9c243b7b5289dad204278dbe7ed571fd914e395 (r97044)
has replaced these messages with a new set that doesn't rely on
"lego" concatenation. But the old messages were never removed.
Some were blacklisted on Translatewiki, but others continue to
waste translators' time.

The messages appear to not be used by any skins or extensions
in Wikimedia version control.

+--------------------------------+--------------------------------+
| Deleted old messages           | Replacements in current system |
+--------------------------------+--------------------------------+
| revdelete-logentry             | logentry-delete-revision       |
| revdelete-log-message          |                                |
+--------------------------------+--------------------------------+
| logdelete-logentry             | logentry-delete-event          |
| logdelete-log-message          |                                |
+--------------------------------+--------------------------------+
| revdelete-hid                  |  revdelete-content-hid         |
| revdelete-unhid                |  revdelete-content-unhid       |
|                                |  revdelete-summary-hid         |
| revdelete-content              |  revdelete-summary-unhid       |
| revdelete-summary              |  revdelete-uname-hid           |
| revdelete-uname                |  revdelete-uname-unhid         |
+--------------------------------+--------------------------------+

Change-Id: I27c616ca1aaca3058ad48753f5e4bfc64a71636e

7 years agoDo not use real message names in 'All_system_messages' preprocessor test
Bartosz Dziewoński [Wed, 8 Mar 2017 15:04:27 +0000 (16:04 +0100)]
Do not use real message names in 'All_system_messages' preprocessor test

This file seems to be a stress-test for the MediaWiki preprocessor.
It doesn't really matter whether the messages references here exist.
As messages are occasionally renamed or deleted, and since this file
was generated in 2011, people keep getting confused when they grep
for a message name and run into this list (and sometimes needlessly
spend their time updating this file, as seen in its Git history).

This commit replaces all of the message names with their SHA1 hash
truncated to 8 hex characters.

Regexps used for matching:
(?<=\?title=MediaWiki\:)([^&{}<>|\[\]]+)
(?<=int:)([^&{}<>|\[\]]+)
(?<=\[\[MediaWiki_talk:)([^&{}<>|\[\]]+)
(?<=action=edit )([^&{}<>|\[\]]+)

Change-Id: I52a71c0cc0e6fa21a61420d52df755066c6e9a08

7 years agoMerge "RemexHtml tidy driver with p-wrapping"
jenkins-bot [Wed, 8 Mar 2017 15:24:36 +0000 (15:24 +0000)]
Merge "RemexHtml tidy driver with p-wrapping"

7 years agoAdd some translations for Western Punjabi (pnb)
Bartosz Dziewoński [Tue, 7 Mar 2017 23:50:59 +0000 (00:50 +0100)]
Add some translations for Western Punjabi (pnb)

Bug: T157871
Change-Id: I567662c1861293ca9c7e841e2b839b721bd60103

7 years agoRemexHtml tidy driver with p-wrapping
Tim Starling [Fri, 17 Feb 2017 04:10:15 +0000 (15:10 +1100)]
RemexHtml tidy driver with p-wrapping

Pull in the RemexHtml library, which is an HTML 5 library I recently
created.

RemexCompatMunger mutates the event stream, inserting <mw:p-wrap>
elements where necessary, and occasionally taking even more invasive
action such as reparenting and removing nodes maintained in Serializer's
tree.

RemexCompatFormatter produces a MediaWiki-style serialization which is
relatively compatible with existing parser tests. It also does final
empty element handling, including translating <mw:p-wrap> to <p>

Tests are imported from both Html5Depurate and Subbu's pwrap.js.

Depends-On: I864f31d9afdffdde49bfd39f07a0fb7f4df5c5d9
Change-Id: I900155b7dd199b0ae2a3b9cdb6db5136fc4f35a8

7 years agoMerge "Handle missing namespace prefix in XML dumps more gracefully"
jenkins-bot [Wed, 8 Mar 2017 05:07:56 +0000 (05:07 +0000)]
Merge "Handle missing namespace prefix in XML dumps more gracefully"

7 years agoRCFilters UI: Anchor the highlight popup
Moriel Schottlender [Wed, 8 Mar 2017 02:22:07 +0000 (18:22 -0800)]
RCFilters UI: Anchor the highlight popup

Due to a regression in popups positioning in OOUI, the popup
renders wrongly when it is unanchored.

Fixing this to an anchored popup while the OOUI bug is being fixed.

Bug: T159906
Change-Id: I38ca560929f7f9488ff48b148b089f0613d67d97

7 years agoMerge "RCFilters UI: Prevent the popup from disappearing when input is out of view"
jenkins-bot [Wed, 8 Mar 2017 01:37:08 +0000 (01:37 +0000)]
Merge "RCFilters UI: Prevent the popup from disappearing when input is out of view"

7 years agoMerge "RC filters: update the state of the app on popstate."
jenkins-bot [Wed, 8 Mar 2017 01:32:35 +0000 (01:32 +0000)]
Merge "RC filters: update the state of the app on popstate."

7 years agoMerge "RCFilters UI: Add 'highlight' icon to highlight button"
jenkins-bot [Wed, 8 Mar 2017 01:29:22 +0000 (01:29 +0000)]
Merge "RCFilters UI: Add 'highlight' icon to highlight button"

7 years agoMerge "RCFilters UI: Display popups above CapsuleItemWidgets"
jenkins-bot [Wed, 8 Mar 2017 01:28:55 +0000 (01:28 +0000)]
Merge "RCFilters UI: Display popups above CapsuleItemWidgets"

7 years agoRCFilters UI: Add 'highlight' icon to highlight button
Moriel Schottlender [Mon, 6 Mar 2017 23:01:51 +0000 (15:01 -0800)]
RCFilters UI: Add 'highlight' icon to highlight button

Bug: T149467
Change-Id: Iba11de7ba47e41046631dbf16f464f8bd3820811
Depends-On: I0b5adaaec52f9cc01c3dfb6262adaf2da368476e

7 years agoMerge "Update OOjs UI to v0.19.5"
jenkins-bot [Wed, 8 Mar 2017 01:00:57 +0000 (01:00 +0000)]
Merge "Update OOjs UI to v0.19.5"

7 years agoMerge "RC Filters UI: 'restore defaults' clears highlight"
jenkins-bot [Wed, 8 Mar 2017 00:38:16 +0000 (00:38 +0000)]
Merge "RC Filters UI: 'restore defaults' clears highlight"

7 years agoUpdate OOjs UI to v0.19.5
Volker E [Tue, 7 Mar 2017 23:26:56 +0000 (15:26 -0800)]
Update OOjs UI to v0.19.5

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

Change-Id: Ic15534df2f4006b94d1161a91e2d689f96892073

7 years agomw.loader: Add tests for mw.loader StringSet fallback
Timo Tijhof [Wed, 28 Sep 2016 18:12:52 +0000 (19:12 +0100)]
mw.loader: Add tests for mw.loader StringSet fallback

Change-Id: Ia00d793f0332531b5afa006fe8453e2e733d40ba

7 years agoClean up remaining get_class() uses
Timo Tijhof [Tue, 7 Mar 2017 02:14:14 +0000 (18:14 -0800)]
Clean up remaining get_class() uses

* get_class()        -> __CLASS__ (same as self::class)
* get_called_class() -> static::class
* get_class($this)   -> static::class

Change-Id: I1888a1897ecf4548a2e5a67a942e5c080dd7e3d3

7 years agoMerge "Clean up get_class() in /includes/filerepo and /includes/resourceloader"
jenkins-bot [Tue, 7 Mar 2017 21:43:41 +0000 (21:43 +0000)]
Merge "Clean up get_class() in /includes/filerepo and /includes/resourceloader"

7 years agoMerge "HTMLMultiSelect parameter to specify which options are disabled"
jenkins-bot [Tue, 7 Mar 2017 21:39:02 +0000 (21:39 +0000)]
Merge "HTMLMultiSelect parameter to specify which options are disabled"

7 years agoClean up get_class() in /includes/filerepo and /includes/resourceloader
Timo Tijhof [Tue, 7 Mar 2017 02:14:14 +0000 (18:14 -0800)]
Clean up get_class() in /includes/filerepo and /includes/resourceloader

* get_class()        -> __CLASS__ (same as self::class)
* get_called_class() -> static::class
* get_class($this)   -> static::class

Change-Id: Ic4f9b150ddc35e25f51297de7fc12410d421be4d

7 years agoMerge "Update oyejorge/less.php to 1.7.0.13"
jenkins-bot [Tue, 7 Mar 2017 21:30:14 +0000 (21:30 +0000)]
Merge "Update oyejorge/less.php to 1.7.0.13"

7 years agoHTMLMultiSelect parameter to specify which options are disabled
Huji Lee [Thu, 22 Dec 2016 00:37:10 +0000 (19:37 -0500)]
HTMLMultiSelect parameter to specify which options are disabled

Depends on I32fa20e4adb23960d9db6bf6023f79bf128fb600

Bug: T153751
Change-Id: I3bcf6720c960e0be962e0f3f37a22ec8778db1d1

7 years agoUpdate oyejorge/less.php to 1.7.0.13
Paladox [Thu, 23 Feb 2017 18:17:45 +0000 (18:17 +0000)]
Update oyejorge/less.php to 1.7.0.13

See changes at
https://github.com/oyejorge/less.php/blob/master/CHANGES.md

https://github.com/oyejorge/less.php/compare/v1.7.0.10...v1.7.0.13

Depends-On: Iaafb9800a223f2a1e163bb2e55b4017fcc98e682
Change-Id: I6a925c2e82812df0acf4c8b8da2541b62fea8809

7 years agoClean up get_class($this) -> static::class in /includes/cache and /includes/libs
Timo Tijhof [Tue, 7 Mar 2017 02:14:14 +0000 (18:14 -0800)]
Clean up get_class($this) -> static::class in /includes/cache and /includes/libs

* get_class()        -> __CLASS__ (same as self::class)
* get_called_class() -> static::class
* get_class($this)   -> static::class

Change-Id: I22c62851bcc88405f4bdd77258d6e28ec1a14924

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 7 Mar 2017 21:03:55 +0000 (22:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I97bab36cdd05b162843e47e8b65d2ad2c224eb0f

7 years agoRC Filters UI: 'restore defaults' clears highlight
Stephane Bisson [Tue, 7 Mar 2017 20:37:04 +0000 (15:37 -0500)]
RC Filters UI: 'restore defaults' clears highlight

The 'restore defaults' button clear any
highlight config and brings the UI back
to the same default state every time.

Bug: T159848
Change-Id: I78397c914aa5510e259a28c226f6e953b4dded4d

7 years agoRC filters: update the state of the app on popstate.
Stephane Bisson [Wed, 1 Mar 2017 12:04:05 +0000 (07:04 -0500)]
RC filters: update the state of the app on popstate.

Also re-fetch changes list.

Bug: T153949
Change-Id: Id3d4ea2a4de6074ae1c15cadb74e7a324a39e7ff

7 years agoAllow fields to define their own merge strategy via callback.
Stanislav Malyshev [Thu, 9 Feb 2017 21:30:12 +0000 (13:30 -0800)]
Allow fields to define their own merge strategy via callback.

Change-Id: Ic1cc1581f07381224d3f4fcba4feb1eac7085057

7 years agoMerge "Change mw-body ancestor selector to mw-body-content"
jenkins-bot [Tue, 7 Mar 2017 18:05:57 +0000 (18:05 +0000)]
Merge "Change mw-body ancestor selector to mw-body-content"

7 years agoMerge "registration: Allow documenting config settings with i18n messages"
jenkins-bot [Tue, 7 Mar 2017 07:39:43 +0000 (07:39 +0000)]
Merge "registration: Allow documenting config settings with i18n messages"

7 years agoMerge "registration: Allow specifying the value of a config setting can be public"
jenkins-bot [Tue, 7 Mar 2017 07:37:14 +0000 (07:37 +0000)]
Merge "registration: Allow specifying the value of a config setting can be public"

7 years agoMerge "PageArchive: Fix typo in class file"
jenkins-bot [Tue, 7 Mar 2017 07:34:18 +0000 (07:34 +0000)]
Merge "PageArchive: Fix typo in class file"

7 years agoregistration: Allow documenting config settings with i18n messages
Florian Schmidt [Fri, 13 Jan 2017 05:14:42 +0000 (06:14 +0100)]
registration: Allow documenting config settings with i18n messages

In addition to the general (English) description key in a config
option in extension.json, developers now can provide a description message
key. This localized message will be used in user interfaces, such as
viewing configuration options on-wiki (see later changes).

Bug: T155157
Change-Id: I5c780b3347bd54a05694cfa6de93879656b4e921

7 years agoregistration: Allow specifying the value of a config setting can be public
Florian Schmidt [Fri, 13 Jan 2017 05:11:55 +0000 (06:11 +0100)]
registration: Allow specifying the value of a config setting can be public

This value is currently unused but will be used in later changes
for allowing to view configuration options on-wiki. It will require each
extension maintainer to whitelist the keys that can be published by marking
them as public.

Bug: T155156
Change-Id: I020c148157818ef8bfee0e79cb5a6f43181c5a8c

7 years agoMerge "Fix @covers for FileBackend"
jenkins-bot [Tue, 7 Mar 2017 07:08:17 +0000 (07:08 +0000)]
Merge "Fix @covers for FileBackend"

7 years agoMerge "resourceloader: Remove useless INFO log for message blob cache-miss"
jenkins-bot [Tue, 7 Mar 2017 02:28:35 +0000 (02:28 +0000)]
Merge "resourceloader: Remove useless INFO log for message blob cache-miss"

7 years agoMerge "RCFilters UI: Add tooltip to highlight menu"
jenkins-bot [Tue, 7 Mar 2017 02:19:49 +0000 (02:19 +0000)]
Merge "RCFilters UI: Add tooltip to highlight menu"

7 years agoRCFilters UI: Add tooltip to highlight menu
Moriel Schottlender [Tue, 7 Mar 2017 01:09:18 +0000 (17:09 -0800)]
RCFilters UI: Add tooltip to highlight menu

Bug: T159587
Change-Id: Iae5e050fd721d8c51d0b6c150d039c7f2ed6647d

7 years agoMerge "RCFilters UI: Override 'list-style' for <li> results"
jenkins-bot [Tue, 7 Mar 2017 00:38:54 +0000 (00:38 +0000)]
Merge "RCFilters UI: Override 'list-style' for <li> results"

7 years agoRCFilters UI: Override 'list-style' for <li> results
Moriel Schottlender [Tue, 7 Mar 2017 00:22:45 +0000 (16:22 -0800)]
RCFilters UI: Override 'list-style' for <li> results

Just in case a wiki defines list-style-image for recent changes
(like in beta labs) we remove it from the general system, so it
does not interfere with highlights.

Bug: T159586
Change-Id: Ic20961efa047d16191b9dd889e390eb29d28ab7d