From: Tim Starling Date: Sat, 23 Jul 2005 05:42:49 +0000 (+0000) Subject: fixed broken sidebar X-Git-Tag: 1.5.0beta4~56 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=62c43da0fca0cb68613c798f5c3d2c78adacc56c;p=lhc%2Fweb%2Fwiklou.git fixed broken sidebar --- diff --git a/skins/disabled/HTMLDump.php b/skins/disabled/HTMLDump.php index 7b96e2ff14..8d9d6c6c07 100644 --- a/skins/disabled/HTMLDump.php +++ b/skins/disabled/HTMLDump.php @@ -21,19 +21,21 @@ class SkinHTMLDump extends SkinTemplate { function initPage( &$out ) { SkinTemplate::initPage( $out ); $this->template = 'HTMLDumpTemplate'; - } + } - function getNavigationLinks() { - $links = parent::getNavigationLinks(); - foreach ( $links as $index => $link ) { - if ( $link['href'] == 'recentchanges-url' ) { - unset( $links[$index] ); - } - if ( $link['href'] == 'randompage-url' ) { - unset( $links[$index] ); - } + function buildSidebar() { + $sections = parent::buildSidebar(); + foreach ( $sections as $heading => $section ) { + foreach ( $section as $index => $link ) { + if ( $link['href'] == $this->makeInternalOrExternalUrl( 'recentchanges-url' ) ) { + unset( $sections[$heading][$index] ); + } + if ( $link['href'] == $this->makeInternalOrExternalUrl( 'randompage-url' ) ) { + unset( $sections[$heading][$index] ); + } + } } - return $links; + return $sections; } function buildContentActionUrls() { @@ -154,17 +156,18 @@ class HTMLDumpTemplate extends QuickTemplate { title="msg('mainpage') ?>"> -
-
msg('navigation') ?>
-
+ data['sidebar'] as $bar => $cont) { ?> +
+
msg( $bar ) ?>
+
    - data['navigation_urls'] as $navlink) { ?> -
  • + $val) { ?> +
  • +
+ data['language_urls'] ) { ?>
msg('otherlanguages') ?>