X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fapp%2Finit%2F0300_data.php;h=ea7ad71b55d6ef4c0430ced1a892c1b27d343124;hb=refs%2Ftags%2Fmtweb.0.9.2;hp=8a28d16b485379e6d6a8c3bd6e86190ed6493819;hpb=d669e951c9bcd5a4d1baf3ff8b60431f73e14054;p=mtweb diff --git a/mw/app/init/0300_data.php b/mw/app/init/0300_data.php index 8a28d16..ea7ad71 100644 --- a/mw/app/init/0300_data.php +++ b/mw/app/init/0300_data.php @@ -1,10 +1,11 @@ app_file("data/mw_sgbd.php"); - require $this->app_file("data/mw_data.php"); + if(!class_exists("mw_sgbd")) require_once $this->app_file("data/mw_sgbd.php"); + if(!class_exists("mw_data")) require_once $this->app_file("data/mw_data.php"); if($this->app_file_exists("data/impl/mw_".$this->bdd("sgbd").".php")){ - require $this->app_file("data/impl/mw_".$this->bdd("sgbd").".php"); - if(class_exists($sgbd_impl = "mw_".$this->bdd("sgbd"))){ + $sgbd_impl = "mw_".$this->bdd("sgbd"); + if(!class_exists($sgbd_impl)) require_once $this->app_file("data/impl/".$sgbd_impl.".php"); + if(class_exists($sgbd_impl)){ if(($plugins = $this->plugins("DESC")) !== false){ $data = new mw_data(true); foreach($plugins as $plugin_name => $plugin){