# HG changeset patch # User Franck Deroche # Date 1193399979 -7200 # Node ID a8710e9731553158454a4606977908438486b7bf # Parent a7e770abbfc61859188f0f6cd0820abd77dc6ea6 Définition du include_path en fonction du répertoire actuel. diff -r a7e770abbfc6 -r a8710e973155 classes.php --- a/classes.php Thu Oct 25 10:39:55 2007 +0200 +++ b/classes.php Fri Oct 26 13:59:39 2007 +0200 @@ -3,8 +3,8 @@ WebLog : Classe globale & all */ -$docRoot = $_SERVER['DOCUMENT_ROOT']; -ini_set("include_path", "$docRoot/blog/includes/:$docRoot/blog/templates/"); +$docRoot = dirname(__FILE__); +ini_set("include_path", "$docRoot/includes:$docRoot/templates"); setlocale(LC_ALL, "fr_FR.utf8@euro", "fr_FR.utf8");