ImagePage: Inherit parent's handling for action=render
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 18 Oct 2018 03:06:23 +0000 (05:06 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 18 Oct 2018 03:08:11 +0000 (05:08 +0200)
commit5f2cb872b587a601a6a07624802e7b56d76e2e95
tree4abcb686d738b55c425d278b3e27fb0e2f3a10b3
parentc5a5b022400318e52638a4d34369ddbb74d7a21b
ImagePage: Inherit parent's handling for action=render

ImagePage::render() was calling parent::view() instead of
parent::render(), thus skipping Article::render() entirely.
Therefore the logic to disable section edit links (and also,
to add an 'X-Robots-Tag: noindex' header) was not being used.
This fixes T65891 and T21415 for pages in 'File:' namespace.

Bug: T206546
Change-Id: I36ae716c9a363ae29b7a785cc41430301250baba
includes/page/Article.php
includes/page/ImagePage.php