From 6e6efe5146d56332fd588d907ae2c593b36d187c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Apr 2011 17:35:05 +0000 Subject: [PATCH] Uniformize code --- htdocs/admin/fckeditor.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index 833924295cb..c8dbc5f9d64 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -81,13 +81,13 @@ foreach($modules as $const => $desc) { dolibarr_set_const($db, "FCKEDITOR_ENABLE_DETAILS", "1",'chaine',0,'',$conf->entity); } - Header("Location: fckeditor.php"); + Header("Location: ".$_SERVER["PHP_SELF"]); exit; } if ($_GET["action"] == 'disable_'.strtolower($const)) { dolibarr_del_const($db, "FCKEDITOR_ENABLE_".$const,$conf->entity); - Header("Location: fckeditor.php"); + Header("Location: ".$_SERVER["PHP_SELF"]); exit; } } @@ -161,7 +161,8 @@ print '
'."\n"; print ''; print_fiche_titre($langs->trans("TestSubmitForm"),'',''); print '
'."\n"; -$editor=new DolEditor('formtestfield',isset($conf->global->FCKEDITOR_TEST)?$conf->global->FCKEDITOR_TEST:'Test','',200,'dolibarr_notes','In', true); +$uselocalbrowser=true; +$editor=new DolEditor('formtestfield',isset($conf->global->FCKEDITOR_TEST)?$conf->global->FCKEDITOR_TEST:'Test','',200,'dolibarr_notes','In', true, $uselocalbrowser); $editor->Create(); print '
'."\n"; print '
'."\n";