mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
improved skin control, if skin is not chosen by user/default
This commit is contained in:
parent
8973b4c9b5
commit
bc2f709a4d
@ -641,31 +641,29 @@ class html
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($GLOBALS['egw_info']['user']['preferences']['common']['rte_skin']))
|
||||
$skin = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin'];
|
||||
|
||||
//Convert old fckeditor skin names to new ones
|
||||
switch ($skin)
|
||||
{
|
||||
$skin = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin'];
|
||||
|
||||
//Convert old fckeditor skin names to new ones
|
||||
switch ($skin)
|
||||
{
|
||||
case 'silver':
|
||||
$skin = "v2";
|
||||
break;
|
||||
case 'default':
|
||||
$skin = "kama";
|
||||
break;
|
||||
case 'office2003':
|
||||
$skin = "office2003";
|
||||
break;
|
||||
}
|
||||
|
||||
//Check whether the skin actually exists, if not, switch to a default
|
||||
if (!(file_exists($basePath.'skins/'.$skin) || file_exists($skin)))
|
||||
case 'silver':
|
||||
$skin = "v2";
|
||||
break;
|
||||
case 'default':
|
||||
$skin = "kama";
|
||||
break;
|
||||
case 'office2003':
|
||||
$skin = "office2003";
|
||||
|
||||
$oCKeditor->config['skin'] = $skin;
|
||||
break;
|
||||
}
|
||||
|
||||
//Check whether the skin actually exists, if not, switch to a default
|
||||
if (!(file_exists($basePath.'skins/'.$skin) || file_exists($skin) || !empty($skin)))
|
||||
$skin = "office2003";
|
||||
|
||||
$oCKeditor->config['skin'] = $skin;
|
||||
|
||||
|
||||
//$oCKeditor->config['spellchecker'] = 'SpellCheck';
|
||||
|
||||
switch($_mode) {
|
||||
|
Loading…
Reference in New Issue
Block a user