r85266 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85265‎ | r85266 | r85267 >
Date:17:46, 3 April 2011
Author:aaron
Status:ok
Tags:
Comment:
Avoid using skin->mTitle
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticleView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php
@@ -1144,7 +1144,7 @@
11451145 }
11461146 // Check if we should show a stabilization tab
11471147 if (
1148 - !$skin->mTitle->isTalkPage() &&
 1148+ !$this->article->getTitle()->isTalkPage() &&
11491149 is_array( $actions ) &&
11501150 !isset( $actions['protect'] ) &&
11511151 !isset( $actions['unprotect'] ) &&
@@ -1171,7 +1171,7 @@
11721172 public function setViewTabs( Skin $skin, array &$views, $type ) {
11731173 global $wgRequest;
11741174 $this->load();
1175 - if ( $skin->mTitle->isTalkPage() ) {
 1175+ if ( $this->article->getTitle()->isTalkPage() ) {
11761176 return true; // leave talk pages alone
11771177 }
11781178 // Get the type of action requested

Status & tagging log