From: skodak Date: Sat, 30 Dec 2006 21:18:15 +0000 (+0000) Subject: MDL-8029 obsoleted html_entity_decode() and file_get_contents() emulation removed... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0e5215db9111e9b7d49a2dc99b7cf276adf91bbb;p=moodle.git MDL-8029 obsoleted html_entity_decode() and file_get_contents() emulation removed from moodlelib --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 7b9825684c..853342c50f 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6332,22 +6332,6 @@ if(!function_exists('file_put_contents')) { } } -/** - * html_entity_decode is only supported by php 4.3.0 and higher - * so if it is not predefined, define it here - * - * @param string $string ? - * @return string - * @todo Finish documenting this function - */ -if(!function_exists('html_entity_decode')) { - function html_entity_decode($string) { - $trans_tbl = get_html_translation_table(HTML_ENTITIES); - $trans_tbl = array_flip($trans_tbl); - return strtr($string, $trans_tbl); - } -} - /** * The clone keyword is only supported from PHP 5 onwards. * The behaviour of $obj2 = $obj1 differs fundamentally @@ -6560,13 +6544,6 @@ function get_performance_info() { return $info; } -if (!function_exists('file_get_contents')) { - function file_get_contents($file) { - $file = file($file); - return $file ? implode('', $file) : false; - } -} - function remove_dir($dir, $content_only=false) { // if content_only=true then delete all but