UTF-8 fixes
[platal.git] / include / xorg.inc.php
index 97c8a03..207f137 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -36,16 +36,21 @@ class XorgPage extends PlatalPage
 
     function run()
     {
-        global $globals;
+        global $globals, $platal;
         $this->assign('globals', $globals);
-        $this->_run('skin/'.S::v('skin', 'default.tpl'));
+        if (isset($platal) && $platal->path == 'register') {
+            $skin = 'register.tpl';
+        } else {
+            $skin = S::v('skin', 'default.tpl');
+        }
+        $this->_run('skin/' . $skin);
     }
 }
 
 // }}}
 // {{{ class XorgAdmin
 
-/** Une classe pour les pages réservées aux admins (authentifiés!).
+/** Une classe pour les pages rÃ\83©servÃ\83©es aux admins (authentifiÃ\83©s!).
  */
 class XorgAdmin extends XorgPage
 {
@@ -91,5 +96,5 @@ function new_admin_page($tpl_name)
 
 // }}}
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>