Project

General

Profile

Bug #67 ยป returnclogfix.diff

patch to fix return_clog() - Jim Pingle, 08/30/2009 05:13 PM

View differences:

usr/local/www/guiconfig.inc
631 631

  
632 632
function return_clog($logfile, $tail, $grepfor = "", $grepinvert = "", $grepreverse = false) {
633 633
	global $g, $config;
634
	$sor = isset($config['syslog']['reverse']) ? "-r" : "";
635
	$sor = isset($grepreverse) ? "-r" : "";
634
	$reverse = isset($config['syslog']['reverse']);
635
	$reverse = $grepreverse ? !$reverse : $reverse;
636
	$sor = $reverse ? "-r" : "";
636 637
	$logarr = "";
637 638
	$grepline = "  ";
638 639
	if(is_array($grepfor))
    (1-1/1)