mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 03:41:53 +02: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
|
* @return string url of the image
|
||||||
*/
|
*/
|
||||||
static function find_image($appname,$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';
|
$imagedir = '/'.$appname.'/templates/'.$GLOBALS['egw_info']['user']['preferences']['common']['template_set'].'/images';
|
||||||
|
}
|
||||||
$vfs_imagedir = $GLOBALS['egw_info']['server']['vfs_image_dir'];
|
$vfs_imagedir = $GLOBALS['egw_info']['server']['vfs_image_dir'];
|
||||||
|
|
||||||
if (!isset(self::$found_files[$appname]))
|
if (!isset(self::$found_files[$appname]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user