summaryrefslogtreecommitdiffstats
path: root/code/nav.inc.php
diff options
context:
space:
mode:
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)