/**#@-*/
protected $mRevisionId; // The revision ID we're looking at, null if not applicable.
protected $skinname = 'standard';
- protected $mTitle = null;
+ // @fixme Should be protected :-\
+ var $mTitle = null;
/** Constructor, call parent constructor */
function Skin() { parent::__construct(); }
}
function getUndeleteLink() {
- global $wgUser, $wgContLang, $wgLang, $action;
- if( $wgUser->isAllowed( 'deletedhistory' ) &&
- ( ( $this->mTitle->getArticleId() == 0 ) || ( $action == 'history' ) ) &&
- ( $n = $this->mTitle->isDeleted() ) ){
+ global $wgUser, $wgContLang, $wgLang, $wgRequest;
+
+ $action = $wgRequest->getVal( 'action', 'view' );
+
+ if ( $wgUser->isAllowed( 'deletedhistory' ) &&
+ ( $this->mTitle->getArticleId() == 0 || $action == 'history' ) &&
+ $n = $this->mTitle->isDeleted() ) {
if ( $wgUser->isAllowed( 'undelete' ) ) {
$msg = 'thisisdeleted';
} else {
wfProfileOut( __METHOD__ );
return $bar;
}
-}
\ No newline at end of file
+}