From 99106024c40d6b54e8a7dc96c4438a54f2afc3db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Tue, 25 May 2010 14:50:58 +0000 Subject: [PATCH] Made CKEditor checking, whether the given skin actually exists --- phpgwapi/inc/class.html.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index cd3de56b9d..febd828491 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -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';