Revert r45191 "* (bug 14117) Image redirects from the shared repo now show "redirecte...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 31 Dec 2008 22:06:22 +0000 (22:06 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 31 Dec 2008 22:06:22 +0000 (22:06 +0000)
Seems to be bizarrely adding a "redirected from" subtitle to *every* shared image page view, instead of to redirects. WTF?

RELEASE-NOTES
includes/ImagePage.php

index b1a48c2..46642dc 100644 (file)
@@ -461,7 +461,6 @@ The following extensions are migrated into MediaWiki 1.14:
   file extension (e.g. Foo. jpg).
 * Ensure that all HTML id's begin with a letter as required by XHTML standard
 * Image moving over an existing file no longer throws a database error
-* (bug 14117) Image redirects from the shared repo now show "redirected from"
 * (bug 16786) Restored "redundant" links recently removed from Classic sidebar
 
 
index 870d7c3..aa5295e 100644 (file)
@@ -107,11 +107,6 @@ class ImagePage extends Article {
                        $wgOut->setRobotPolicy( 'noindex,nofollow' );
                        $wgOut->setPageTitle( $this->mTitle->getPrefixedText() );
                        $this->viewUpdates();
-
-                       # And also show "redirected from" message
-                       $sk = $wgUser->getSkin();
-                       $redir = $sk->makeKnownLinkObj( $this->mRedirectedFrom, '', 'redirect=no' );
-                       $wgOut->setSubtitle( wfMsgExt( 'redirectedfrom', array( 'parseinline', 'replaceafter' ), $redir ) );
                }
 
                # Show shared description, if needed