Added ns-{{ns:}} class to body (example: ns-0 for the main ns) to allow users/skins...
[lhc/web/wiklou.git] / includes / SkinPHPTal.php
index bf39da2..77f5558 100644 (file)
                        $tpl->set( 'headlinks', $out->getHeadLinks() );
                        $tpl->setRef( 'skinname', &$this->skinname );
                        $tpl->setRef( "loggedin", &$this->loggedin );
+                       $tpl->set('nsclass', 'ns-'.$wgTitle->getNamespace());
                        /* XXX currently unused, might get useful later
                        $tpl->set( "editable", ($wgTitle->getNamespace() != NS_SPECIAL ) );
                        $tpl->set( "exists", $wgTitle->getArticleID() != 0 );