From: Alexandre Emsenhuber Date: Mon, 21 Nov 2011 14:09:13 +0000 (+0000) Subject: Use WikiPage instead of Article to call getUsedTemplates() X-Git-Tag: 1.31.0-rc.0~26373 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=02444c03901876da5c59c80b81cf454a81e76291;p=lhc%2Fweb%2Fwiklou.git Use WikiPage instead of Article to call getUsedTemplates() --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index eb25e6a523..93fd649c38 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2204,8 +2204,8 @@ class OutputPage extends ContextSource { $this->addHTML( Html::element( 'textarea', $params, $source ) ); // Show templates used by this article - $article = new Article( $this->getTitle() ); - $templates = Linker::formatTemplates( $article->getUsedTemplates() ); + $page = WikiPage::factory( $this->getTitle() ); + $templates = Linker::formatTemplates( $page->getUsedTemplates() ); $this->addHTML( "
$templates