There have been a few goes at this!!!
In the very latest code we have:
Code:
function wikiLink($WikiType, $WikiPageID) {
if (strstr($_SESSION['WikiPath'], 'http:')) {
$WikiPath=$_SESSION['WikiPath'];
} else {
$WikiPath='../' . $_SESSION['WikiPath'] . '/';
}
if ($_SESSION['WikiApp']==_('WackoWiki')){
echo '<a target="_blank" href="' . $WikiPath . $WikiType . $WikiPageID . '">' . _('Wiki ' . $WikiType . ' Knowledge Base') . ' </a> <br />';
} elseif ($_SESSION['WikiApp']==_('MediaWiki')){
echo '<a target="_blank" href="' . $WikiPath . 'index.php?title=' . $WikiType . '/' . $WikiPageID . '">' . _('Wiki ' . $WikiType . ' Knowledge Base') . '</a><br />';
} elseif ($_SESSION['WikiApp']==_('DokuWiki')){
echo '<a target="_blank" href="' . $WikiPath . '/doku.php?id=' . $WikiType . ':' . $WikiPageID . '">' . _('Wiki ' . $WikiType . ' Knowledge Base') . '</a><br />';
}
}
This should work ... notice the 'index.php?title=' . $WikiType . '/' . $WikiPageID
for media wiki. I tested this ok here.