From f26cf77db66ebe0ad98933ce4a30362675783319 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 29 Jan 2007 18:50:42 +0100 Subject: [PATCH] [svn r10973] Added rewrite of the course/cours_rep/index.php redirection file (was pointing to claroline) --- main/install/update-files-1.6.x-1.8.0.inc.php | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/main/install/update-files-1.6.x-1.8.0.inc.php b/main/install/update-files-1.6.x-1.8.0.inc.php index bcbbe06a2d..f83256ea99 100755 --- a/main/install/update-files-1.6.x-1.8.0.inc.php +++ b/main/install/update-files-1.6.x-1.8.0.inc.php @@ -1,4 +1,4 @@ -'; + unlink($currentCourseRepositorySys.'index.php'); + $fp = @ fopen($currentCourseRepositorySys.'index.php', 'w'); + if ($fp) + { + error_log('Writing redirection file in '.$currentCourseRepositorySys.'index.php',0); + fwrite($fp, $content); + fclose($fp); + }else{ + error_log('Could not open file '.$currentCourseRepositorySys.'index.php',0); + } + } // Write the Dokeos config file