From: Kunal Mehta Date: Fri, 23 Jun 2017 19:13:02 +0000 (-0700) Subject: SpecialContributions: Fix capitalization of DateInputWidget class X-Git-Tag: 1.31.0-rc.0~2909 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=d23f73c920377cbcf4ace13c0c629496b394aa72;p=lhc%2Fweb%2Fwiklou.git 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 --- 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',