From f952b4ec9b47592ac969e1fb75af28832fcf7c54 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 30 Jan 2004 22:25:01 +0000 Subject: [PATCH] Poking at TOC a bit for RTL friendliness --- includes/Skin.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 3cd3445f65..d70c54eb1d 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2182,16 +2182,21 @@ class Skin { function tocTable($toc) { // note to CSS fanatics: putting this in a div does not work -- div won't auto-expand - global $printable; + global $printable, $wgLang; if (!$printable) { $hideline = " "; } + if( $wgLang->isRTL() ) { + $rtl = ' dir="rtl"'; + } else { + $rtl = ""; + } return - "

\n". + "

\n". "".wfMsg("toc")."" . $hideline . - "
\n". + "
\n". $toc."

\n"; } -- 2.20.1