SpecialContributions: Fix capitalization of DateInputWidget class
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 23 Jun 2017 19:13:02 +0000 (12:13 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Fri, 23 Jun 2017 19:13:02 +0000 (12:13 -0700)
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

index e2fa8a3..40706ac 100644 (file)
@@ -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,
                        ] ) . '<br>' .
                        Xml::label( wfMessage( 'date-range-to' )->text(), 'mw-date-end' ) . ' ' .
-                       new \Mediawiki\Widget\DateInputWidget( [
+                       new DateInputWidget( [
                                'infusable' => true,
                                'id' => 'mw-date-end',
                                'name' => 'end',