return $s;
}
- function getCategories () {
+ function getCategoryLinks () {
global $wgOut, $wgTitle, $wgUser, $wgParser;
global $wgUseCategoryMagic;
if( !$wgUseCategoryMagic ) return "" ;
$s = $this->makeKnownLink( "Special:Categories",
wfMsg( "categories" ), "article=" . urlencode( $wgTitle->getPrefixedDBkey() ) )
. ": " . $t;
- return "<p class='catlinks'>$s</p>";
+ return $s;
+ }
+
+ function getCategories() {
+ return "<p class='catlinks'>" . $this->getCategoryLinks() . "</p>";
}
function getQuickbarCompensator( $rows = 1 )
$s .= "</td><td align='right'>" ;
$s .= "<font size='-1'><span id='langlinks'>" ;
- $s .= str_replace ( "<br>" , "" , $this->otherLanguages() ) ;
+ $s .= str_replace ( "<br>" , "" , $this->otherLanguages() );
+ $cat = $this->getCategoryLinks();
+ if( $cat ) $s .= "<br />$cat\n";
$s .= "<br />" . $this->pageTitleLinks();
$s .= "</span></font>";
$ol = $this->otherLanguages();
if($ol) $s .= "<br />" . $ol;
+
+ $cat = $this->getCategoryLinks();
+ if($cat) $s .= "<br />" . $cat;
$s .= "<br clear='all' /><hr />\n</div>\n";
$s .= "\n<div id='article'>";