Fix broken BBCode and some legacy BBCode issues derived from PHP4 support.
Merge branch 'master' of git://github.com/Kunena/Kunena-Forum
Merge pull request #1782 from coder4life/master

BBCode fix.