more work on cleaning up navigation

This commit is contained in:
John Bintz 2009-10-22 07:02:53 -04:00
parent 4f40c2457c
commit 8fa6ba4517

View File

@ -34,14 +34,12 @@ class ComicPressNavigation {
if (is_array($valid = $this->_storyline->valid($category))) { if (is_array($valid = $this->_storyline->valid($category))) {
foreach ($valid as $field) { foreach ($valid as $field) {
$nav["storyline-chapter-${field}"] = $this->_dbi->get_first_comic($this->_storyline->{$field}($category)); $nav["storyline-chapter-${field}"] = $this->_dbi->get_first_comic($this->_storyline->{$field}($category));
}
if ($field == "previous") { if ($post->ID != $nav['storyline-chapter-current']->ID) {
if ($post->ID != $nav['storyline-chapter-current']) {
$nav['storyline-chapter-previous'] = $nav['storyline-chapter-current']; $nav['storyline-chapter-previous'] = $nav['storyline-chapter-current'];
} }
} }
}
}
} }
return $nav; return $nav;