more work on cleaning up navigation
This commit is contained in:
parent
4f40c2457c
commit
8fa6ba4517
|
@ -34,14 +34,12 @@ 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']) {
|
||||
if ($post->ID != $nav['storyline-chapter-current']->ID) {
|
||||
$nav['storyline-chapter-previous'] = $nav['storyline-chapter-current'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $nav;
|
||||
|
|
Loading…
Reference in New Issue