From: <var...@us...> - 2009-01-08 09:56:59
|
Revision: 6381 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6381&view=rev Author: vargenau Date: 2009-01-08 09:56:52 +0000 (Thu, 08 Jan 2009) Log Message: ----------- Use is_image Modified Paths: -------------- trunk/lib/InlineParser.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2009-01-08 09:47:02 UTC (rev 6380) +++ trunk/lib/InlineParser.php 2009-01-08 09:56:52 UTC (rev 6381) @@ -937,10 +937,7 @@ } // It's not a Mediawiki template, it's a Wikicreole image - if ((string_ends_with($imagename, ".jpg")) - or (string_ends_with($imagename, ".jpeg")) - or (string_ends_with($imagename, ".gif")) - or (string_ends_with($imagename, ".png"))) { + if (is_image($imagename)) { return LinkImage(UPLOAD_DATA_PATH . $imagename, $alt); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |