From 057399e49d7287b2b17bf8c868808174f6c71141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Sun, 16 Nov 2008 17:49:21 +0000 Subject: Change backend part to show friendly interface names on shaper. --- etc/inc/shaper.inc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'etc') diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index e84475b..63a14ff 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -378,7 +378,7 @@ class altq_root_queue { function &get_queue_list($q = null) { $qlist = array(); - + $qlist[$this->GetQname()] = & $this; if (is_array($this->queues)) { foreach ($this->queues as $queue) @@ -472,8 +472,10 @@ class altq_root_queue { } function build_tree() { + global $shaperIFlist; + $tree = "
  • GetInterface()."&queue=". $this->GetInterface()."&action=show"; - $tree .= "\">" . $this->GetInterface() . ""; + $tree .= "\">" . $shaperIFlist[$this->GetInterface()] . ""; if (is_array($this->queues)) { $tree .= "