petit pb à cause de la boite de login, lorsqu'on veut se connecter à une page dans...
authorx2000habouzit <x2000habouzit>
Sat, 7 Feb 2004 14:22:41 +0000 (14:22 +0000)
committerx2000habouzit <x2000habouzit>
Sat, 7 Feb 2004 14:22:41 +0000 (14:22 +0000)
include/auto.prepend.inc.php
include/xorg.page.inc.php

index 785714a..2a0cab5 100644 (file)
@@ -5,7 +5,7 @@ setlocale(LC_TIME, "fr_FR");
 require("xorg.common.inc.php");
 
 function _new_page($type, $tpl_name, $tpl_head, $min_auth, $popup=false, $admin=false) {
-    global $page,$globals;
+    global $page;
     require("xorg.page.inc.php");
     if(!empty($admin)) {
         $page = new XorgAdmin($tpl_name, $type);
@@ -20,20 +20,10 @@ function _new_page($type, $tpl_name, $tpl_head, $min_auth, $popup=false, $admin=
             $page = new XorgAuth($tpl_name, $type);
     }
 
-    $page->template_dir = $globals->spoolroot . "/templates/";
-    $page->compile_dir  = $globals->spoolroot . "/templates_c/";
-    $page->plugins_dir[]= $globals->spoolroot . "/plugins/";
-    $page->config_dir   = $globals->spoolroot . "/configs/";
-    $page->cache_dir    = $globals->spoolroot . "/cache/";
-
     $page->assign('xorg_head', $tpl_head);
     $page->assign('xorg_tpl', $tpl_name);
     if($popup)
         $page->assign('popup_enable', true);
-
-    $page->config_overwrite=false;
-    $page->compile_check=true;
-    $page->caching=true;
 }
 
 function new_skinned_page($tpl_name, $min_auth, $popup=false, $tpl_head="") {
index d05967b..a63f8f0 100644 (file)
@@ -13,7 +13,17 @@ class XorgPage extends DiogenesCorePage {
   var $_tpl;
   
   function XorgPage($tpl, $type=SKINNED) {
-    global $site_dev,$marketing_admin;
+    global $site_dev,$marketing_admin,$globals;
+
+    $this->template_dir = $globals->spoolroot."/templates/";
+    $this->compile_dir  = $globals->spoolroot."/templates_c/";
+    $this->plugins_dir[]= $globals->spoolroot."/plugins/";
+    $this->config_dir   = $globals->spoolroot."/configs/";
+    $this->cache_dir    = $globals->spoolroot."/cache/";
+
+    $this->config_overwrite=false;
+    $this->compile_check=true;
+    $this->caching=true;
 
     $this->_page_type = SKINNED;
     $this->_tpl = $tpl;