From: jenkins-bot Date: Thu, 15 Jun 2017 17:28:35 +0000 (+0000) Subject: Merge "Add media type based filtering to Special:NewFiles" X-Git-Tag: 1.31.0-rc.0~2966 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=9e0dda42fec9bfe1b4708d696557325f1dedd771;p=lhc%2Fweb%2Fwiklou.git Merge "Add media type based filtering to Special:NewFiles" --- 9e0dda42fec9bfe1b4708d696557325f1dedd771 diff --cc includes/specials/SpecialNewimages.php index f7d76a72c8,20f507ff2c..8528ce26c8 --- a/includes/specials/SpecialNewimages.php +++ b/includes/specials/SpecialNewimages.php @@@ -32,8 -35,11 +35,10 @@@ class SpecialNewFiles extends Includabl public function execute( $par ) { $this->setHeaders(); $this->outputHeader(); + $mimeAnalyzer = MediaWiki\MediaWikiServices::getInstance()->getMimeAnalyzer(); + $this->mediaTypes = $mimeAnalyzer->getMediaTypes(); $out = $this->getOutput(); - $out->addModules( 'mediawiki.special.newFiles' ); $this->addHelpLink( 'Help:New images' ); $opts = new FormOptions(); @@@ -41,8 -47,8 +46,9 @@@ $opts->add( 'like', '' ); $opts->add( 'user', '' ); $opts->add( 'showbots', false ); + $opts->add( 'newbies', false ); $opts->add( 'hidepatrolled', false ); + $opts->add( 'mediatype', $this->mediaTypes ); $opts->add( 'limit', 50 ); $opts->add( 'offset', '' ); $opts->add( 'start', '' ); diff --cc languages/i18n/en.json index e9fb9894ce,a8d90d16a2..a3c310cd6f --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@@ -3029,9 -3042,9 +3029,10 @@@ "newimages-legend": "Filter", "newimages-label": "Filename (or a part of it):", "newimages-user": "IP address or username", + "newimages-newbies": "Show contributions of new accounts only", "newimages-showbots": "Show uploads by bots", "newimages-hidepatrolled": "Hide patrolled uploads", + "newimages-mediatype": "Media type:", "noimages": "Nothing to see.", "gallery-slideshow-toggle": "Toggle thumbnails", "ilsubmit": "Search", diff --cc languages/i18n/qqq.json index fc8a04aafa,1498f99411..c843a6dc7b --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@@ -3219,9 -3232,9 +3219,10 @@@ "newimages-legend": "Caption of the fieldset for the filter on [[Special:NewImages]]\n\n{{Identical|Filter}}", "newimages-label": "Caption of the filter editbox on [[Special:NewImages]]", "newimages-user": "Caption of the username/IP address editbox on [[Special:NewImages]]", + "newimages-newbies": "Used as label for a checkbox. When checked, [[Special:NewImages]] will only display uploads by new users.", "newimages-showbots": "Used as label for a checkbox. When checked, [[Special:NewImages]] will also display uploads by users in the bots group.", "newimages-hidepatrolled": "Used as label for a checkbox. When checked, [[Special:NewImages]] will not display patrolled uploads.\n\nCf. {{msg-mw|tog-hidepatrolled}} and {{msg-mw|apihelp-feedrecentchanges-param-hidepatrolled}}.", + "newimages-mediatype": "Used as label for a multiselect where users can select the media types to display.", "noimages": "This is shown on the special page [[Special:NewImages]], when there aren't any recently uploaded files.", "gallery-slideshow-toggle": "Tooltip for the icon that toggles thumbnails on a slideshow gallery.", "ilsubmit": "Search button in [[Special:MIMESearch]].\n\nStrings on the page:\n* {{msg-mw|Mimesearch|page title, legend of input form, link in special pages}}\n* {{msg-mw|Mimesearch-summary|page summary}}\n* {{msg-mw|Mimetype|label for input box}}\n* {{msg-mw|Ilsubmit|search button}}\n\nCheck [[mw:Manual:MIME_type_detection]] for MIME types.\n\n{{Identical|Search}}",