}
function doAfterContent(){
- global $wgOut, $wgLang;
+ global $wgLang;
$s = "\n</div><br clear='all' />\n";
$s .= $this->bottomLinks();
$s .= $wgLang->pipeList( array(
- "\n<br />" . $this->makeKnownLinkObj( Title::newMainPage() ),
+ "\n<br />" . $this->link(
+ Title::newMainPage(),
+ null,
+ array(),
+ array(),
+ array( 'known', 'noclasses' )
+ ),
$this->aboutLink(),
$this->searchForm( wfMsg( 'qbfind' ) )
) );
}
function sysLinks() {
- global $wgUser, $wgLang, $wgContLang, $wgTitle;
- $li = $wgContLang->specialPage( 'Userlogin' );
- $lo = $wgContLang->specialPage( 'Userlogout' );
+ global $wgUser, $wgLang, $wgContLang;
+ $li = SpecialPage::getTitleFor( 'Userlogin' );
+ $lo = SpecialPage::getTitleFor( 'Userlogout' );
- $rt = $wgTitle->getPrefixedURL();
+ $rt = $this->mTitle->getPrefixedURL();
if ( 0 == strcasecmp( urlencode( $lo ), $rt ) ) {
- $q = '';
+ $q = array();
} else {
- $q = "returnto={$rt}";
+ $q = array( 'returnto' => $rt );
}
$s = array(
$this->mainPageLink(),
- $this->makeKnownLink( wfMsgForContent( 'aboutpage' ), wfMsg( 'about' ) ),
- $this->makeKnownLink( wfMsgForContent( 'helppage' ), wfMsg( 'help' ) ),
- $this->makeKnownLink( wfMsgForContent( 'faqpage' ), wfMsg( 'faq' ) ),
+ $this->linkKnown(
+ Title::newFromText( wfMsgForContent( 'aboutpage' ) ),
+ wfMsg( 'about' )
+ ),
+ $this->linkKnown(
+ Title::newFromText( wfMsgForContent( 'helppage' ) ),
+ wfMsg( 'help' )
+ ),
+ $this->linkKnown(
+ Title::newFromText( wfMsgForContent( 'faqpage' ) ),
+ wfMsg( 'faq' )
+ ),
$this->specialLink( 'specialpages' )
);
$s[] = $this->extensionTabLinks();
}
if ( $wgUser->isLoggedIn() ) {
- $s[] = $this->makeKnownLink( $lo, wfMsg( 'logout' ), $q );
+ $s[] = $this->linkKnown(
+ $lo,
+ wfMsg( 'logout' ),
+ array(),
+ $q
+ );
} else {
- $s[] = $this->makeKnownLink( $li, wfMsg( 'login' ), $q );
+ $s[] = $this->linkKnown(
+ $li,
+ wfMsg( 'login' ),
+ array(),
+ $q
+ );
}
return $wgLang->pipeList( $s );
* @access private
*/
function quickBar(){
- global $wgOut, $wgTitle, $wgUser, $wgEnableUploads;
+ global $wgOut, $wgUser, $wgEnableUploads;
- $tns = $wgTitle->getNamespace();
+ $tns = $this->mTitle->getNamespace();
$s = "\n<div id='quickbar'>";
$s .= $this->menuHead( 'qbedit' );
$s .= '<strong>' . $this->editThisPage() . '</strong>';
- $s .= $sep . $this->makeKnownLink( wfMsgForContent( 'edithelppage' ), wfMsg( 'edithelp' ) );
+ $s .= $sep . $this->linkKnown(
+ Title::newFromText( wfMsgForContent( 'edithelppage' ) ),
+ wfMsg( 'edithelp' )
+ );
if( $wgUser->isLoggedIn() ) {
$s .= $sep . $this->moveThisPage();
. $sep . $this->watchPageLinksLink();
if( $tns == NS_USER || $tns == NS_USER_TALK ) {
- $id = User::idFromName( $wgTitle->getText() );
+ $id = User::idFromName( $this->mTitle->getText() );
if( $id != 0 ) {
$s .= $sep . $this->userContribsLink();
if( $this->showEmailUser( $id ) ) {
$s .= $this->menuHead( 'qbmyoptions' );
if ( $wgUser->isLoggedIn() ) {
$name = $wgUser->getName();
- $tl = $this->makeKnownLinkObj( $wgUser->getTalkPage(),
- wfMsg( 'mytalk' ) );
+ $tl = $this->link(
+ $wgUser->getTalkPage(),
+ wfMsg( 'mytalk' ),
+ array(),
+ array(),
+ array( 'known', 'noclasses' )
+ );
if ( $wgUser->getNewtalk() ) {
$tl .= " *";
}
- $s .= $this->makeKnownLinkObj( $wgUser->getUserPage(),
- wfMsg( 'mypage' ) )
+ $s .= $this->link(
+ $wgUser->getUserPage(),
+ wfMsg( 'mypage' ),
+ array(),
+ array(),
+ array( 'known', 'noclasses' )
+ )
. $sep . $tl
. $sep . $this->specialLink( 'watchlist' )
- . $sep . $this->makeKnownLinkObj( SpecialPage::getSafeTitleFor( 'Contributions', $wgUser->getName() ),
- wfMsg( 'mycontris' ) )
- . $sep . $this->specialLink( 'preferences' )
- . $sep . $this->specialLink( 'userlogout' );
+ . $sep . $this->link(
+ SpecialPage::getSafeTitleFor( 'Contributions', $wgUser->getName() ),
+ wfMsg( 'mycontris' ),
+ array(),
+ array(),
+ array( 'known', 'noclasses' )
+ )
+ . $sep . $this->specialLink( 'preferences' )
+ . $sep . $this->specialLink( 'userlogout' );
} else {
$s .= $this->specialLink( 'userlogin' );
}
if ( $wgUser->isLoggedIn() && $wgEnableUploads ) {
$s .= $sep . $this->specialLink( 'upload' );
}
+
global $wgSiteSupportPage;
+
if( $wgSiteSupportPage ) {
$s .= $sep . '<a href="' . htmlspecialchars( $wgSiteSupportPage ) . '" class="internal">'
. wfMsg( 'sitesupport' ) . '</a>';
}
- $s .= $sep . $this->makeKnownLinkObj(
+ $s .= $sep . $this->link(
SpecialPage::getTitleFor( 'Specialpages' ),
- wfMsg( 'moredotdotdot' ) );
+ wfMsg( 'moredotdotdot' ),
+ array(),
+ array(),
+ array( 'known', 'noclasses' )
+ );
$s .= $sep . "\n</div>\n";
return $s;
return $s;
}
-}
\ No newline at end of file
+}