mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix redirection to first log
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
skip_index=1
|
||||
lines=100
|
||||
others=1
|
||||
reverse=1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
skip_index=Open log view on module load,1,1-Yes,0-No
|
||||
skip_index=Redirect to first log file?,1,1-Yes,0-No
|
||||
lines=Default number of lines to display,0,6
|
||||
refresh=Seconds between log view refreshes,3,Never
|
||||
others=Show logs from other modules,1,1-Yes,0-No
|
||||
|
||||
@@ -143,11 +143,9 @@ if (!@acols) {
|
||||
}
|
||||
|
||||
# If we jump directly to logs just redirect
|
||||
if ($config{'skip_index'} == 1) {
|
||||
if ($lnks[0]) {
|
||||
&redirect($lnks[0]);
|
||||
exit;
|
||||
}
|
||||
if ($config{'skip_index'} == 1 && $lnks[0]) {
|
||||
&redirect($lnks[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
# Print the header
|
||||
|
||||
Reference in New Issue
Block a user