/**#@-*/
protected $mRevisionId; // The revision ID we're looking at, null if not applicable.
protected $skinname = 'standard';
+ protected $mTitle = null;
/** Constructor, call parent constructor */
function Skin() { parent::__construct(); }
public function setTitle( $t ) {
$this->mTitle = $t;
}
+
+ /** Get the title */
+ public function getTitle() {
+ return $this->mTitle;
+ }
function outputPage( OutputPage $out ) {
global $wgDebugComments;
wfProfileOut( __METHOD__ );
return $bar;
}
-}
+}
\ No newline at end of file
$this->mSkin =& Skin::newFromKey( $userSkin );
wfProfileOut( __METHOD__ );
}
- if ( !$t ) {
- global $wgOut;
- $t = $wgOut->getTitle();
+ if( $t || !$this->mSkin->getTitle() ) {
+ if ( !$t ) {
+ global $wgOut;
+ $t = $wgOut->getTitle();
+ }
+ $this->mSkin->setTitle( $t );
}
- $this->mSkin->setTitle( $t );
return $this->mSkin;
}
return true;
}
-}
+}
\ No newline at end of file