From b4d2e11c0aa5cf2ceeee50250e1939f0b8c43b96 Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Tue, 29 Jan 2008 17:26:45 +0100 Subject: [PATCH] [svn r14194] fix a bug when replaceing rel_path in hop_top.html --- index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index f17ba4f565..9aa90e6650 100644 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@ /** * @package dokeos.main * @author Patrick Cool , Ghent University, Refactoring -* @version $Id: index.php 14121 2008-01-18 09:19:17Z elixir_inter $ +* @version $Id: index.php 14194 2008-01-29 16:26:45Z elixir_inter $ * @todo check the different @todos in this page and really do them * @todo check if the news management works as expected */ @@ -208,12 +208,14 @@ else { if(file_exists('home/home_top_'.$user_selected_language.'.html')) { - include('home/home_top_'.$user_selected_language.'.html'); + $home_top_temp = file_get_contents('home/home_top_'.$user_selected_language.'.html'); } else { - include('home/home_top.html'); + $home_top_temp = file_get_contents('home/home_top.html'); } + $open=str_replace('{rel_path}',api_get_path(REL_PATH),$home_top_temp); + echo $open; } }