From: <var...@us...> - 2009-08-07 05:02:38
|
Revision: 7064 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7064&view=rev Author: vargenau Date: 2009-08-07 05:02:25 +0000 (Fri, 07 Aug 2009) Log Message: ----------- Make predefined icons work in both Gforge and plain Phpwiki Modified Paths: -------------- trunk/lib/InlineParser.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2009-08-06 15:18:47 UTC (rev 7063) +++ trunk/lib/InlineParser.php 2009-08-07 05:02:25 UTC (rev 7064) @@ -1045,7 +1045,11 @@ ); foreach ($predefinedicons as $ascii => $icon) { if (trim($page) == $ascii) { - return LinkImage("/wiki/themes/default/images/$icon", $page); + if (defined('GFORGE') and GFORGE) { + return LinkImage("/wiki/themes/default/images/$icon", $page); + } else { + return LinkImage(SERVER_URL . "/phpwiki/themes/default/images/$icon", $page); + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |