+++ /dev/null
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-/**\r
- * Get path to file from include_path\r
- *\r
- * @param string $file_path\r
- * @param string $new_file_path\r
- * @return boolean\r
- * @staticvar array|null\r
- */\r
-\r
-// $file_path, &$new_file_path\r
-\r
-function smarty_core_get_include_path(&$params, &$smarty)\r
-{\r
- static $_path_array = null;\r
-\r
- if(!isset($_path_array)) {\r
- $_ini_include_path = ini_get('include_path');\r
-\r
- if(strstr($_ini_include_path,';')) {\r
- // windows pathnames\r
- $_path_array = explode(';',$_ini_include_path);\r
- } else {\r
- $_path_array = explode(':',$_ini_include_path);\r
- }\r
- }\r
- foreach ($_path_array as $_include_path) {\r
- if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) {\r
- $params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path'];\r
- return true;\r
- }\r
- }\r
- return false;\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r