lhc/web/wiklou.git
6 years agoMerge "Special:Newpages feed now shows first revision instead of latest revision"
jenkins-bot [Mon, 14 Aug 2017 16:33:19 +0000 (16:33 +0000)]
Merge "Special:Newpages feed now shows first revision instead of latest revision"

6 years agoChange WikiImporter to now requires the second parameter to be an instance of the...
Matthew Bowker [Sun, 13 Aug 2017 22:54:26 +0000 (16:54 -0600)]
Change WikiImporter to now requires the second parameter to be an instance of the Config class.

Prior to this change, the second parameter to WikiImporter was optional.  If the parameter didn't exist, it would get filled in with a MediaWikiServices::getInstance()->getMainConfig().  It would also emit a hard deprecation warning. This behavior has existed since 1.25.

Bug: T61113
Change-Id: Ic15cc103c7d2b7fb499f1632c0001b8a3dbdf778

6 years agoMerge "Ignore errors in RedisConnectionPool destructor"
jenkins-bot [Mon, 14 Aug 2017 15:01:28 +0000 (15:01 +0000)]
Merge "Ignore errors in RedisConnectionPool destructor"

6 years agoIgnore errors in RedisConnectionPool destructor
Gergő Tisza [Sun, 13 Aug 2017 14:18:18 +0000 (14:18 +0000)]
Ignore errors in RedisConnectionPool destructor

The destructor can be called on shutdown so any operation which
relies on another object or resource can fail. E.g. running
anything involving Redis (such as >>new Message('').''<<)
from shell.php and then exiting will result in a RedisException
since the PHP engine closes the Redis connection before destroying
the connection pool. Such errors can be safely ignored.

