modifications template et tinyMce dans libs
[mtweb] / mw / env / modules / mw_env_out.php
index f405fca..1609dc6 100644 (file)
     function out_config($name){
       if(isset($this->out_config)){
         $CONFIG = $this->get_CONFIG();
-        return isset($CONFIG["out_".$name]) ? $CONFIG["out_".$name] : $this->out_config[$name]["default"];
+        return isset($CONFIG["out_".$name]) ? $CONFIG["out_".$name] : (isset($this->out_config[$name]) ? $this->out_config[$name]["default"] : "");
       }
       return null;
     }
             ($init_script = $this->init_script())
         &&  $this->out_file_exists($init_script)
       ) require $this->out_file($init_script);
+      $data = $this->data();
       if($layout["page"]){
         if($this->out_file_exists($layout["page"])) require $this->out_file($layout["page"]);
       }
     }
 
     function get_out_config(){
-      return array();
+      $out_config = array();
+      if($this->ENV_SET){
+        $env = $this->modules["env"];
+        $out_config = $env->get_out_config();
+      }
+      return $out_config;
     }
 
     function set_template_infos($template_infos){