From: <var...@us...> - 2009-01-27 14:45:17
|
Revision: 6457 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6457&view=rev Author: vargenau Date: 2009-01-27 14:45:01 +0000 (Tue, 27 Jan 2009) Log Message: ----------- Mediawiki compatibility: allow "Image:" and "File:" as synonyms of "Upload:" Modified Paths: -------------- trunk/lib/InlineParser.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2009-01-27 14:25:00 UTC (rev 6456) +++ trunk/lib/InlineParser.php 2009-01-27 14:45:01 UTC (rev 6457) @@ -354,6 +354,15 @@ $rawlink = $temp; } + // Mediawiki compatibility: allow "Image:" and "File:" + // as synonyms of "Upload:" + if (string_starts_with($rawlink, "Image:")) { + $rawlink = str_replace("Image:", "Upload:", $rawlink); + } + if (string_starts_with($rawlink, "File:")) { + $rawlink = str_replace("File:", "Upload:", $rawlink); + } + $label = UnWikiEscape($label); /* * Check if the user has typed a explicit URL. This solves the This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |