X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fpage%2FImagePage.php;h=c879a8807ce942c38360144bf134abb88d2cc7c2;hb=98744107cd35d76a813ed43354cd428fa50984b1;hp=5382c55323ed4c92ec3c54b1ab8fb19a5ff25559;hpb=ade27ecba307a72e822e72e200f3b333904af81c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index 5382c55323..c879a8807c 100644 --- a/includes/page/ImagePage.php +++ b/includes/page/ImagePage.php @@ -86,18 +86,15 @@ class ImagePage extends Article { $this->repo = $img->getRepo(); } - /** - * Handler for action=render - * Include body text only; none of the image extras - */ - public function render() { - $this->getContext()->getOutput()->setArticleBodyOnly( true ); - parent::view(); - } - public function view() { global $wgShowEXIF; + // For action=render, include body text only; none of the image extras + if ( $this->viewIsRenderAction ) { + parent::view(); + return; + } + $out = $this->getContext()->getOutput(); $request = $this->getContext()->getRequest(); $diff = $request->getVal( 'diff' );