Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2204,8 +2204,8 @@ |
2205 | 2205 | $this->addHTML( Html::element( 'textarea', $params, $source ) ); |
2206 | 2206 | |
2207 | 2207 | // Show templates used by this article |
2208 | | - $article = new Article( $this->getTitle() ); |
2209 | | - $templates = Linker::formatTemplates( $article->getUsedTemplates() ); |
| 2208 | + $page = WikiPage::factory( $this->getTitle() ); |
| 2209 | + $templates = Linker::formatTemplates( $page->getUsedTemplates() ); |
2210 | 2210 | $this->addHTML( "<div class='templatesUsed'> |
2211 | 2211 | $templates |
2212 | 2212 | </div> |