moved rtl stylesheet to separate style section again, after all other styles to be...
[lhc/web/wiklou.git] / includes / SkinPHPTal.php
index 53420d9..76225b6 100644 (file)
@@ -62,7 +62,7 @@
 
                function outputPage( &$out ) {
                        global $wgTitle, $wgArticle, $wgUser, $wgLang, $wgOut;
-                       global $wgScript, $wgStyleSheetPath, $wgLanguageCode, $wgUseNewInterlanguage;
+                       global $wgScript, $wgStylePath, $wgLanguageCode, $wgUseNewInterlanguage;
                        global $wgMimeType, $wgOutputEncoding, $wgUseDatabaseMessages, $wgRequest;
                        global $wgDisableCounters, $wgLogo, $action, $wgFeedClasses;
                        
                        $tpl->set( "sysop", $wgUser->isSysop() );
                        */
                        $tpl->set( "searchaction", $this->escapeSearchLink() );
-                       $tpl->setRef( "stylepath", &$wgStyleSheetPath );
+                       $tpl->setRef( "stylepath", &$wgStylePath );
                        $tpl->setRef( "logopath", &$wgLogo );
                        $tpl->setRef( "lang", &$wgLanguageCode );
+                       $tpl->set( "dir", $wgLang->isRTL() ? "rtl" : "ltr" );
+                       $tpl->set( "rtl", $wgLang->isRTL() );
                        $tpl->set( "langname", $wgLang->getLanguageName( $wgLanguageCode ) );
                        $tpl->setRef( "username", &$this->username );
                        $tpl->setRef( "userpage", &$this->userpage);
                                        );
                                } else {
                                        $content_actions['talk'] = array(
-                                               'class' => $talk_class.' new',
+                                               'class' => $talk_class?$talk_class.' new':'new',
                                                'text' => wfMsg('talk'),
                                                'href' => $this->makeTalkUrl($this->titletxt,'action=edit'),
                                                'ttip' => wfMsg('tooltip-talk'),