summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/nav.inc.php22
1 files changed, 3 insertions, 19 deletions
diff --git a/code/nav.inc.php b/code/nav.inc.php
index 0a28cba..fbaf8e1 100644
--- a/code/nav.inc.php
+++ b/code/nav.inc.php
@@ -14,15 +14,15 @@
}
foreach($this->entries as $entry)
- if($entry->GetParentId() != 0)
- $this->entries[$entry->GetParentId()]->Add($entry);
+ if($entry->parent != 0)
+ $this->entries[$entry->parent]->Add($entry);
}
function ParseEntries() {
$ret = '<ul>';
foreach($this->entries as $entry)
- if($entry->GetParentId() == 0)
+ if($entry->parent == 0)
$ret .= $entry->Parse();
$ret .= '</ul>';
@@ -45,22 +45,6 @@
array_push($this->children, $entry);
}
- function GetChildren() {
- return $this->children;
- }
-
- function GetParentId() {
- return $this->parent;
- }
-
- function GetText() {
- return $this->text;
- }
-
- function GetLink() {
- return $this->link;
- }
-
function Parse() {
$ccount = 0;
$ret = '<li>';