$li = $wgContLang->specialPage( 'Userlogin' );
$lo = $wgContLang->specialPage( 'Userlogout' );
- $rt = $wgOut->getTitle()->getPrefixedURL();
+ $rt = $this->mTitle->getPrefixedURL();
if ( 0 == strcasecmp( urlencode( $lo ), $rt ) ) {
$q = '';
} else {
function quickBar(){
global $wgOut, $wgUser, $wgEnableUploads;
- $tns = $wgOut->getTitle()->getNamespace();
+ $tns = $this->mTitle->getNamespace();
$s = "\n<div id='quickbar'>";
. $sep . $this->watchPageLinksLink();
if( $tns == NS_USER || $tns == NS_USER_TALK ) {
- $id = User::idFromName( $wgOut->getTitle()->getText() );
+ $id = User::idFromName( $this->mTitle->getText() );
if( $id != 0 ) {
$s .= $sep . $this->userContribsLink();
if( $this->showEmailUser( $id ) ) {
$action = $wgRequest->getText( 'action' );
$wpPreview = $wgRequest->getBool( 'wpPreview' );
- $tns = $wgOut->getTitle()->getNamespace();
+ $tns = $this->mTitle->getNamespace();
$s = "\n<div id='quickbar'>";
$s .= "\n" . $this->logoText() . "\n<hr class='sep' />";
}
// only show watchlist link if logged in
$s .= "\n<hr class='sep' />";
- $articleExists = $wgOut->getTitle()->getArticleId();
+ $articleExists = $this->mTitle->getArticleId();
if ( $wgOut->isArticle() || $action == 'edit' || $action == 'history' || $wpPreview ) {
if( $wgOut->isArticle() ) {
$s .= '<strong>' . $this->editThisPage() . '</strong>';
$text = wfMsg( 'articlepage' );
}
- $link = $wgOut->getTitle()->getText();
+ $link = $this->mTitle->getText();
if( $nstext = $wgContLang->getNsText( $tns ) ) { # add namespace if necessary
$link = $nstext . ':' . $link;
}
$s .= $this->makeLink( $link, $text );
- } elseif( $wgOut->getTitle()->getNamespace() != NS_SPECIAL ) {
+ } elseif( $this->mTitle->getNamespace() != NS_SPECIAL ) {
# we just throw in a "New page" text to tell the user that he's in edit mode,
# and to avoid messing with the separator that is prepended to the next item
$s .= '<strong>' . wfMsg( 'newpage' ) . '</strong>';
}
# "Post a comment" link
- if( ( $wgOut->getTitle()->isTalkPage() || $wgOut->showNewSectionLink() ) && $action != 'edit' && !$wpPreview )
- $s .= '<br />' . $this->makeKnownLinkObj( $wgOut->getTitle(), wfMsg( 'postcomment' ), 'action=edit§ion=new' );
+ if( ( $this->mTitle->isTalkPage() || $wgOut->showNewSectionLink() ) && $action != 'edit' && !$wpPreview )
+ $s .= '<br />' . $this->makeKnownLinkObj( $this->mTitle, wfMsg( 'postcomment' ), 'action=edit§ion=new' );
#if( $tns%2 && $action!='edit' && !$wpPreview) {
#$s.= '<br />'.$this->makeKnownLink($wgTitle->getPrefixedText(),wfMsg('postcomment'),'action=edit§ion=new');
if( $action != 'edit' && $action != 'submit' ){
$s .= $sep . $this->watchThisPage();
}
- if ( $wgOut->getTitle()->userCan( 'edit' ) )
+ if ( $this->mTitle->userCan( 'edit' ) )
$s .= $sep . $this->moveThisPage();
}
if ( $wgUser->isAllowed( 'delete' ) and $articleExists ) {
$s .= $sep . $this->watchPageLinksLink();
}
- if ( NS_USER == $wgOut->getTitle()->getNamespace()
- || $wgOut->getTitle()->getNamespace() == NS_USER_TALK ) {
+ if ( NS_USER == $this->mTitle->getNamespace()
+ || $this->mTitle->getNamespace() == NS_USER_TALK ) {
- $id = User::idFromName( $wgOut->getTitle()->getText() );
- $ip = User::isIP( $wgOut->getTitle()->getText() );
+ $id = User::idFromName( $this->mTitle->getText() );
+ $ip = User::isIP( $this->mTitle->getText() );
if( $id || $ip ){
$s .= $sep . $this->userContribsLink();