SpecialContributions: Fix whitespace in tagfilter
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Sun, 6 Dec 2015 01:30:30 +0000 (02:30 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 6 Dec 2015 15:25:46 +0000 (15:25 +0000)
Removing the first element of an array, and using it as a label, doesn't make
much sense, if the array will be imploded using a whitespace to add a whitespace
between both array parts.

Instead of writing:
Tag filter:<input>

this will result in the expected output:
Tag filter: <input>

Change-Id: Ifc9de7cc6ab380fcff435fcd0410963e72ef6203

includes/specials/SpecialContributions.php

index 71d2b23..b1908c2 100644 (file)
@@ -482,7 +482,7 @@ class SpecialContributions extends IncludableSpecialPage {
                        $filterSelection = Html::rawElement(
                                'td',
                                array(),
-                               array_shift( $tagFilter ) . implode( '&#160', $tagFilter )
+                               implode( '&#160', $tagFilter )
                        );
                } else {
                        $filterSelection = Html::rawElement( 'td', array( 'colspan' => 2 ), '' );