Fix: unnecessary checking

This commit is contained in:
Regis Houssin 2010-09-08 16:24:21 +00:00
parent 530e321a3e
commit 3696195e58

View File

@ -1437,15 +1437,14 @@ class CommonObject
print ' - '.nl2br($line->product_label); print ' - '.nl2br($line->product_label);
print '<br>'; print '<br>';
} }
if ($_GET["action"] == 'editline')
{ // editeur wysiwyg
// editeur wysiwyg $nbrows=ROWS_2;
$nbrows=ROWS_2; if (! empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT;
if (! empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT; require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('desc',$line->description,164,'dolibarr_details','',false,true,$conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS,$nbrows,70);
$doleditor=new DolEditor('desc',$line->description,164,'dolibarr_details','',false,true,$conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS,$nbrows,70); $doleditor->Create();
$doleditor->Create();
}
print '</td>'; print '</td>';
// TODO a déplacer dans classe module marge // TODO a déplacer dans classe module marge