Fixes #229: Missing global $mybb
Merge pull request #253 from ATofighi/patch-8

Fixes #229: Missing global $mybb