mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 20:44:27 +01:00
fix svg not used for pixelegg, if a non-existing theme is in the preferenes
This commit is contained in:
parent
deef5d52fa
commit
8eb7ca2996
@ -987,7 +987,10 @@ abstract class Framework extends Framework\Extra
|
||||
self::includeJS('/api/images.php', array(
|
||||
'template' => $GLOBALS['egw_info']['server']['template_set'],
|
||||
'etag' => md5(json_encode(Image::map($GLOBALS['egw_info']['server']['template_set']))),
|
||||
'svg' => Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'pixelegg',
|
||||
'svg' => Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'pixelegg' ||
|
||||
// if theme was set to something else before and we default to "pixelegg", we need it here too
|
||||
$GLOBALS['egw_info']['server']['template_set'] == 'pixelegg' &&
|
||||
$GLOBALS['egw_info']['user']['preferences']['common']['theme'] !== 'monochrome',
|
||||
));
|
||||
self::includeJS('/api/user.php', array(
|
||||
'user' => $GLOBALS['egw_info']['user']['account_lid'],
|
||||
|
Loading…
Reference in New Issue
Block a user