fix twice-used variable
This commit is contained in:
parent
b6ced3f531
commit
609c5dbfa0
|
@ -87,16 +87,16 @@ class WidgetComicPressGraphicalStorylineNavigation extends WP_Widget {
|
|||
case 'story_next':
|
||||
case 'story_prev_in':
|
||||
case 'story_next_in':
|
||||
$ok = false;
|
||||
$obj_ok = false;
|
||||
$navi_class_names = array("navi-${which}");
|
||||
if (is_object($target)) {
|
||||
$ok = true;
|
||||
$obj_ok = true;
|
||||
if (isset($css_name_mapping[$which])) { $navi_class_names[] = "navi-{$css_name_mapping[$which]}"; }
|
||||
|
||||
$link = get_permalink($target->ID);
|
||||
if (($which == 'last') && ($instance['lastgohome'] == 'on')) { $link = get_bloginfo('url'); }
|
||||
}
|
||||
if ($ok) {
|
||||
if ($ok && $obj_ok) {
|
||||
?><a href="<?php echo $link; ?>"
|
||||
class="navi <?php echo implode(" ", $navi_class_names); ?>"
|
||||
title="<?php echo $instance["${which}_title"]; ?>"><?php echo htmlspecialchars_decode($instance["${which}_title"]); ?></a><?php
|
||||
|
|
Loading…
Reference in New Issue