Updated to work with PhpBB 3.0.12

Updated the code to function properly in phpbb 3.0.12