mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 03:50:13 +01:00
using framework->template_dir, instead of hardcoded phpgwapi based one
This commit is contained in:
parent
a4a427e2ab
commit
0150726c4b
@ -742,8 +742,15 @@ class common
|
||||
* @return string url of the image
|
||||
*/
|
||||
static function find_image($appname,$image)
|
||||
{
|
||||
if ($appname != 'phpgwapi')
|
||||
{
|
||||
$imagedir = $GLOBALS['egw']->framework->template_dir.'/images';
|
||||
}
|
||||
else
|
||||
{
|
||||
$imagedir = '/'.$appname.'/templates/'.$GLOBALS['egw_info']['user']['preferences']['common']['template_set'].'/images';
|
||||
}
|
||||
$vfs_imagedir = $GLOBALS['egw_info']['server']['vfs_image_dir'];
|
||||
|
||||
if (!isset(self::$found_files[$appname]))
|
||||
|
Loading…
Reference in New Issue
Block a user