Try a fix to edit log level
This commit is contained in:
parent
489c00fa9f
commit
65104cbb40
@ -193,17 +193,20 @@ 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();
|
||||||
$var=!$var;
|
if ($res)
|
||||||
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"';
|
$var=!$var;
|
||||||
else print ($syslog_firephp_on?' checked="checked"':"");
|
print '<tr '.$bc[$var].'><td width="140"><input '.$bc[$var].' type="checkbox" name="SYSLOG_FIREPHP_ON" '.$option.' value="1" ';
|
||||||
print '> '.$langs->trans("FirePHP").'</td>';
|
if (! class_exists('FirePHP')) print ' disabled="disabled"';
|
||||||
print '<td width="250" nowrap="nowrap">';
|
else print ($syslog_firephp_on?' checked="checked"':"");
|
||||||
print '</td>';
|
print '> '.$langs->trans("FirePHP").'</td>';
|
||||||
print "<td align=\"left\">".$form->textwithpicto('','FirePHP must be installed onto PHP and FirePHP plugin for Firefox must also be installed');
|
print '<td width="250" nowrap="nowrap">';
|
||||||
print '</td></tr>';
|
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></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();
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user