Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2055,8 +2055,7 @@ |
2056 | 2056 | * @param $action String: action that was denied or null if unknown |
2057 | 2057 | */ |
2058 | 2058 | public function readOnlyPage( $source = null, $protected = false, $reasons = array(), $action = null ) { |
2059 | | - global $wgUser, $wgEnableInterwikiTranscluding, $wgEnableInterwikiTemplatesTracking; |
2060 | | - $skin = $wgUser->getSkin(); |
| 2059 | + global $wgEnableInterwikiTranscluding, $wgEnableInterwikiTemplatesTracking; |
2061 | 2060 | |
2062 | 2061 | $this->setRobotPolicy( 'noindex,nofollow' ); |
2063 | 2062 | $this->setArticleRelated( false ); |
— | — | @@ -2107,12 +2106,13 @@ |
2108 | 2107 | </div> |
2109 | 2108 | " ); |
2110 | 2109 | if ( $wgEnableInterwikiTranscluding && $wgEnableInterwikiTemplatesTracking ) { |
| 2110 | + $distantTemplates = Linker::formatDistantTemplates( $article->getUsedDistantTemplates() ); |
2111 | 2111 | $this->addHTML( "<div class='distantTemplatesUsed'> |
2112 | | -{$skin->formatDistantTemplates( $article->getUsedDistantTemplates( ) )} |
| 2112 | +$distantTemplates |
2113 | 2113 | </div> |
2114 | 2114 | " ); |
| 2115 | + } |
2115 | 2116 | } |
2116 | | - } |
2117 | 2117 | |
2118 | 2118 | # If the title doesn't exist, it's fairly pointless to print a return |
2119 | 2119 | # link to it. After all, you just tried editing it and couldn't, so |