mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Some more basename replacing with Vfs::basename to avoid setlocale issue.
This commit is contained in:
parent
17cfcf1168
commit
7e126290f7
@ -100,7 +100,7 @@ class Image
|
||||
*/
|
||||
protected static function get_extension($path, &$name=null)
|
||||
{
|
||||
$parts = explode('.', basename($path));
|
||||
$parts = explode('.', Vfs::basename($path));
|
||||
$ext = array_pop($parts);
|
||||
$name = implode('.', $parts);
|
||||
return $ext;
|
||||
|
@ -1287,7 +1287,7 @@ class Link extends Link\Storage
|
||||
$link = self::get_link(-$app);
|
||||
if($link['app2'] && $link['id2'])
|
||||
{
|
||||
Storage\History::static_add($link['app2'],$link['id2'],$GLOBALS['egw_info']['user']['account_id'],'~file~','', basename($url));
|
||||
Storage\History::static_add($link['app2'],$link['id2'],$GLOBALS['egw_info']['user']['account_id'],'~file~','', Vfs::basename($url));
|
||||
}
|
||||
}
|
||||
if (($Ok = !file_exists($url) || Vfs::remove($url,true)) && ((int)$app > 0 || $fname))
|
||||
|
@ -6760,7 +6760,7 @@ class Mail
|
||||
// do not change urls for absolute images (thanks to corvuscorax)
|
||||
if (substr($url, 0, 5) !== 'data:')
|
||||
{
|
||||
$filename = basename($url);
|
||||
$filename = Vfs::basename($url);
|
||||
if (($directory = dirname($url)) == '.') $directory = '';
|
||||
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
||||
$mimeType = MimeMagic::ext2mime($ext);
|
||||
|
Loading…
Reference in New Issue
Block a user