gestion des erreurs pendant l'initialisation
[mtweb] / index.php
index 3276947..f43715b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -2,7 +2,10 @@
 
   require "mw/mw_app.php";
   $app = new mw_app("pathes.php");
-  if($app->init() && $app->run()) $app->display();
-//  else $app->show_logs();
 
-?>
\ No newline at end of file
+  if(!$app->init()){
+    $app->show_error();
+    return;
+  }
+
+  if($app->run()) $app->display();