From e3293aa73ec4c2c990cbd709706c1f122470cc8e Mon Sep 17 00:00:00 2001 From: Krinkle Date: Sat, 17 Sep 2011 18:03:18 +0000 Subject: [PATCH] Use Skin->getCategories() instead of Skin->getCategoryLinks() and manually wrapping the #catlinks element around it. This to use the centralized output control, no need to duplicate the IDs and class names here. * Also removing the conditional addition of
, which is no longer needed since
is a block level element which downs;t need a line break to start on a new line (this
) hasn't been needed since it's an unordered list (r92054) * Follows-up r92054 and it's CR --- skins/CologneBlue.php | 7 +++---- skins/Nostalgia.php | 5 +---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index ad0dc6f6ee..3e5bc0f310 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -77,10 +77,9 @@ class CologneBlueTemplate extends LegacyTemplate { $s .= ''; $s .= str_replace( '
', '', $this->otherLanguages() ); - $cat = ''; - if( $cat ) { - $s .= "
$cat\n"; - } + + $s .= $this->getSkin()->getCategories(); + $s .= '
' . $this->pageTitleLinks(); $s .= '
'; diff --git a/skins/Nostalgia.php b/skins/Nostalgia.php index d77a930614..21d3578d81 100644 --- a/skins/Nostalgia.php +++ b/skins/Nostalgia.php @@ -54,10 +54,7 @@ class NostalgiaTemplate extends LegacyTemplate { $s .= '
' . $ol; } - $cat = ''; - if( $cat ) { - $s .= '
' . $cat; - } + $s .= $this->getSkin()->getCategories(); $s .= "

\n\n"; $s .= "\n
"; -- 2.20.1