X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fxorg.inc.php;h=97c8a037e175e75f9624925d2cb33ae6bbf4f66b;hb=1a013db76335dc18f2b756bd5aca57401d384026;hp=52cd8290da147514c0bd0741abb816b473b94427;hpb=5e2307dcebc38ebb0ffe469967a377eb3baed571;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 52cd829..97c8a03 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -20,14 +20,11 @@ ***************************************************************************/ require_once('platal.inc.php'); -require_once('xorg/globals.inc.php'); +require_once('globals.inc.php'); require_once('xorg/session.inc.php'); -XorgGlobals::init(); -XorgGlobals::setlocale(); +$globals = new PlatalGlobals('XorgSession'); XorgSession::init(); -require_once dirname(__FILE__).'/../classes/Page.php'; - // {{{ class XorgPage class XorgPage extends PlatalPage @@ -93,17 +90,6 @@ function new_admin_page($tpl_name) } // }}} -// {{{ function new_admin_table_editor() - -function new_admin_table_editor($table, $idfield, $idedit=false) -{ - global $editor; - new_admin_page('table-editor.tpl'); - require_once('xorg.table-editor.inc.php'); - $editor = new XOrgAdminTableEditor($table, $idfield, $idedit); -} - -// }}} // vim:set et sw=4 sts=4 sws=4 foldmethod=marker: ?>