diff options
author | rvelices <rv-github@modusoptimus.com> | 2013-06-20 03:38:47 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2013-06-20 03:38:47 +0000 |
commit | 6fc07742f8fca9d32db23243d374ea27e8ee4c1e (patch) | |
tree | bc7240c53a1c6bdff6c785153deb6306585c4062 /include/smarty/libs/internals/core.get_include_path.php | |
parent | 9843eb362dd7d1b9d762871777ef76fa84e8202a (diff) |
smarty 3 - first pass for tests
git-svn-id: http://piwigo.org/svn/trunk@23384 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/smarty/libs/internals/core.get_include_path.php')
-rw-r--r-- | include/smarty/libs/internals/core.get_include_path.php | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/include/smarty/libs/internals/core.get_include_path.php b/include/smarty/libs/internals/core.get_include_path.php deleted file mode 100644 index 43432412b..000000000 --- a/include/smarty/libs/internals/core.get_include_path.php +++ /dev/null @@ -1,44 +0,0 @@ -<?php -/** - * Smarty plugin - * @package Smarty - * @subpackage plugins - */ - -/** - * Get path to file from include_path - * - * @param string $file_path - * @param string $new_file_path - * @return boolean - * @staticvar array|null - */ - -// $file_path, &$new_file_path - -function smarty_core_get_include_path(&$params, &$smarty) -{ - static $_path_array = null; - - if(!isset($_path_array)) { - $_ini_include_path = ini_get('include_path'); - - if(strstr($_ini_include_path,';')) { - // windows pathnames - $_path_array = explode(';',$_ini_include_path); - } else { - $_path_array = explode(':',$_ini_include_path); - } - } - foreach ($_path_array as $_include_path) { - if (@is_readable($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) { - $params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path']; - return true; - } - } - return false; -} - -/* vim: set expandtab: */ - -?> |