Remove the forced left-align in enhanced recentchanges; this screws up display for...
[lhc/web/wiklou.git] / includes / Skin.php
index 2230d66..26205f2 100644 (file)
@@ -1757,7 +1757,7 @@ class Skin {
                
                # Spacer image
                $r = "" ;
-               $r .= "<img src='{$wgUploadPath}/Arr_.png' width=12 height=12 border=0>" ;              $r .= "<tt>" ;
+               $r .= "<img src='{$wgUploadPath}/Arr_.png' width='12' height='12' border='0'>" ;                $r .= "<tt>" ;
                
                if ( $rc_type == RC_MOVE ) {
                        $r .= "&nbsp;&nbsp;";
@@ -1843,8 +1843,9 @@ class Skin {
                $rcl = "RCL{$this->rcCacheIndex}" ;
                $rcm = "RCM{$this->rcCacheIndex}" ;
                $tl = "<a href='javascript:toggleVisibility(\"{$rci}\",\"{$rcm}\",\"{$rcl}\")'>" ;
-               $tl .= "<span id='{$rcm}'><img src='{$wgUploadPath}/Arr_r.png' width=12 height=12 border=0></span>" ;
-               $tl .= "<span id='{$rcl}' style='display:none'><img src='{$wgUploadPath}/Arr_d.png' width=12 height=12 border=0></span>" ;
+               $arrowdir = $wgLang->isRTL() ? "l" : "r";
+               $tl .= "<span id='{$rcm}'><img src='{$wgUploadPath}/Arr_{$arrowdir}.png' width='12' height='12' border='0'></span>" ;
+               $tl .= "<span id='{$rcl}' style='display:none'><img src='{$wgUploadPath}/Arr_d.png' width='12' height='12' border='0'></span>" ;
                $tl .= "</a>" ;
                $r .= $tl ;
 
@@ -1939,7 +1940,7 @@ class Skin {
                        }
                }
 
-               return "<div align=left>{$blockOut}</div>" ;
+               return "<div>{$blockOut}</div>" ;
        }
 
        # Called in a loop over all displayed RC entries