From 67b8c4ee6a7307df812e8a00a4edc8b4a59bb1f5 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 21 Oct 2009 22:54:17 -0400 Subject: [PATCH] revert widgets/graphical-navigation.php --- widgets/graphical-navigation.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/widgets/graphical-navigation.php b/widgets/graphical-navigation.php index 181c7b8..c4c0468 100644 --- a/widgets/graphical-navigation.php +++ b/widgets/graphical-navigation.php @@ -67,7 +67,7 @@ class widget_comicpress_graphical_navigation extends WP_Widget { $ok = !empty($instance['archive_path']); break; } - + ob_start(); switch ($which) { case 'first': @@ -75,9 +75,9 @@ class widget_comicpress_graphical_navigation extends WP_Widget { case 'previous': case 'story_prev': case 'story_next': - $link = get_permalink($target); case 'next': - if ($instance['nextgohome'] == 'on') { $link = get_bloginfo('url'); } + $link = get_permalink($target->ID); + if (($which == 'next') && ($instance['nextgohome'] == 'on')) { $link = get_bloginfo('url'); } if ($ok) { ?>get_post_nav($post); $storyline_to_nav_mapping = array( - 'story_prev' => 'storyline-previous', - 'story_next' => 'storyline-next' + 'story_prev' => 'storyline-chapter-previous', + 'story_next' => 'storyline-chapter-next' ); $nav_links = array();