Page MenuHomePhabricator

ImagePageRedirect.diff

Authored By
bzimport
Nov 21 2014, 11:33 PM
Size
952 B
Referenced Files
None
Subscribers
None

ImagePageRedirect.diff

Index: ImagePage.php
===================================================================
--- ImagePage.php (revision 83254)
+++ ImagePage.php (working copy)
@@ -77,16 +77,11 @@
// mTitle is the same as the redirect target so ask Article
// to perform the redirect for us.
$wgRequest->setVal( 'diffonly', 'true' );
- return parent::view();
- } else {
- // mTitle is not the same as the redirect target so it is
- // probably the redirect page itself. Fake the redirect symbol
- $wgOut->setPageTitle( $this->mTitle->getPrefixedText() );
- $wgOut->addHTML( $this->viewRedirect( Title::makeTitle( NS_FILE, $this->img->getName() ),
- /* $appendSubtitle */ true, /* $forceKnown */ true ) );
- $this->viewUpdates();
- return;
}
+ // Else mTitle is not the same as the redirect target so it is
+ // probably the redirect page itself.
+
+ return parent::view();
}
$this->showRedirectedFromHeader();

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7294
Default Alt Text
ImagePageRedirect.diff (952 B)

Event Timeline