mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
fix ports page default view for legacy configurations which had a trailing slash
git-svn-id: http://www.observium.org/svn/observer/trunk@2790 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -5,7 +5,7 @@ if ($vars['view'] == 'graphs' || $vars['view'] == 'minigraphs')
|
||||
if (isset($vars['graph'])) { $graph_type = "port_" . $vars['graph']; } else { $graph_type = "port_bits"; }
|
||||
}
|
||||
|
||||
if (!$vars['view']) { $vars['view'] = $config['ports_page_default']; }
|
||||
if (!$vars['view']) { $vars['view'] = trim($config['ports_page_default'],'/'); }
|
||||
|
||||
$link_array = array('page' => 'device',
|
||||
'device' => $device['device_id'],
|
||||
|
||||
Reference in New Issue
Block a user