From: <var...@us...> - 2009-08-07 08:21:12
|
Revision: 7065 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7065&view=rev Author: vargenau Date: 2009-08-07 08:21:01 +0000 (Fri, 07 Aug 2009) Log Message: ----------- Make Help/LinkIcons work for Gforge Modified Paths: -------------- trunk/lib/InlineParser.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2009-08-07 05:02:25 UTC (rev 7064) +++ trunk/lib/InlineParser.php 2009-08-07 08:21:01 UTC (rev 7065) @@ -1064,8 +1064,12 @@ // It's not a Mediawiki template, it's a Wikicreole image if (is_image($imagename)) { if ($imagename[0] == '/') { - // We should not hardcode "/phpwiki" - return LinkImage(SERVER_URL . "/phpwiki" . $imagename, $alt); + if (defined('GFORGE') and GFORGE) { + return LinkImage("/wiki" . $imagename, $alt); + } else { + // We should not hardcode "/phpwiki" + return LinkImage(SERVER_URL . "/phpwiki" . $imagename, $alt); + } } else { return LinkImage(getUploadDataPath() . $imagename, $alt); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |