]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8029 obsoleted html_entity_decode() and file_get_contents() emulation removed...
authorskodak <skodak>
Sat, 30 Dec 2006 21:18:15 +0000 (21:18 +0000)
committerskodak <skodak>
Sat, 30 Dec 2006 21:18:15 +0000 (21:18 +0000)
lib/moodlelib.php

index 7b9825684ca2ecf45aea498f798dfc8b077de996..853342c50fb4d78bc50e084eeb23bfef01a4c259 100644 (file)
@@ -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