Replaced call to global pmpro_gateways variable