Moved promote button to integrate_display_buttons hook

TPortal,TPSub.template,do_hooks
Added missing global

TPortal