Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5946
imagelink.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:47 PM
2014-11-21 22:47:09 (UTC+0)
Size
663 B
Referenced Files
None
Subscribers
None
imagelink.patch
View Options
This document is not UTF8. It was detected as Shift JIS and converted to UTF8 for display.
Index: MediaTransformOutput.php
===================================================================
--- MediaTransformOutput.php (r騅ision 63210)
+++ MediaTransformOutput.php (copie de travail)
@@ -155,6 +155,13 @@
if ( !empty( $options['custom-url-link'] ) ) {
$linkAttribs = array( 'href' => $options['custom-url-link'] );
+ global $wgExternalLinkTarget,$wgNoFollowLinks;
+ if ( isset( $wgExternalLinkTarget ) ) {
+ $linkAttribs['target'] = $wgExternalLinkTarget;
+ }
+ if ( $wgNoFollowLinks ) {
+ $linkAttribs['rel'] = 'nofollow';
+ }
if ( !empty( $options['title'] ) ) {
$linkAttribs['title'] = $options['title'];
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5494
Default Alt Text
imagelink.patch (663 B)
Attached To
Mode
T23364: "link=" parameter in [[Image: ignores $wgExternalLinkTarget
Attached
Detach File
Event Timeline
Log In to Comment