Skip to content

Commit

Permalink
MDL-14617 removed various form related legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 1, 2008
1 parent 9616085 commit 4b3b52e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions lib/deprecatedlib.php
Expand Up @@ -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 **/

Expand Down

0 comments on commit 4b3b52e

Please sign in to comment.