summaryrefslogtreecommitdiffstats
path: root/code/nav.inc.php
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-12-14 01:06:02 +0100
committerneoraider <devnull@localhost>2006-12-14 01:06:02 +0100
commit543336aef16562369c01992817f58e17144c9cad (patch)
treed49cd8549a836c740df7096ddcf7788ed7920c37 /code/nav.inc.php
parent93e1133ee88b03e7cae7318cb19761e698e57b86 (diff)
downloadneon-543336aef16562369c01992817f58e17144c9cad.tar
neon-543336aef16562369c01992817f58e17144c9cad.zip
Base-Type durch Subst-Erweiterungen unnoetig gemacht; Type-Konzept entfernt.
Diffstat (limited to 'code/nav.inc.php')
-rw-r--r--code/nav.inc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/code/nav.inc.php b/code/nav.inc.php
index 940ced2..7d1e38b 100644
--- a/code/nav.inc.php
+++ b/code/nav.inc.php
@@ -1,5 +1,5 @@
<?PHP
- Uses('links');
+ Uses('links', 'user');
class Nav {
var $entries = array();
@@ -21,7 +21,9 @@
$this->entries[$entry->parent]->Add(&$this->entries[$key]);
}
- function ParseNav($gid, $name) {
+ function ParseNav($name, $gid = NULL) {
+ if($gid === NULL) $gid = $GLOBALS['user']->getGid();
+
$ret = '<ul>';
foreach($this->root_entries[$gid][$name]->children as $entry)