Some minor fixes and optimization
Replace add_log() with $phpbb_log->add()
Fixe somes ambigous lang var