]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14617 removed various form related legacy code
authorskodak <skodak>
Thu, 1 May 2008 22:21:56 +0000 (22:21 +0000)
committerskodak <skodak>
Thu, 1 May 2008 22:21:56 +0000 (22:21 +0000)
lib/deprecatedlib.php

index 8afa3d140fd6565eaae6deea12b4224e871935a8..1a8e4bae2d65bad870fd941ea8e284757dce9c8e 100644 (file)
@@ -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).
- *
- * <b>WARNING: do not use this on big files!!</b>
- *
- * @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 **/