Changeset 80179 in spip-zone


Ignore:
Timestamp:
Jan 21, 2014, 2:44:37 PM (6 years ago)
Author:
homere1974@…
Message:

shunter correctement forumposte

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/notifications_groupees/trunk/notifications/forumposte.php

    r80175 r80179  
    8181        // les notifications des messages de statut 'publie'
    8282        // sont envoyees sans delai aux moderateurs
    83         $notif_groupees = isset($GLOBALS['meta']['notifications_groupees_qui']) AND $GLOBALS['meta']['notifications_groupees_qui'];
     83        $ng_forum = in_array('forum',lire_config('notifications_groupees_evenements'));
    8484        $table = table_objet_sql($t['objet']);
    8585        $id = id_table_objet($table);
    86         if (!$notif_groupees OR ($notif_groupees AND (sql_getfetsel("accepter_forum",$table,$id."=".intval($t['id_objet'])) == 'pos') AND $t['statut'] == 'publie')) {
     86        if (!$ng_forum OR ($ng_forum AND (sql_getfetsel("accepter_forum",$table,$id."=".intval($t['id_objet'])) == 'pos') AND $t['statut'] == 'publie')) {
    8787                $email_notification_forum = charger_fonction('email_notification_forum','inc');
    8888                foreach ($destinataires as $email) {
Note: See TracChangeset for help on using the changeset viewer.