コード例 #1
0
 public function load_quote_notifications()
 {
     if (G::$LoggedUser['NotifyOnQuote']) {
         $QuoteNotificationsCount = Subscriptions::has_new_quote_notifications();
         if ($QuoteNotificationsCount > 0) {
             $Title = 'New quote' . ($QuoteNotificationsCount > 1 ? 's' : '');
             $this->create_notification(self::QUOTES, 0, $Title, 'userhistory.php?action=quote_notifications', self::INFO);
         }
     }
 }