X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=skins%2FVector.php;h=d5910e251e6f6ed3f6dd2b08f7bf78e230683ecb;hb=408bea0a9087c461abec570dc88929b7899365fe;hp=7f93e1f26c565748a14a6a4db908b25c2dd78188;hpb=4a71b9a8106b1ba04c84435f8993f19d175e51b6;p=lhc%2Fweb%2Fwiklou.git diff --git a/skins/Vector.php b/skins/Vector.php index 7f93e1f26c..d5910e251e 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -35,8 +35,13 @@ class SkinVector extends SkinTemplate { * @param object $out Output page to add styles to */ public function setupSkinUserCss( OutputPage $out ) { + global $wgContLang; // Append to the default screen common & print styles... - $out->addStyle( 'vector/main.css', 'screen' ); + if ( $wgContLang->isRTL() ) { + $out->addStyle( 'vector/main-rtl.css', 'screen' ); + } else { + $out->addStyle( 'vector/main-ltr.css', 'screen' ); + } // Add common styles parent::setupSkinUserCss( $out ); } @@ -80,7 +85,7 @@ class SkinVector extends SkinTemplate { } $talkId = "{$subjectId}_talk"; $currentId = $isTalk ? $talkId : $subjectId; - + // Adds namespace links $links['namespaces'][$subjectId] = $this->tabAction( $subjectPage, 'vector-namespace-' . $subjectId, !$isTalk, '', true @@ -287,7 +292,10 @@ class SkinVector extends SkinTemplate { ); } } - + + // This is instead of SkinTemplateTabs - which uses a flat array + wfRunHooks( 'SkinTemplateNavigation', array( &$this, &$links ) ); + // If it's not content, it's got to be a special page } else { $links['namespaces']['special'] = array(