if (wfEmptyMsg($line[0], $link))
$link = $line[0];
$href = $this->makeInternalOrExternalUrl( $link );
- $active = ( $pageurl == $href );
$bar[$heading][] = array(
'text' => $text,
'href' => $href,
'id' => 'n-' . strtr($line[1], ' ', '-'),
- 'active' => $active,
- 'dolink' => ( !$active || ($action != 'view' && $action != 'purge' ) )
+ 'active' => ( $pageurl == $href )
);
} else { continue; }
}
if ( $val['active'] ) echo ' class="active"';
echo '>';
if ( $val['active'] ) echo '<strong>';
- if ( $val['dolink'] ) echo '<a href="' . htmlspecialchars($val['href']) . '">';
- echo htmlspecialchars($val['text']);
+ echo '<a href="' . htmlspecialchars($val['href']) . '">' . htmlspecialchars($val['text']) . '</a>';
if ( $val['active'] ) echo '</strong>';
- if ( $val['dolink'] ) echo '</a>';
echo '</li>';
} ?>
</ul>