removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / core / core.smarty_include_php.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.smarty_include_php.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.smarty_include_php.php
deleted file mode 100644 (file)
index 9efc46a..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-/**\r
- * called for included php files within templates\r
- *\r
- * @param string $smarty_file\r
- * @param string $smarty_assign variable to assign the included template's\r
- *               output into\r
- * @param boolean $smarty_once uses include_once if this is true\r
- * @param array $smarty_include_vars associative array of vars from\r
- *              {include file="blah" var=$var}\r
- */\r
-\r
-//  $file, $assign, $once, $_smarty_include_vars\r
-\r
-function smarty_core_smarty_include_php($params, &$smarty)\r
-{\r
-    $_params = array('resource_name' => $params['smarty_file']);\r
-    require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_php_resource.php');\r
-    smarty_core_get_php_resource($_params, $smarty);\r
-    $_smarty_resource_type = $_params['resource_type'];\r
-    $_smarty_php_resource = $_params['php_resource'];\r
-\r
-    if (!empty($params['smarty_assign'])) {\r
-        ob_start();\r
-        if ($_smarty_resource_type == 'file') {\r
-            $smarty->_include($_smarty_php_resource, $params['smarty_once'], $params['smarty_include_vars']);\r
-        } else {\r
-            $smarty->_eval($_smarty_php_resource, $params['smarty_include_vars']);\r
-        }\r
-        $smarty->assign($params['smarty_assign'], ob_get_contents());\r
-        ob_end_clean();\r
-    } else {\r
-        if ($_smarty_resource_type == 'file') {\r
-            $smarty->_include($_smarty_php_resource, $params['smarty_once'], $params['smarty_include_vars']);\r
-        } else {\r
-            $smarty->_eval($_smarty_php_resource, $params['smarty_include_vars']);\r
-        }\r
-    }\r
-}\r
-\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r