Fix r91685: add space at the right place.
authorRobin Pepermans <robin@users.mediawiki.org>
Thu, 7 Jul 2011 21:07:51 +0000 (21:07 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Thu, 7 Jul 2011 21:07:51 +0000 (21:07 +0000)
(Also removing unused variable in protectedtitles.)

includes/GlobalFunctions.php
includes/specials/SpecialProtectedtitles.php

index bba1ac0..63b621f 100644 (file)
@@ -2516,7 +2516,7 @@ function wfSpecialList( $page, $details, $oppositedm = true ) {
        global $wgLang;
        $dirmark = ( $oppositedm ? $wgLang->getDirMark( true ) : '' ) .
                $wgLang->getDirMark();
-       $details = $details ? ' ' . $dirmark . "($details)" : '';
+       $details = $details ? $dirmark . " ($details)" : '';
        return $page . $details;
 }
 
index d75b9c8..dfe356e 100644 (file)
@@ -92,8 +92,6 @@ class SpecialProtectedtitles extends SpecialPage {
 
                $description_items[] = $protType;
 
-               $stxt = '';
-
                if ( $row->pt_expiry != 'infinity' && strlen($row->pt_expiry) ) {
                        $expiry = $wgLang->formatExpiry( $row->pt_expiry );
 
@@ -104,7 +102,7 @@ class SpecialProtectedtitles extends SpecialPage {
 
                wfProfileOut( __METHOD__ );
 
-               return '<li>' . wfSpecialList( $link . $stxt, implode( $description_items, ', ' ) ) . "</li>\n";
+               return '<li>' . wfSpecialList( $link, implode( $description_items, ', ' ) ) . "</li>\n";
        }
 
        /**