From: Brion Vibber Date: Mon, 31 May 2004 09:04:50 +0000 (+0000) Subject: Include category links in nostalgia & cologne blue skins. X-Git-Tag: 1.5.0alpha1~3118 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=4754476a1a6f43d1df362ba6250ae9175087205e;p=lhc%2Fweb%2Fwiklou.git Include category links in nostalgia & cologne blue skins. --- 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
";