Changeset 35290 for _plugins_/notation

Show
Ignore:
Timestamp:
02/17/10 20:33:35 (5 months ago)
Author:
marcimat@…
Message:

Utilisons les fonctions prévues pour la pondération

Location:
_plugins_/notation
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • _plugins_/notation/inc/notation.php

    r34282 r35290  
    159159function notation_calculer_total($objet, $id_objet){ 
    160160 
    161         $ponderation = lire_config('notation/ponderation',30); 
     161        $ponderation = notation_get_ponderation(); 
    162162 
    163163        // Calculer les moyennes 
  • _plugins_/notation/inc/notation_balises.php

    r32427 r35290  
    114114        $id_table = $boucle->id_table . '.' . $boucle->primary; 
    115115 
    116         $ponderation = lire_config('notation/ponderation',30); 
     116        include_spip('inc/notation'); 
     117        $ponderation = notation_get_ponderation(); 
    117118        $boucle->select[]= 'COUNT(notations.note) AS nombre_votes'; 
    118119        $boucle->select[]= 'ROUND(AVG(notations.note),2) AS moyenne'; 
  • _plugins_/notation/plugin.xml

    r34510 r35290  
    22        <nom>Notation</nom> 
    33        <auteur>JEM - b_b - Matthieu Marcillaud</auteur> 
    4         <version>0.7.0</version> 
     4        <version>0.7.1</version> 
    55        <version_base>0.6.1</version_base> 
    66        <etat>stable</etat>