I have installed 4.12.2 and the wiki integration is still non-functional (for me at least)!
To fix it I have changed SystemParameters.php Just after declaring the variable array $WikiApplications I have put it into the session variable:
PHP Code:
$_SESSION['WikiApplications'] = $WikiApplications;
This will allow finding the name of the selected Wiki name from the index number 'WikiApp' that gets saved in $_SESSION when one is chosen.
Then in the wikiLink function (in MiscFunctions.php) we can get the 'WikiApplications' array, and 'WikiApp' (index number) from the $_SESSION variable and extract the name of the Wiki. Having got the name we can now complete building the string for the link to show on the page.
The function wikiLink was originally built from 2 if statements. We can replace the second one with:
PHP Code:
$chosenWikiApp = $_SESSION['WikiApplications'][$_SESSION['WikiApp']];
switch ($chosenWikiApp) {
case 'WackoWiki':
echo '<a target="_blank" href="' . $WikiPath . $WikiType . $WikiPageID . '">' . _('Wiki ' . $WikiType . ' Knowledge Base') . ' </a> <br />';
break;
case 'MediaWiki':
echo '<a target="_blank" href="' . $WikiPath . 'index.php?title=' . $WikiType . '/' . $WikiPageID . '">' . _('Wiki ' . $WikiType . ' Knowledge Base') . '</a><br />';
break;
case 'DokuWiki':
echo '<a target="_blank" href="' . $WikiPath . '/doku.php?id=' . $WikiType . ':' . $WikiPageID . '">' . _('Wiki ' . $WikiType . ' Knowledge Base') . '</a><br />';
break;
}
These changes seem to work for me, perhaps someone more familiar with the code can check it over. And of course check the original didn't work which was where I started and I'm still puzzled why it didn't for me and nobody else has mentioned it!