Change-Id: I38474a9dda89c82edbcb878facb4a97740e9189a

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 14 Aug 2017 06:20:23 +0000 (08:20 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If08fcdfd7268397691d725d198d222f9fce9cfbb

6 years agoRemove deprecated MagicWord::replaceMultiple()
Max Semenik [Sat, 12 Aug 2017 02:46:54 +0000 (19:46 -0700)]
Remove deprecated MagicWord::replaceMultiple()

wfDeprecated since 1.25, not used anywhere.

Change-Id: I09fd362a3d795328ffc12572025702ef9b951378

6 years agoMerge "BaseTemplate: Handle `$this->data['language_urls'] === false` specially"
jenkins-bot [Sun, 13 Aug 2017 20:19:19 +0000 (20:19 +0000)]
Merge "BaseTemplate: Handle `$this->data['language_urls'] === false` specially"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 13 Aug 2017 20:09:09 +0000 (22:09 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I324f599c4c46011cf7348ca75fc1d08e1beafe3f

6 years agoMerge "jquery.tablesorter: Improve detection and handling of isoDate"
jenkins-bot [Sun, 13 Aug 2017 18:02:49 +0000 (18:02 +0000)]
Merge "jquery.tablesorter: Improve detection and handling of isoDate"

6 years agojquery.tablesorter: Improve detection and handling of isoDate
madd [Sun, 8 May 2016 16:31:58 +0000 (18:31 +0200)]
jquery.tablesorter: Improve detection and handling of isoDate

* Detect years 0...99 correct.
* Short forms possible: JJJJ, JJJJ-MM, JJJJMM, JJJJMMTT
  QUnit Test sorts now with parser 'isoDate' (because of 2009 former test sorts with parser 'text')
* Prefix and postfix allowed.
* Between date and time a 'T' or 'any white space' is allowed (Bug: T126886)

Bug: T126886
Change-Id: I664b4cc9d5fb472ea0bc0e36a3c209f04048e769

6 years agoRemove test code that depends on extension
Matthias Mullie [Tue, 11 Jul 2017 14:35:49 +0000 (16:35 +0200)]
Remove test code that depends on extension

And allow extensions to add their own media handlers.

I'm not too happy with the introduction of another global,
but didn't like the alternatives either:
* Add some hook to MockMediaHandlerFactory that would allow
  extensions to add their own stuff in.
* Use another hook (like ParserTestTables or ParserTestGlobals)
  and then override the service with a new instance - seemed
  too hacky
The good thing about this is that it lets us kill off a class.
I'm other to other suggestions in case I missed something.

Bug: T169258
Depends-On: I5875621c58597426ad5242bf3d07714555c439b5
Change-Id: I1c2e903fb235395a8de8e0f7bf65ce07739d2930

6 years agoUnwatch link for pages in Special:Watchlist
Geoffrey Mon [Sat, 11 Jun 2016 00:59:58 +0000 (20:59 -0400)]
Unwatch link for pages in Special:Watchlist

When the 'watchlistunwatchlinks' preference option is enabled, this
adds a '×' link to each entry of the watchlist that unwatches the page
of that entry. When clicked, it changes into a '+' which can be used to
re-watch the page (effectively undoing the earlier unwatch).
When a page is unwatched, its entries and the entries of its associated
talk page (or vice versa) become translucent and are struck through.

Without JS, '×'/'+' link to action=(un)watch for the relevant page.

In addition, ChangesList classes have been modified to allow a prefixer
that adds a prefix to each line (used in this case to put the unwatch
link) and to add HTML data attributes to reliably determine the target
page of each entry. Unit tests have been updated accordingly.

Bug: T2424
Change-Id: I450b2901413d7e75c11de2a446829fdbb22d31e1

6 years agoMerge "Warn users when installing on a 32-bit system"
jenkins-bot [Sat, 12 Aug 2017 21:08:05 +0000 (21:08 +0000)]
Merge "Warn users when installing on a 32-bit system"

6 years agoWarn users when installing on a 32-bit system
Chad Horohoe [Mon, 31 Jul 2017 22:28:47 +0000 (15:28 -0700)]
Warn users when installing on a 32-bit system

Don't fail to install, because we don't explicitly need to break
32-bit support. But in this day and age it's becoming increasingly
likely to break things on a 32-bit system. So let's at least let
a system admin know that YMMV.

Change-Id: Ifb3bfa049532d82f67fe4375944af1516400513c

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 12 Aug 2017 19:57:43 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic427ce81276365b5e4ce288bd1b330850592ac81

6 years agoMerge "Disallow job pushes from JobQueueGroup to bogus wikis"
jenkins-bot [Sat, 12 Aug 2017 18:48:27 +0000 (18:48 +0000)]
Merge "Disallow job pushes from JobQueueGroup to bogus wikis"

6 years agoMerge "Fix 'logName' parameter (5th) in many uses of mw.log.deprecate"
jenkins-bot [Sat, 12 Aug 2017 17:21:53 +0000 (17:21 +0000)]
Merge "Fix 'logName' parameter (5th) in many uses of mw.log.deprecate"

6 years agoMerge "mw.util: Add a deprecation message to escapeId()"
jenkins-bot [Sat, 12 Aug 2017 17:19:46 +0000 (17:19 +0000)]
Merge "mw.util: Add a deprecation message to escapeId()"

6 years agoDo not use broken bootstrap in phpcs.xml
Umherirrender [Fri, 11 Aug 2017 13:12:05 +0000 (15:12 +0200)]
Do not use broken bootstrap in phpcs.xml

The bootstrap in mediawiki-codesniffer is broken, because it was not
adjust when PHP CodeSniffer Version 3.0.0 was used. Remove the broken
bootstap.

Bug: T172933
Change-Id: I29e776662055077f6de3a9bc6d0869120b387ea7

6 years agoDisallow job pushes from JobQueueGroup to bogus wikis
Aaron Schulz [Thu, 10 Aug 2017 00:13:49 +0000 (17:13 -0700)]
Disallow job pushes from JobQueueGroup to bogus wikis

Bug: T171371
Change-Id: I03a5dbd18cf6b5bcacb3ec07cef9e0b051bc147c

6 years agoMerge "Add missing @param and @return documentation"
jenkins-bot [Fri, 11 Aug 2017 21:32:58 +0000 (21:32 +0000)]
Merge "Add missing @param and @return documentation"

6 years agoMerge "Add missing type to @param documentation"
jenkins-bot [Fri, 11 Aug 2017 21:31:51 +0000 (21:31 +0000)]
Merge "Add missing type to @param documentation"

6 years agoMerge "update mediawiki-codesniffer to 0.11.0 and fix issues"
jenkins-bot [Fri, 11 Aug 2017 20:43:52 +0000 (20:43 +0000)]
Merge "update mediawiki-codesniffer to 0.11.0 and fix issues"

6 years agoupdate mediawiki-codesniffer to 0.11.0 and fix issues
WMDE-Fisch [Fri, 11 Aug 2017 13:53:17 +0000 (15:53 +0200)]
update mediawiki-codesniffer to 0.11.0 and fix issues

- mostly auto fixes
- some too long lines fixed
- ignore amp space in one case  passing by reference

Change-Id: I6472f83bc3cbf4bd629d83050cc3319b19ec465c

6 years agoAdd missing @param and @return documentation
Umherirrender [Fri, 11 Aug 2017 18:04:11 +0000 (20:04 +0200)]
Add missing @param and @return documentation

Change-Id: I1d1098eec3933df6561cceef646576013ddc08c8

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 11 Aug 2017 20:03:27 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4e8ad1e97a08441dad773c8435309df93ab347d9

6 years agoAdd missing type to @param documentation
Umherirrender [Fri, 11 Aug 2017 15:46:31 +0000 (17:46 +0200)]
Add missing type to @param documentation

Change-Id: I6b2c9c7af9a281fe457099cc3a336a60a25e74aa

6 years agoMerge "Use correct variable name in @param documentation"
jenkins-bot [Fri, 11 Aug 2017 18:31:37 +0000 (18:31 +0000)]
Merge "Use correct variable name in @param documentation"

6 years agoMerge "Add missing & to @param documentation to match functon call"
jenkins-bot [Fri, 11 Aug 2017 18:29:05 +0000 (18:29 +0000)]
Merge "Add missing & to @param documentation to match functon call"

6 years agoMerge "Fixing styling of interwiki results header"
jenkins-bot [Fri, 11 Aug 2017 18:22:15 +0000 (18:22 +0000)]
Merge "Fixing styling of interwiki results header"

6 years agoUse correct variable name in @param documentation
Umherirrender [Fri, 11 Aug 2017 16:09:41 +0000 (18:09 +0200)]
Use correct variable name in @param documentation

For some varargs a variable name is added with suffix ,... as seen for
many other varargs

Some @param are swapped, because there are in the wrong order

Enable Sniff MediaWiki.Commenting.FunctionComment.ParamNameNoMatch

Change-Id: I60fec6025bce824d5c67563ab7b65ad6cd628ad8

6 years agoAdd missing & to @param documentation to match functon call
Umherirrender [Fri, 11 Aug 2017 00:23:16 +0000 (02:23 +0200)]
Add missing & to @param documentation to match functon call

Change-Id: I81e68310abcbc59964b22e0e74842d509f6b1fb9

6 years agoMerge "Make phpcs pass"
jenkins-bot [Fri, 11 Aug 2017 15:18:48 +0000 (15:18 +0000)]
Merge "Make phpcs pass"

6 years agoChange @inheritdoc to @inheritDoc
Umherirrender [Fri, 11 Aug 2017 14:49:52 +0000 (16:49 +0200)]
Change @inheritdoc to @inheritDoc

Only @inheritDoc works for the Sniff
MediaWiki.Commenting.FunctionComment

Change-Id: I91fc02cda6701d790e4334fc2bc47f230955545c

6 years agoMake phpcs pass
Umherirrender [Fri, 11 Aug 2017 14:22:42 +0000 (16:22 +0200)]
Make phpcs pass

Reenable MediaWiki.WhiteSpace.SpaceBeforeClassBrace.NoSpaceBeforeBrace,
because the mentioned bug is fixed

Bug: T172933
Change-Id: I1593bdba2295ebed401b921f2beabed69dba7638

6 years agoMerge "SpecialDoubleRedirects: Fix undefined '$result->namespace' notice"
jenkins-bot [Thu, 10 Aug 2017 22:45:40 +0000 (22:45 +0000)]
Merge "SpecialDoubleRedirects: Fix undefined '$result->namespace' notice"

6 years agoMerge "Create new table to be used for querying IP ranges."
jenkins-bot [Thu, 10 Aug 2017 21:45:54 +0000 (21:45 +0000)]
Merge "Create new table to be used for querying IP ranges."

6 years agoCreate new table to be used for querying IP ranges.
MusikAnimal [Wed, 9 Aug 2017 21:34:09 +0000 (17:34 -0400)]
Create new table to be used for querying IP ranges.

When revisions by logged out users are created, they will get copied
to this table. We can then JOIN it with revision when querying for
ranges at Special:Contributions.

DBA approval for this table can be found at T156318

Bug: T163562

Change-Id: I6593eb13701128faa782691a6b25ec01869c827d

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 10 Aug 2017 20:26:18 +0000 (22:26 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib722424a58bbb3d15c56c70ba29732f2be2d6669

6 years agoSpecialDoubleRedirects: Fix undefined '$result->namespace' notice
Timo Tijhof [Thu, 10 Aug 2017 20:26:08 +0000 (16:26 -0400)]
SpecialDoubleRedirects: Fix undefined '$result->namespace' notice

Follows-up 7be1a8c0bc4d29d.

$result is used for both the original and the on-demand deep
query (in case of cache). However this re-query can fail if the
page no longer exists.

This used to be accounted for by creating the Title object before
(possibly) trying to re-query, and also checked for with "if !$result",
which is only intended to happen if the re-query failed (the initial
value of $result comes from the main (cacheable) query, and always
exists.

Could be moved by moving the $titleA assignment back up, but that
doesn't address the confusion problem that led to this.

Fix it by using a separate variable names.

Bug: T173045
Change-Id: I0e9ae89a3772b33b916b506033bd334ade5f03fa

6 years agoMerge "Add new static function LanguageCode::replaceDeprecatedCodes"
jenkins-bot [Thu, 10 Aug 2017 20:04:34 +0000 (20:04 +0000)]
Merge "Add new static function LanguageCode::replaceDeprecatedCodes"

6 years agoMerge "Make it possible for subclasses to provide a different form"
jenkins-bot [Thu, 10 Aug 2017 19:49:41 +0000 (19:49 +0000)]
Merge "Make it possible for subclasses to provide a different form"

6 years agoAdd new static function LanguageCode::replaceDeprecatedCodes
Fomafix [Tue, 27 Jun 2017 14:25:01 +0000 (16:25 +0200)]
Add new static function LanguageCode::replaceDeprecatedCodes

Refactor the deprecatedLanguageCodeMapping to a private variable.

Change-Id: I5f8e601e53de183e6268c9ef601eef8390b725cd

6 years agoMerge "Rename autonym for 'no' from 'norsk bokmål' to 'norsk'"
jenkins-bot [Thu, 10 Aug 2017 19:21:27 +0000 (19:21 +0000)]
Merge "Rename autonym for 'no' from 'norsk bokmål' to 'norsk'"

6 years agoMerge "Document Special:Diff and Special:PermanentLink"
jenkins-bot [Thu, 10 Aug 2017 18:22:31 +0000 (18:22 +0000)]
Merge "Document Special:Diff and Special:PermanentLink"

6 years agoMerge "mediawiki.toc.print.css: Restore ID selector #toc"
jenkins-bot [Thu, 10 Aug 2017 18:12:54 +0000 (18:12 +0000)]
Merge "mediawiki.toc.print.css: Restore ID selector #toc"

6 years agoMerge "installer: Link to skin screenshots"
jenkins-bot [Thu, 10 Aug 2017 18:10:19 +0000 (18:10 +0000)]
Merge "installer: Link to skin screenshots"

6 years agoMerge "installer: Disable <div> wrapping of parsed content"
jenkins-bot [Thu, 10 Aug 2017 18:08:44 +0000 (18:08 +0000)]
Merge "installer: Disable <div> wrapping of parsed content"

6 years agoDocument Special:Diff and Special:PermanentLink
PiRSquared17 [Thu, 10 Aug 2017 16:33:30 +0000 (18:33 +0200)]
Document Special:Diff and Special:PermanentLink

If no revision is given to Special:Diff or PermaLink show a form
(cf. Special:ComparePages)
List these on Special:SpecialPages under "redirects".

Bug: 45221
Change-Id: I77edd4a1bbd342d4d18c27d5bc10dac76b8ab6c9

6 years agoMake it possible for subclasses to provide a different form
Sam Wilson [Thu, 10 Aug 2017 17:15:16 +0000 (13:15 -0400)]
Make it possible for subclasses to provide a different form

This makes it possible for subclasses of SpecialPreferences to
specify a different HtmlForm to use for the preferences' form.

Bug: T68869
Change-Id: I9d6bbc6383a3d5b5c6839394de49ce9ca81efec9

6 years agoinstaller: Link to skin screenshots
Kunal Mehta [Thu, 10 Aug 2017 17:14:13 +0000 (13:14 -0400)]
installer: Link to skin screenshots

Skins can now place *.png files in a "screenshots/" directory and the
installer will link to them. It assumes that the skin directory is in a
web accessible directory.

Bug: T70331
Co-Authored-By: Isarra <zhorishna@gmail.com>
Change-Id: I30a4374619ac2cb6afe6d8c0d9181dd6b14aae79

6 years agoMerge "Add page id to the API representation of pages in search results"
jenkins-bot [Thu, 10 Aug 2017 17:10:44 +0000 (17:10 +0000)]
Merge "Add page id to the API representation of pages in search results"

6 years agoMerge "PHPVersionCheck: Add 'fileinfo' extension"
jenkins-bot [Thu, 10 Aug 2017 17:09:55 +0000 (17:09 +0000)]
Merge "PHPVersionCheck: Add 'fileinfo' extension"

6 years agoinstaller: Disable <div> wrapping of parsed content
Kunal Mehta [Thu, 10 Aug 2017 17:05:00 +0000 (13:05 -0400)]
installer: Disable <div> wrapping of parsed content

The mw-parser-output wrapper breaks the visual layout of the installer,
causing the radio button or checkbox to be one line above the text that
describes it.

Change-Id: I0a7ec34d80d6372927fd89b7752bc08ab0395308

6 years agosanitizer: Match Parsoid's attribute sanitation
Arlo Breault [Fri, 4 Aug 2017 17:48:36 +0000 (13:48 -0400)]
sanitizer: Match Parsoid's attribute sanitation

Change-Id: I23323dced95c80eb24aa65df68dcbe5ecbad1c75

6 years agomediawiki.toc.print.css: Restore ID selector #toc
Fomafix [Thu, 10 Aug 2017 13:24:48 +0000 (15:24 +0200)]
mediawiki.toc.print.css: Restore ID selector #toc

The ID selector #toc is necessary to overwrite

 #toc {
    display: table;
 }

with a higher specificity.

This change partly reverts fbf939cdda and restores the functionality
from T2482.

Change-Id: I7134132979a832828cf9618218d489727fc2dbc3

6 years agoFix 'logName' parameter (5th) in many uses of mw.log.deprecate
Bartosz Dziewoński [Wed, 9 Aug 2017 22:10:34 +0000 (00:10 +0200)]
Fix 'logName' parameter (5th) in many uses of mw.log.deprecate

It's apparently supposed to contains the full name of the deprecated
property/function and apparently almost no one ever remembers it.

This fixes error messages like "Use of "wikiGetlink" is deprecated"
to instead read "Use of "mw.util.wikiGetlink" is deprecated", and
apparently improves some error logging detais.

Change-Id: I9b0d6761754e5844d51b71535e0547205eb20781

6 years agoMerge "Added a separate error message for mkdir failures"
jenkins-bot [Wed, 9 Aug 2017 23:24:12 +0000 (23:24 +0000)]
Merge "Added a separate error message for mkdir failures"

6 years agomw.util: Add a deprecation message to escapeId()
Bartosz Dziewoński [Wed, 9 Aug 2017 19:07:10 +0000 (21:07 +0200)]
mw.util: Add a deprecation message to escapeId()

Bug: T172493
Change-Id: Ie1468a4c1b56ca79b5f978a8bba80e98d8871f51

6 years agoAdd page id to the API representation of pages in search results
Mako Bates [Wed, 9 Aug 2017 21:54:44 +0000 (21:54 +0000)]
Add page id to the API representation of pages in search results

'pageid' is now an always-on property returned by API:Search.
Change made in ApiQuerySearch.php::getSearchResultData().

Bug: T172700
Change-Id: I9d856efdd1d72c70bf9fb72c82b1f276abef8b16

6 years agoMerge "OutputPage: Support HTML5 elements in older browsers using html5shiv"
jenkins-bot [Wed, 9 Aug 2017 21:19:00 +0000 (21:19 +0000)]
Merge "OutputPage: Support HTML5 elements in older browsers using html5shiv"

6 years agoMerge "Fix minor issues found with phan"
jenkins-bot [Wed, 9 Aug 2017 21:06:57 +0000 (21:06 +0000)]
Merge "Fix minor issues found with phan"

6 years agoMerge "Live Preview: Cope with the edit summary being an OOjs UI widget"
jenkins-bot [Wed, 9 Aug 2017 20:55:58 +0000 (20:55 +0000)]
Merge "Live Preview: Cope with the edit summary being an OOjs UI widget"

6 years agoFix minor issues found with phan
WMDE-Fisch [Mon, 7 Aug 2017 14:55:20 +0000 (16:55 +0200)]
Fix minor issues found with phan

- fixed PHPDoc
- replaced deprecated function

Bug: T153252
Change-Id: I072a1c1201bd19eafe7c50bbbf32a71fa4a92a46

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 9 Aug 2017 19:56:18 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I3739aeab3e581196211409b1e155944ec52dc04d

6 years agoLive Preview: Cope with the edit summary being an OOjs UI widget
James D. Forrester [Thu, 20 Jul 2017 15:18:26 +0000 (08:18 -0700)]
Live Preview: Cope with the edit summary being an OOjs UI widget

Bug: T171156
Change-Id: Idb9118421ffbd438dd7b018a8dbf8bb991036232

6 years agoPHPVersionCheck: Add 'fileinfo' extension
Bartosz Dziewoński [Wed, 9 Aug 2017 18:54:01 +0000 (20:54 +0200)]
PHPVersionCheck: Add 'fileinfo' extension

We call mime_content_type() in a couple of important places with no
fallback.

Bug: T172643
Change-Id: I83db8b078f8f42d02fe6024ec9895da0688f1c91

6 years agoComposer fix changes
Margaret Epps [Wed, 9 Aug 2017 18:50:47 +0000 (14:50 -0400)]
Composer fix changes

Bug: T172933
Change-Id: I6e4688dcf08c4a98ebc71b2940772dfc20a5c139

6 years agoMerge "FileRepo: create output buffer and set ob_implicit_flush for file streaming"
jenkins-bot [Wed, 9 Aug 2017 18:15:43 +0000 (18:15 +0000)]
Merge "FileRepo: create output buffer and set ob_implicit_flush for file streaming"

6 years agoMerge "Make sure that mw-ui checkboxes have pointer cursor"
jenkins-bot [Wed, 9 Aug 2017 17:19:14 +0000 (17:19 +0000)]
Merge "Make sure that mw-ui checkboxes have pointer cursor"

6 years agoFixing styling of interwiki results header
Jan Drewniak [Wed, 9 Aug 2017 17:16:00 +0000 (19:16 +0200)]
Fixing styling of interwiki results header

Bug: T172345
Change-Id: Id95e5b5176e98dd6e4c2dd2c127974aaae7d69ce

6 years agoMake sure that mw-ui checkboxes have pointer cursor
Derk-Jan Hartman [Wed, 9 Aug 2017 16:15:30 +0000 (12:15 -0400)]
Make sure that mw-ui checkboxes have pointer cursor

Bug: T145493
Change-Id: I7700ee57969fa34b569bc1349156460f7248a9e6

6 years agoMerge "MimeAnalyzer: Add testcases for mp3 detection"
jenkins-bot [Wed, 9 Aug 2017 16:36:22 +0000 (16:36 +0000)]
Merge "MimeAnalyzer: Add testcases for mp3 detection"

6 years agoMerge "mediawiki.skinning: Add magnify links to Parsoid output"
jenkins-bot [Wed, 9 Aug 2017 16:29:44 +0000 (16:29 +0000)]
Merge "mediawiki.skinning: Add magnify links to Parsoid output"

6 years agoMerge "mediawiki.skinning: Show border-bottom when figcaption is absent on Parsoid"
jenkins-bot [Wed, 9 Aug 2017 16:25:51 +0000 (16:25 +0000)]
Merge "mediawiki.skinning: Show border-bottom when figcaption is absent on Parsoid"

6 years agoMerge "Align contentSub to WikimediaUI color palette"
jenkins-bot [Wed, 9 Aug 2017 15:42:38 +0000 (15:42 +0000)]
Merge "Align contentSub to WikimediaUI color palette"

6 years agooojs-ui-local.css: Remove old browser fallback for rem
Roan Kattouw [Wed, 9 Aug 2017 15:15:45 +0000 (11:15 -0400)]
oojs-ui-local.css: Remove old browser fallback for rem

rem is supported by all Grade A browsers, and WindowManager
styling is only relevant in those browsers (since other browsers
don't execute JS).

Change-Id: Ic8995b3fc74a395918288cec013c8787c6974f58

6 years agoMerge "mediawiki.ui: Use WikimediaUI color for `@colorTextLight`"
jenkins-bot [Wed, 9 Aug 2017 10:29:05 +0000 (10:29 +0000)]
Merge "mediawiki.ui: Use WikimediaUI color for `@colorTextLight`"

6 years agoFileRepo: create output buffer and set ob_implicit_flush for file streaming
Zhuyifei1999 [Wed, 9 Aug 2017 09:51:41 +0000 (09:51 +0000)]
FileRepo: create output buffer and set ob_implicit_flush for file streaming

HHVM does not flush automatically until the output is done, unless
flush() is called. We create an output buffer so that PHP is aware
of the amount of data in the output buffer; we set ob_implicit_flush
so that, when output buffer is full and being flushed, it flushes
HHVM's buffer as well, emptying the OOM culprit.

Bug: T172851
Change-Id: I34dd1034590779ab51f197762177ad03291e3581

6 years agoMerge "jobqueue: Add job_type to PSR logging context"
jenkins-bot [Wed, 9 Aug 2017 00:07:03 +0000 (00:07 +0000)]
Merge "jobqueue: Add job_type to PSR logging context"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 8 Aug 2017 19:54:22 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I967912e9c2d7fa6423e504531d655dc3057a86af

6 years agojobqueue: Add job_type to PSR logging context
Antoine Musso [Fri, 30 Sep 2016 21:34:33 +0000 (23:34 +0200)]
jobqueue: Add job_type to PSR logging context

The mediawiki.runJobs errors are collected in Logstash but the whole job
description and errors are a single field message. That is challenging
to split logs per job type, get the longest running jobs ...

That can be worked around on the log receiving side by parsing
MediaWiki messages eg https://gerrit.wikimedia.org/r/#/c/312504/

Bryan Davis suggested a better long term solution is to use the PSR3
logger with structured log messages.

Culprit: 'type' is a reverved word. Hence prefix all context variables
with 'job_'.

Bug: T146469
Change-Id: Ib6a771c7d3f83bd75b2994bfab9bbebfd1f5aa6c

6 years agoMerge "Show protection log on creation-protected pages"
jenkins-bot [Mon, 7 Aug 2017 22:12:44 +0000 (22:12 +0000)]
Merge "Show protection log on creation-protected pages"

6 years agoOutputPage: Support HTML5 elements in older browsers using html5shiv
Arlo Breault [Thu, 3 Aug 2017 15:35:10 +0000 (11:35 -0400)]
OutputPage: Support HTML5 elements in older browsers using html5shiv

Bug: T122965
Change-Id: Ic11ca687a5459b2dc5d942cf1dc784daa0ddc2f3

6 years agoShow protection log on creation-protected pages
Étienne Beaulé [Sat, 22 Jul 2017 16:46:36 +0000 (13:46 -0300)]
Show protection log on creation-protected pages

This change would add the message 'titleprotectedwarning'
to pages that have been protected against creation, just
like how deleted pages have their log visible beforere-creation.
It is visible to everyone, whether or not they are allowed to
recreate the page.

Bug: T171338
Change-Id: I5acf1bee9cea056b20b77fd386bc9df65033cded

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 7 Aug 2017 19:53:51 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I67dc3e23a15b91c2eb6594570aacd6bb6755cbc6

6 years agoMerge "Fix some PHPDoc type hints in DatabaseMysqli"
jenkins-bot [Mon, 7 Aug 2017 18:53:26 +0000 (18:53 +0000)]
Merge "Fix some PHPDoc type hints in DatabaseMysqli"

6 years agoMerge "resourceloader: Add support for modules sending preload headers"
jenkins-bot [Mon, 7 Aug 2017 16:33:02 +0000 (16:33 +0000)]
Merge "resourceloader: Add support for modules sending preload headers"

6 years agomediawiki.ui: Use WikimediaUI color for `@colorTextLight`
Volker E [Mon, 7 Aug 2017 15:28:24 +0000 (17:28 +0200)]
mediawiki.ui: Use WikimediaUI color for `@colorTextLight`

Making use of slightly higher contrast `#54595d` WikimediaUI base
color for `@colorTextLight` instead of `#666` to address minor
accessibility concerns and consolidate colors further.
`@colorTextLight` is currently used mainly in Flow and in one instance –
`.mixin-mw-ui-anchor-styles-quiet()` in mediawiki.ui.
Both are only impacted positively from exemplatory visual diff testing.

Bug: T149768
Bug: T152025
Change-Id: I40a4b2600772c9ca874361f17480f6b46b140823

6 years agoMerge "Split ConfiguredReadOnlyMode into own file"
jenkins-bot [Mon, 7 Aug 2017 11:00:47 +0000 (11:00 +0000)]
Merge "Split ConfiguredReadOnlyMode into own file"

6 years agoMerge "Make Block.php protected members private"
jenkins-bot [Mon, 7 Aug 2017 10:59:54 +0000 (10:59 +0000)]
Merge "Make Block.php protected members private"

6 years agoMerge "Add @since tag to TrackingCategories class"
jenkins-bot [Mon, 7 Aug 2017 10:59:14 +0000 (10:59 +0000)]
Merge "Add @since tag to TrackingCategories class"

6 years agoMerge "Use HTML::hidden to create input fields"
jenkins-bot [Mon, 7 Aug 2017 10:07:07 +0000 (10:07 +0000)]
Merge "Use HTML::hidden to create input fields"

6 years agoMake Block.php protected members private
addshore [Fri, 4 Aug 2017 14:57:27 +0000 (15:57 +0100)]
Make Block.php protected members private

Change-Id: I236b4d4ab124155fcf9d92393139470312361e04

6 years agoSplit ConfiguredReadOnlyMode into own file
addshore [Fri, 4 Aug 2017 15:03:20 +0000 (16:03 +0100)]
Split ConfiguredReadOnlyMode into own file

Change-Id: I7c12a571bb5ce76c132a738b48b2b82d763a8860

6 years agoAdd @since tag to TrackingCategories class
addshore [Fri, 4 Aug 2017 15:05:26 +0000 (16:05 +0100)]
Add @since tag to TrackingCategories class

Change-Id: I30f5004db3d53a87fc7c442675140b7f33fded08

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 6 Aug 2017 19:57:21 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id226baddee0b5f5737c1555995da1aa8527558b2

6 years agoAlign contentSub to WikimediaUI color palette
Volker E [Sun, 6 Aug 2017 18:55:19 +0000 (20:55 +0200)]
Align contentSub to WikimediaUI color palette

While the other base grey values already have been changed already,
`#contentSub` &`#contentSub2` color remained so far.
Changing over to Base20 color of Wikimedia color palette, only
minimal difference.

Change-Id: Ib5e4e540f8878f08602119382f25bb7a8fb2c1e6

6 years agoMerge "Fix and make some types in PHPDoc and JSDoc tags more specific"
jenkins-bot [Sat, 5 Aug 2017 22:07:59 +0000 (22:07 +0000)]
Merge "Fix and make some types in PHPDoc and JSDoc tags more specific"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 5 Aug 2017 19:57:31 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iaf71189ac54c3c2d01e67375f2430f22c643b8c9