Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7766
ImagePageRedirect.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:33 PM
2014-11-21 23:33:27 (UTC+0)
Size
952 B
Referenced Files
None
Subscribers
None
ImagePageRedirect.diff
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7294
Default Alt Text
ImagePageRedirect.diff (952 B)
Attached To
Mode
T29857: Content (including categories) not showing on file redirects
Attached
Detach File
Event Timeline
Log In to Comment