X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=inc%2Fsmarty%2Fcore%2Fcore.assemble_plugin_filepath.php;fp=inc%2Fsmarty%2Fcore%2Fcore.assemble_plugin_filepath.php;h=0000000000000000000000000000000000000000;hb=b42b2bf946332ad8544d53f610be9cb05e80bf56;hp=7894ee4dd30d7b8633cbad8a96cac0d5503e4839;hpb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/smarty/core/core.assemble_plugin_filepath.php b/inc/smarty/core/core.assemble_plugin_filepath.php deleted file mode 100644 index 7894ee4..0000000 --- a/inc/smarty/core/core.assemble_plugin_filepath.php +++ /dev/null @@ -1,62 +0,0 @@ -plugins_dir as $_plugin_dir) { - - $_plugin_filepath = $_plugin_dir . DIRECTORY_SEPARATOR . $_plugin_filename; - - // see if path is relative - if (!preg_match("/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/", $_plugin_dir)) { - $_relative_paths[] = $_plugin_dir; - // relative path, see if it is in the SMARTY_DIR - if (@is_readable(SMARTY_DIR . $_plugin_filepath)) { - $_return = SMARTY_DIR . $_plugin_filepath; - break; - } - } - // try relative to cwd (or absolute) - if (@is_readable($_plugin_filepath)) { - $_return = $_plugin_filepath; - break; - } - } - - if($_return === false) { - // still not found, try PHP include_path - if(isset($_relative_paths)) { - foreach ((array)$_relative_paths as $_plugin_dir) { - - $_plugin_filepath = $_plugin_dir . DIRECTORY_SEPARATOR . $_plugin_filename; - - $_params = array('file_path' => $_plugin_filepath); - require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_include_path.php'); - if(smarty_core_get_include_path($_params, $smarty)) { - return $_params['new_file_path']; - } - } - } - } - - return $_return; -} - -/* vim: set expandtab: */ - -?>