From: <var...@us...> - 2009-02-25 14:11:32
|
Revision: 6561 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6561&view=rev Author: vargenau Date: 2009-02-25 14:11:28 +0000 (Wed, 25 Feb 2009) Log Message: ----------- Handle multiple wikis in Gforge Modified Paths: -------------- trunk/lib/plugin/PluginManager.php Modified: trunk/lib/plugin/PluginManager.php =================================================================== --- trunk/lib/plugin/PluginManager.php 2009-02-25 14:00:13 UTC (rev 6560) +++ trunk/lib/plugin/PluginManager.php 2009-02-25 14:11:28 UTC (rev 6561) @@ -85,6 +85,9 @@ } function _generateTableBody(&$info, &$dbi, &$request, &$table) { + + global $WikiTheme; + $plugin_dir = 'lib/plugin'; if (defined('PHPWIKI_DIR')) $plugin_dir = PHPWIKI_DIR . "/$plugin_dir"; @@ -121,6 +124,9 @@ // make a link if an actionpage exists $pluginNamelink = $pluginName; $pluginDocPageName = _("Help")."/" . $pluginName . "Plugin"; + if (isa($WikiTheme, 'WikiTheme_gforge')) { + $pluginDocPageName = _("Help").":" . $pluginName . "Plugin"; + } $pluginDocPageNamelink = false; $localizedPluginName = ''; @@ -146,6 +152,10 @@ $pluginDocPageNamelink = WikiLink($pluginDocPageName,'if_known'); } + if (isa($WikiTheme, 'WikiTheme_gforge')) { + $pluginDocPageNamelink = WikiLink($pluginDocPageName, 'known'); + } + // highlight alternate rows $row_no++; $group = (int)($row_no / 1); //_group_rows This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |