diff options
author | Bill Marquette <billm@pfsense.org> | 2008-04-07 00:50:14 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2008-04-07 00:50:14 +0000 |
commit | 43e7c36ca7e730d87d4c5be3e09b5c15f416b346 (patch) | |
tree | ba571607f17c257859ad985e6a17f9966649cbed /usr/local/www/guiconfig.inc | |
parent | 18e5545ede82176cae12a15e13b0aaec69875c9f (diff) | |
download | pfsense-43e7c36ca7e730d87d4c5be3e09b5c15f416b346.zip pfsense-43e7c36ca7e730d87d4c5be3e09b5c15f416b346.tar.gz |
fix up reverse logic in return_clog() so it doesn't default to reverse
make the slbd status pages override the reverse logic in return_clog()
so these pages aren't now broken. This change actually fixes the ipsec
diag logs page being reverse (and not honoring the log reverse/forward
setting on the logs setting page)
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 2208f02..7dfd164 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -660,10 +660,9 @@ function dump_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinvert } } -function return_clog($logfile, $tail, $grepfor = "", $grepinvert = "", $grepreverse = false) { +function return_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinvert = "", $grepreverse = false) { global $g, $config; - $sor = isset($config['syslog']['reverse']) ? "-r" : ""; - $sor = isset($grepreverse) ? "-r" : ""; + $sor = (isset($config['syslog']['reverse']) || $grepreverse) ? "-r" : ""; $logarr = ""; $grepline = " "; if(is_array($grepfor)) @@ -829,4 +828,4 @@ function display_widget_tabs(& $tab_array) { echo "</div>"; } -?>
\ No newline at end of file +?> |