require_once("/usr/share/fckeditor/fckeditor.php");
} else {
$use_system_fckeditor = false ;
- require_once $gfplugins.'fckeditor/www/fckeditor.php';
+ require_once $GLOBALS['gfplugins'].'fckeditor/www/fckeditor.php';
}
if ($hookname == "groupisactivecheckbox") {
} else {
$http = "http://";
}
- if ($params['name']) {
+ if (@$params['name']) {
$oFCKeditor = new FCKeditor($params['name']) ;
} else {
$oFCKeditor = new FCKeditor('body') ;
}
if ($use_system_fckeditor) {
$oFCKeditor->BasePath = util_make_url ('/fckeditor/');
- $oFCKeditor->Config['CustomConfigurationsPath'] = "/plugins/fckeditor/config.js" ;
+ $oFCKeditor->Config['CustomConfigurationsPath'] = "/plugins/fckeditor/fckconfig.js" ;
} else {
$oFCKeditor->BasePath = util_make_url('/plugins/' . $this->name . '/');
}