Try a fix to edit log level

This commit is contained in:
Laurent Destailleur 2012-02-22 13:23:13 +01:00
parent 489c00fa9f
commit 65104cbb40

View File

@ -193,8 +193,10 @@ print '</td></tr>';
try try
{ {
set_include_path('/usr/share/php/'); set_include_path('/usr/share/php/');
@require_once('FirePHPCore/FirePHP.class.php'); $res=@include_once('FirePHPCore/FirePHP.class.php');
restore_include_path(); restore_include_path();
if ($res)
{
$var=!$var; $var=!$var;
print '<tr '.$bc[$var].'><td width="140"><input '.$bc[$var].' type="checkbox" name="SYSLOG_FIREPHP_ON" '.$option.' value="1" '; print '<tr '.$bc[$var].'><td width="140"><input '.$bc[$var].' type="checkbox" name="SYSLOG_FIREPHP_ON" '.$option.' value="1" ';
if (! class_exists('FirePHP')) print ' disabled="disabled"'; if (! class_exists('FirePHP')) print ' disabled="disabled"';
@ -204,6 +206,7 @@ try
print '</td>'; print '</td>';
print "<td align=\"left\">".$form->textwithpicto('','FirePHP must be installed onto PHP and FirePHP plugin for Firefox must also be installed'); print "<td align=\"left\">".$form->textwithpicto('','FirePHP must be installed onto PHP and FirePHP plugin for Firefox must also be installed');
print '</td></tr>'; print '</td></tr>';
}
} }
catch(Exception $e) catch(Exception $e)
{ {
@ -246,7 +249,8 @@ print "</form>\n";
dol_htmloutput_mesg($mesg); dol_htmloutput_mesg($mesg);
$db->close();
llxFooter(); llxFooter();
$db->close();
?> ?>