function asset_pathinfo in Asset 6
Same name and namespace in other branches
- 5 asset.module \asset_pathinfo()
wrapper around pathinfo() that strips file_directory_path from path and . from dirname
2 calls to asset_pathinfo()
File
- inc/
asset.routines.inc, line 143
Code
function asset_pathinfo($path) {
$path = trim(str_replace(file_directory_path(), '', $path), '/');
$info = pathinfo($path);
if ($info['dirname'] == '.') {
$info['dirname'] = '';
}
return $info;
}