From: skodak Date: Thu, 1 May 2008 22:21:56 +0000 (+0000) Subject: MDL-14617 removed various form related legacy code X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4b3b52edd8bb24a337a12baab41a140919e24f2a;p=moodle.git MDL-14617 removed various form related legacy code --- diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 8afa3d140f..1a8e4bae2d 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -733,27 +733,6 @@ function detect_munged_arguments($string, $allowdots=1) { /// Old functions not used anymore - candidates for removal ///////////////////////////////////////////////////////////// -/** - * Load a template from file - this function dates back to Moodle 1 :-) not used anymore - * - * Returns a (big) string containing the contents of a template file with all - * the variables interpolated. all the variables must be in the $var[] array or - * object (whatever you decide to use). - * - * WARNING: do not use this on big files!! - * - * @param string $filename Location on the server's filesystem where template can be found. - * @param mixed $var Passed in by reference. An array or object which will be loaded with data from the template file. - * - */ -function read_template($filename, &$var) { - - $temp = str_replace("\\", "\\\\", implode(file($filename), '')); - $temp = str_replace('"', '\"', $temp); - eval("\$template = \"$temp\";"); - return $template; -} - /** various deprecated groups function **/