removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / core / core.run_insert_handler.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.run_insert_handler.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.run_insert_handler.php
deleted file mode 100644 (file)
index a40f8b2..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-/**\r
- * Handle insert tags\r
- *\r
- * @param array $args\r
- * @return string\r
- */\r
-function smarty_core_run_insert_handler($params, &$smarty)\r
-{\r
-\r
-    require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_microtime.php');\r
-    if ($smarty->debugging) {\r
-        $_params = array();\r
-        $_debug_start_time = smarty_core_get_microtime($_params, $smarty);\r
-    }\r
-\r
-    if ($smarty->caching) {\r
-        $_arg_string = serialize($params['args']);\r
-        $_name = $params['args']['name'];\r
-        if (!isset($smarty->_cache_info['insert_tags'][$_name])) {\r
-            $smarty->_cache_info['insert_tags'][$_name] = array('insert',\r
-                                                             $_name,\r
-                                                             $smarty->_plugins['insert'][$_name][1],\r
-                                                             $smarty->_plugins['insert'][$_name][2],\r
-                                                             !empty($params['args']['script']) ? true : false);\r
-        }\r
-        return $smarty->_smarty_md5."{insert_cache $_arg_string}".$smarty->_smarty_md5;\r
-    } else {\r
-        if (isset($params['args']['script'])) {\r
-            $_params = array('resource_name' => $smarty->_dequote($params['args']['script']));\r
-            require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_php_resource.php');\r
-            if(!smarty_core_get_php_resource($_params, $smarty)) {\r
-                return false;\r
-            }\r
-\r
-            if ($_params['resource_type'] == 'file') {\r
-                $smarty->_include($_params['php_resource'], true);\r
-            } else {\r
-                $smarty->_eval($_params['php_resource']);\r
-            }\r
-            unset($params['args']['script']);\r
-        }\r
-\r
-        $_funcname = $smarty->_plugins['insert'][$params['args']['name']][0];\r
-        $_content = $_funcname($params['args'], $smarty);\r
-        if ($smarty->debugging) {\r
-            $_params = array();\r
-            require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_microtime.php');\r
-            $smarty->_smarty_debug_info[] = array('type'      => 'insert',\r
-                                                'filename'  => 'insert_'.$params['args']['name'],\r
-                                                'depth'     => $smarty->_inclusion_depth,\r
-                                                'exec_time' => smarty_core_get_microtime($_params, $smarty) - $_debug_start_time);\r
-        }\r
-\r
-        if (!empty($params['args']["assign"])) {\r
-            $smarty->assign($params['args']["assign"], $_content);\r
-        } else {\r
-            return $_content;\r
-        }\r
-    }\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r