Dotclear

Changeset 2488


Ignore:
Timestamp:
07/20/10 11:52:56 (13 years ago)
Author:
kwon
Message:

comListe ... correction du calcul du nombre de commentaires

Location:
plugins/comListe
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/comListe/CHANGELOG

    r2487 r2488  
     1comListe 0.1.8 - 2009-07-20 
     2=========================================================== 
     3* correction sur le calcul du nombre de commentaires 
     4 
    15comListe 0.1.7 - 2009-07-20 
    26=========================================================== 
  • plugins/comListe/_define.php

    r2487 r2488  
    1717        /* Description*/                "Plugin for printing comments list", 
    1818        /* Author */                    "Benoit de Marne", 
    19         /* Version */                   '0.1.7', 
     19        /* Version */                   '0.1.8', 
    2020        /* Permissions */               'admin' 
    2121); 
  • plugins/comListe/inc/class.dc.comListe.php

    r2487 r2488  
    9393           
    9494          if(empty($params)) { 
    95                $params=''; 
    96           } 
    97           $_ctx->pagination = $core->blog->getComments($params,true); unset($params); 
     95               $_ctx->pagination = $core->blog->getComments(null,true); 
     96          } else { 
     97               $_ctx->pagination = $core->blog->getComments($params,true); 
     98               unset($params); 
     99          } 
     100           
    98101          if ($_ctx->exists("pagination")) {  
    99102               $nb_comments = $_ctx->pagination->f(0);  
     
    226229          } 
    227230          
    228           if(empty($params)) {  
    229                $params=\'\';  
    230           } 
    231            
    232           $_ctx->pagination = $core->blog->getComments($params,true); unset($params); 
     231          if(empty($params)) { 
     232               $_ctx->pagination = $core->blog->getComments(null,true); 
     233          } else { 
     234               $_ctx->pagination = $core->blog->getComments($params,true);  
     235               unset($params); 
     236          }          
     237           
    233238          if ($_ctx->exists("pagination")) {  
    234239               $nb_comments = $_ctx->pagination->f(0);  
Note: See TracChangeset for help on using the changeset viewer.

Sites map