From 4754476a1a6f43d1df362ba6250ae9175087205e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 31 May 2004 09:04:50 +0000 Subject: [PATCH] Include category links in nostalgia & cologne blue skins. --- includes/Skin.php | 8 ++++++-- includes/SkinCologneBlue.php | 4 +++- includes/SkinNostalgia.php | 3 +++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index ddcfdf39bb..873be4147b 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -358,7 +358,7 @@ class Skin { return $s; } - function getCategories () { + function getCategoryLinks () { global $wgOut, $wgTitle, $wgUser, $wgParser; global $wgUseCategoryMagic; if( !$wgUseCategoryMagic ) return "" ; @@ -369,7 +369,11 @@ class Skin { $s = $this->makeKnownLink( "Special:Categories", wfMsg( "categories" ), "article=" . urlencode( $wgTitle->getPrefixedDBkey() ) ) . ": " . $t; - return ""; + return $s; + } + + function getCategories() { + return ""; } function getQuickbarCompensator( $rows = 1 ) diff --git a/includes/SkinCologneBlue.php b/includes/SkinCologneBlue.php index 09336459db..c0c2a3b6c7 100644 --- a/includes/SkinCologneBlue.php +++ b/includes/SkinCologneBlue.php @@ -32,7 +32,9 @@ class SkinCologneBlue extends Skin { $s .= "" ; $s .= "" ; - $s .= str_replace ( "
" , "" , $this->otherLanguages() ) ; + $s .= str_replace ( "
" , "" , $this->otherLanguages() ); + $cat = $this->getCategoryLinks(); + if( $cat ) $s .= "
$cat\n"; $s .= "
" . $this->pageTitleLinks(); $s .= "
"; diff --git a/includes/SkinNostalgia.php b/includes/SkinNostalgia.php index 3d990ee670..e402ba6e08 100644 --- a/includes/SkinNostalgia.php +++ b/includes/SkinNostalgia.php @@ -28,6 +28,9 @@ class SkinNostalgia extends Skin { $ol = $this->otherLanguages(); if($ol) $s .= "
" . $ol; + + $cat = $this->getCategoryLinks(); + if($cat) $s .= "
" . $cat; $s .= "

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