Well, despite what the require_once() documentation
says, until I deleted that line, I was getting an error on vbWikiPro_Tunnel.php saying that it could not redefine the functions.
And until I deleted that line $stylevar['vbw_cookie_tunnel'] would be empty. (That's what I meant by saying that it's appearing now).
Also, until I adjusted the navbits code to match vBulletin specifications, $navbits[''] was empty.
Your original code:
PHP Code:
if ($translate_to_utf8)
$navbits["{$wikidata['mainpage_href']}"] = iconv( 'UTF-8', $stylevar['charset'], $wgSitename ? $wgSitename : 'Wiki' );
else
$navbits["{$wikidata['mainpage_href']}"] = $wgSitename ? $wgSitename : 'Wiki';
$navbits[''] = $wiki_pagetitle_iso;
According to the original code, $navbits[''] would only be empty if $wiki_pagetitle_iso was never defined at all.
PHP Code:
if ($translate_to_utf8)
$wiki_pagetitle_iso = iconv( 'UTF-8', $stylevar['charset'], $wiki_pagetitle );
If $translate_to_utf8 is false, as it is on my setup, $navbits[''] will be empty. In order to compensate, I maintain my claim that your code is screwy and should be altered

.
If not to mine, then at least to:
PHP Code:
if ($translate_to_utf8)
$wiki_pagetitle_iso = iconv( 'UTF-8', $stylevar['charset'], $wiki_pagetitle );
else
$wiki_pagetitle_iso = $wiki_pagetitle;
or my personal favorite (which still conforms to vBulletin coder specs):
PHP Code:
$wiki_pagetitle_iso = ($translate_to_utf8) ? iconv( 'UTF-8', $stylevar['charset'], $wiki_pagetitle ) : $wiki_pagetitle;