using framework->template_dir, instead of hardcoded phpgwapi based one

This commit is contained in:
Ralf Becker 2010-06-02 21:28:51 +00:00
parent a4a427e2ab
commit 0150726c4b

View File

@ -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]))