http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97818
Revision: 97818
Author: reedy
Date: 2011-09-22 15:09:45 +0000 (Thu, 22 Sep 2011)
Log Message:
-----------
1.18wmf1 MFT r97817
Modified Paths:
--------------
branches/wmf/1.18wmf1/includes/Linker.php
Modified: branches/wmf/1.18wmf1/includes/Linker.php
===================================================================
--- branches/wmf/1.18wmf1/includes/Linker.php 2011-09-22 15:08:32 UTC (rev
97817)
+++ branches/wmf/1.18wmf1/includes/Linker.php 2011-09-22 15:09:45 UTC (rev
97818)
@@ -1218,7 +1218,9 @@
# Media link; trail not supported.
$linkRegexp = '/\[\[(.*?)\]\]/';
$title = Title::makeTitleSafe( NS_FILE, $submatch[1] );
- $thelink = self::makeMediaLinkObj( $title, $text );
+ if ( $title ) {
+ $thelink = self::makeMediaLinkObj( $title,
$text );
+ }
} else {
# Other kind of link
if ( preg_match( $wgContLang->linkTrail(), $match[4],
$submatch ) ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs