X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialContributions.php;h=38456493140b3e2fcdfa92f9bb09f154d8594e95;hb=4d25eb68a57363dcb9e9be981d497cccf50a8c0b;hp=e2fa8a3001ff62fe954a8c1192678af878b2e2ee;hpb=178bada116bc5aa336191f4867fec5cae2258cd6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index e2fa8a3001..3845649314 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -21,6 +21,8 @@ * @ingroup SpecialPage */ +use MediaWiki\Widget\DateInputWidget; + /** * Special:Contributions, show user contributions in a paged list * @@ -327,7 +329,6 @@ class SpecialContributions extends IncludableSpecialPage { * @return array */ public static function getUserLinks( SpecialPage $sp, User $target ) { - $id = $target->getId(); $username = $target->getName(); $userpage = $target->getUserPage(); @@ -665,7 +666,7 @@ class SpecialContributions extends IncludableSpecialPage { 'div', [], Xml::label( wfMessage( 'date-range-from' )->text(), 'mw-date-start' ) . ' ' . - new \Mediawiki\Widget\DateInputWidget( [ + new DateInputWidget( [ 'infusable' => true, 'id' => 'mw-date-start', 'name' => 'start', @@ -673,7 +674,7 @@ class SpecialContributions extends IncludableSpecialPage { 'longDisplayFormat' => true, ] ) . '
' . Xml::label( wfMessage( 'date-range-to' )->text(), 'mw-date-end' ) . ' ' . - new \Mediawiki\Widget\DateInputWidget( [ + new DateInputWidget( [ 'infusable' => true, 'id' => 'mw-date-end', 'name' => 'end',