Problem fixed.
Thanks
Julien
Le 11/08/2011 07:28, Damien Touraine a écrit :
SVN version 15366.
index.html don't include autoload.php. So when you start with a fresh
installation (by removing config/config_db.php) it can't find
Html::redirect (Html class not resolved). As it is a border effect in
a very specific page (/index.php) and a specific cas (fresh
installation), I suggest to include two php files just before calling
Html::redirect :
Index: index.php
===================================================================
--- index.php (revision 15366)
+++ index.php (working copy)
@@ -38,6 +38,8 @@
include (GLPI_ROOT . "/config/based_config.php");
if (!file_exists(GLPI_CONFIG_DIR . "/config_db.php")) {
+ include_once(GLPI_ROOT . "/inc/html.class.php"); // For Html class
+ include_once(GLPI_ROOT . "/inc/toolbox.class.php"); // Used by
Html class
Html::redirect("install/install.php");
die();
Regards
Damien
_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev