Index: trunk/extensions/ImageMap/ImageMap_body.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | const NONE = 4; |
29 | 29 | |
30 | 30 | static function render( $input, $params, $parser ) { |
31 | | - global $wgScriptPath, $wgUser, $wgUrlProtocols, $wgNoFollowLinks, $wgAllowExternalImages; |
| 31 | + global $wgScriptPath, $wgUser, $wgUrlProtocols, $wgNoFollowLinks; |
32 | 32 | wfLoadExtensionMessages( 'ImageMap' ); |
33 | 33 | |
34 | 34 | $lines = explode( "\n", $input ); |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | if (is_null($title)) |
135 | 135 | return self::error('imagemap_invalid_title', $lineNum); |
136 | 136 | $alt = $title->getFullText(); |
137 | | - } elseif ( in_array( substr( $link , 1 , strpos($link, '//' )+1 ) , $wgUrlProtocols ) || in_array( substr( $link , 1 , strpos($link, ':' ) ) , $wgUrlProtocols ) && $wgAllowExternalImages ) { |
| 137 | + } elseif ( in_array( substr( $link , 1 , strpos($link, '//' )+1 ) , $wgUrlProtocols ) || in_array( substr( $link , 1 , strpos($link, ':' ) ) , $wgUrlProtocols ) ) { |
138 | 138 | if ( preg_match( '/^ \[ ([^\s]*+) \s ([^\]]*+) \] \w* $ /x', $link, $m ) ) { |
139 | 139 | $title = $m[1]; |
140 | 140 | $alt = trim( $m[2] ); |