diff options
author | neoraider <devnull@localhost> | 2006-12-14 01:06:02 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-12-14 01:06:02 +0100 |
commit | 543336aef16562369c01992817f58e17144c9cad (patch) | |
tree | d49cd8549a836c740df7096ddcf7788ed7920c37 /code/nav.inc.php | |
parent | 93e1133ee88b03e7cae7318cb19761e698e57b86 (diff) | |
download | neon-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.php | 6 |
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) |