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