Topic: $tpl_main should be global in message function
In some cases when message() function executed (not in punbb code I haven't found yet but some other user-made functions or even not in functions) the result is blank.
when $tpl_main is global in message function, everything is ok.
I think message() is a function, so letting $tpl_main global is more proper for removing future bugs.