From: Brion Vibber Date: Sat, 13 Mar 2004 08:53:16 +0000 (+0000) Subject: Remove the forced left-align in enhanced recentchanges; this screws up display for... X-Git-Tag: 1.3.0beta1~813 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=536917e0c998c903c098c671f77f78aaa148e492;p=lhc%2Fweb%2Fwiklou.git Remove the forced left-align in enhanced recentchanges; this screws up display for RTL languages. Added left-pointing Arr_l.png arrow for use in same. --- diff --git a/images/Arr_l.png b/images/Arr_l.png new file mode 100644 index 0000000000..9db66232e3 Binary files /dev/null and b/images/Arr_l.png differ diff --git a/includes/Skin.php b/includes/Skin.php index 2230d663a8..26205f268b 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1757,7 +1757,7 @@ class Skin { # Spacer image $r = "" ; - $r .= "" ; $r .= "" ; + $r .= "" ; $r .= "" ; if ( $rc_type == RC_MOVE ) { $r .= "  "; @@ -1843,8 +1843,9 @@ class Skin { $rcl = "RCL{$this->rcCacheIndex}" ; $rcm = "RCM{$this->rcCacheIndex}" ; $tl = "" ; - $tl .= "" ; - $tl .= "" ; + $arrowdir = $wgLang->isRTL() ? "l" : "r"; + $tl .= "" ; + $tl .= "" ; $tl .= "" ; $r .= $tl ; @@ -1939,7 +1940,7 @@ class Skin { } } - return "
{$blockOut}
" ; + return "
{$blockOut}
" ; } # Called in a loop over all displayed RC entries diff --git a/install.php b/install.php index 3d9ebad57e..dab4143ff5 100644 --- a/install.php +++ b/install.php @@ -80,6 +80,7 @@ copyfile( "./images", "magnify-clip.png", $wgUploadDirectory ); copyfile( "./images", "Arr_.png", $wgUploadDirectory ); copyfile( "./images", "Arr_r.png", $wgUploadDirectory ); copyfile( "./images", "Arr_d.png", $wgUploadDirectory ); +copyfile( "./images", "Arr_l.png", $wgUploadDirectory ); copyfile( "./languages", "Language.php", $IP ); copyfile( "./languages", "LanguageUtf8.php", $IP ); diff --git a/update.php b/update.php index 98c965b810..fb954f4b8e 100644 --- a/update.php +++ b/update.php @@ -107,6 +107,7 @@ function do_update_files() { copyfile( "./images", "Arr_.png", $wgUploadDirectory ); copyfile( "./images", "Arr_r.png", $wgUploadDirectory ); copyfile( "./images", "Arr_d.png", $wgUploadDirectory ); + copyfile( "./images", "Arr_l.png", $wgUploadDirectory ); copyfile( "./languages", "Language.php", $IP ); copyfile( "./languages", "LanguageUtf8.php", $IP );