From: skodak Date: Sat, 30 Dec 2006 21:14:24 +0000 (+0000) Subject: MDL-8029 obsoleted file_get_contents() emulation removed from filelib X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2098f6ddbb2605ff724c3fbcc1de379574356ed8;p=moodle.git MDL-8029 obsoleted file_get_contents() emulation removed from filelib --- diff --git a/lib/filelib.php b/lib/filelib.php index 98754f95a5..d56a08b800 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -475,14 +475,6 @@ function put_records_csv($file, $records, $table = NULL) { } -if (!function_exists('file_get_contents')) { - function file_get_contents($file) { - $file = file($file); - return !$file ? false : implode('', $file); - } -} - - /** * Recursively delete the file or folder with path $location. That is, * if it is a file delete it. If it is a folder, delete all its content