$sk = $wgUser->getSkin();
$id = User::idFromName( $nt->getText() );
- if ( 0 == $id ) { $ul = $nt->getText(); }
- else {
+ if ( 0 == $id ) {
+ $ul = $nt->getText();
+ } else {
$ul = $sk->makeKnownLink( $nt->getPrefixedText(), $nt->getText() );
}
+ $talk = $nt->getTalkPage();
+ if( $talk )
+ $ul .= " (" . $sk->makeLinkObj( $talk, $wgLang->getNsText(Namespace::getTalk(0)) ) . ")";
+ else
+ $ul .= "brrrp";
$wgOut->setSubtitle( wfMsg( "contribsub", $ul ) );
if ( ! isset( $hideminor ) ) {
wfProfileOut( $fname );
return true;
}
+
+ function getTalkPage() {
+ return Title::makeTitle( Namespace::getTalk( $this->getNamespace() ), $this->getDBkey() );
+ }
+
+ function getSubjectPage() {
+ return Title::makeTitle( Namespace::getSubject( $this->getNamespace() ), $this->getDBkey() );
+ }
}
?>