From 536917e0c998c903c098c671f77f78aaa148e492 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 13 Mar 2004 08:53:16 +0000 Subject: [PATCH] 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. --- images/Arr_l.png | Bin 0 -> 263 bytes includes/Skin.php | 9 +++++---- install.php | 1 + update.php | 1 + 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 images/Arr_l.png diff --git a/images/Arr_l.png b/images/Arr_l.png new file mode 100644 index 0000000000000000000000000000000000000000..9db66232e34cbe6ca3cc38d7a78abe7eac933b54 GIT binary patch literal 263 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$3?vg*uel1OYyx~jTpcwobgq1S;qDjpn0;zd zySz${C?5>xCa=AKBPc?_PeelF{r5}E+}^-|#g literal 0 HcmV?d00001 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 ); -- 2.20.1