X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=0d4274c64adf087ebf6fc0527009a374a573b69b;hb=30c895bee78befef50a6b99a585b5cec52cc0ede;hp=62bfbe8fb1628e92aeb3bf7ea718a755f151f83c;hpb=35fa92e83c0ac722a75072cf86aa6d529554ca31;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 62bfbe8..0d4274c 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -1,6 +1,6 @@ bootstrap(array('NbIns'), 'update_NbIns'); +$globals->bootstrap(array('NbValid'), 'update_NbValid'); // {{{ class XorgPage @@ -39,9 +40,9 @@ class XorgPage extends PlatalPage global $globals, $platal; $this->assign('globals', $globals); if (isset($platal) && $platal->path == 'register') { - $skin = 'register.tpl'; + $skin = $globals->register_skin . ".tpl"; } else { - $skin = S::v('skin', 'default.tpl'); + $skin = S::v('skin', $globals->skin . ".tpl"); } $this->_run('skin/' . $skin); } @@ -59,5 +60,7 @@ function new_skinned_page($tpl_name) } } +XorgSession::init(); + // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>