if (!
preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/',
$file)) { foreach ($_directories as $_directory) { $_filepath =
$_directory .
$file;
if ($this->
fileExists($source,
$_filepath)) { return $this->
normalizePath($_filepath);
} if ($source->smarty->use_include_path && !
preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/',
$_directory)) { // try PHP include_path
// if ($_stream_resolve_include_path) {
// $_filepath = stream_resolve_include_path($_filepath);
//} else {
$_filepath = Smarty_Internal_Get_Include_Path::
getIncludePath($_filepath);
//}
if ($_filepath !== false
) { if ($this->
fileExists($source,
$_filepath)) { return $this->
normalizePath($_filepath);
} } } } }