Made CKEditor checking, whether the given skin actually exists

This commit is contained in:
Andreas Stöckel 2010-05-25 14:50:58 +00:00
parent b43a3843d2
commit 99106024c4

View File

@ -643,7 +643,11 @@ class html
if (isset($GLOBALS['egw_info']['user']['preferences']['common']['rte_skin']))
{
$oCKeditor->config['skin'] = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin'];
$skin = $GLOBALS['egw_info']['user']['preferences']['common']['rte_skin'];
//Check whether the skin actually exists
if (file_exists($basePath.'skins/'.$skin) || file_exists($skin))
$oCKeditor->config['skin'] = $skin;
}
//$oCKeditor->config['spellchecker'] = 'SpellCheck';