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
1 changed files with 4 additions and 6 deletions

View File

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