Fixes #229: Missing global $mybb

For 1.6.x