* @param $action String: action that was denied or null if unknown
*/
public function readOnlyPage( $source = null, $protected = false, $reasons = array(), $action = null ) {
- global $wgUser, $wgEnableInterwikiTranscluding, $wgEnableInterwikiTemplatesTracking;
- $skin = $wgUser->getSkin();
+ global $wgEnableInterwikiTranscluding, $wgEnableInterwikiTemplatesTracking;
$this->setRobotPolicy( 'noindex,nofollow' );
$this->setArticleRelated( false );
</div>
" );
if ( $wgEnableInterwikiTranscluding && $wgEnableInterwikiTemplatesTracking ) {
+ $distantTemplates = Linker::formatDistantTemplates( $article->getUsedDistantTemplates() );
$this->addHTML( "<div class='distantTemplatesUsed'>
-{$skin->formatDistantTemplates( $article->getUsedDistantTemplates( ) )}
+$distantTemplates
</div>
" );
- }
+ }
}
# If the title doesn't exist, it's fairly pointless to print a return