Mercurial > defr > DualBlog
diff classes.php @ 13:a8710e973155
Définition du include_path en fonction du répertoire actuel.
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Fri, 26 Oct 2007 13:59:39 +0200 |
parents | ff57b45eda37 |
children | d0e0a216ad83 |
line wrap: on
line diff
--- 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");