mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Fix 404 errors caused by none existing html editor icons
This commit is contained in:
parent
7eaa896a61
commit
2cb7a30d3c
@ -118,11 +118,12 @@ class HtmlArea extends Etemplate\Widget
|
||||
$toolbar_selOptions = array();
|
||||
foreach (self::$toolbar_list as $toolbar)
|
||||
{
|
||||
$file = '/api/templates/default/images/htmlarea/'.$toolbar.'.svg';
|
||||
$toolbar_selOptions[$toolbar] = array (
|
||||
'id' => $toolbar,
|
||||
'label' => lang($toolbar),
|
||||
'title' => lang($toolbar),
|
||||
'icon' => Api\Framework::getUrl($GLOBALS['egw_info']['server']['webserver_url']).'/api/templates/default/images/htmlarea/'.$toolbar.'.svg',
|
||||
'icon' => file_exists(EGW_SERVER_ROOT.$file)?Api\Framework::getUrl($GLOBALS['egw_info']['server']['webserver_url'].$file):'',
|
||||
'app' => 'api'
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user