Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -107,6 +107,11 @@ |
108 | 108 | $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
109 | 109 | $wgOut->setPageTitle( $this->mTitle->getPrefixedText() ); |
110 | 110 | $this->viewUpdates(); |
| 111 | + |
| 112 | + # And also show "redirected from" message |
| 113 | + $sk = $wgUser->getSkin(); |
| 114 | + $redir = $sk->makeKnownLinkObj( $this->mRedirectedFrom, '', 'redirect=no' ); |
| 115 | + $wgOut->setSubtitle( wfMsgExt( 'redirectedfrom', array( 'parseinline', 'replaceafter' ), $redir ) ); |
111 | 116 | } |
112 | 117 | |
113 | 118 | # Show shared description, if needed |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -460,6 +460,7 @@ |
461 | 461 | file extension (e.g. Foo. jpg). |
462 | 462 | * Ensure that all HTML id's begin with a letter as required by XHTML standard |
463 | 463 | * Image moving over an existing file no longer throws a database error |
| 464 | +* (bug 14117) Image redirects from the shared repo now show "redirected from" |
464 | 465 | |
465 | 466 | === API changes in 1.14 === |
466 | 467 | |