/** * @see EventListener::execute() */ public function execute($eventObj, $className, $eventName) { if (self::$executed) { return; } self::$executed = true; $notifications = ContestPromotionUtil::getList(); if (count($notifications)) { WCF::getTPL()->assign('contestPromotionNotifications', $notifications); WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('contestPromotionNotification')); } }