removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / function.eval.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/function.eval.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/function.eval.php
deleted file mode 100644 (file)
index e694387..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-\r
-/**\r
- * Smarty {eval} function plugin\r
- *\r
- * Type:     function<br>\r
- * Name:     eval<br>\r
- * Purpose:  evaluate a template variable as a template<br>\r
- * @link http://smarty.php.net/manual/en/language.function.eval.php {eval}\r
- *       (Smarty online manual)\r
- * @param array\r
- * @param Smarty\r
- */\r
-function smarty_function_eval($params, &$smarty)\r
-{\r
-\r
-    if (!isset($params['var'])) {\r
-        $smarty->trigger_error("eval: missing 'var' parameter");\r
-        return;\r
-    }\r
-\r
-    if($params['var'] == '') {\r
-        return;\r
-    }\r
-\r
-    $smarty->_compile_source('evaluated template', $params['var'], $_var_compiled);\r
-\r
-    ob_start();\r
-    $smarty->_eval('?>' . $_var_compiled);\r
-    $_contents = ob_get_contents();\r
-    ob_end_clean();\r
-\r
-    if (!empty($params['assign'])) {\r
-        $smarty->assign($params['assign'], $_contents);\r
-    } else {\r
-        return $_contents;\r
-    }\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r