* Replace spaces with - in the XHTML id for the sidebar
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 10 Jul 2005 22:38:53 +0000 (22:38 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 10 Jul 2005 22:38:53 +0000 (22:38 +0000)
includes/Skin.php

index 5ef9dce..458a7a2 100644 (file)
@@ -1309,7 +1309,7 @@ END;
                                        $bar[$heading][] = array(
                                                'text' => wfMsg( $line[1] ),
                                                'href' => $this->makeInternalOrExternalUrl( $link ),
-                                               'id' => 'n-' . $line[1],
+                                               'id' => 'n-' . strtr($line[1], ' ', '-'),
                                        );
                                } else { continue; }
                        }