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

--
--------------------------------------------------------------------
Damien TOURAINE - Ingénieur de Recherche CNRS, LIMSI-CNRS
Groupe de RV&A "VENISE", (http://www.limsi.fr/venise/)
Bat. 508, Universite Paris-Sud 91403 Orsay cedex - +33 1 69 85 81 64
--------------------------------------------------------------------


_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to