From d23f73c920377cbcf4ace13c0c629496b394aa72 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 23 Jun 2017 12:13:02 -0700 Subject: [PATCH] SpecialContributions: Fix capitalization of DateInputWidget class The namespace was improperly capitalized, move it to a "use" statement while we're at it so it's only included once. Noticed by the logging added for T166759. Change-Id: I3fe6533a0f06dcbc37017361679dad9e77808830 --- includes/specials/SpecialContributions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index e2fa8a3001..40706aceed 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 * @@ -665,7 +667,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 +675,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', -- 2.20.1