Dotclear

Changeset 801


Ignore:
Timestamp:
02/23/09 08:34:42 (15 years ago)
Author:
bruno
Message:

Fixed warnings in widget, flagged 0.3.3

Location:
plugins/gallery/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/gallery/trunk/CHANGELOG

    r719 r801  
     1Gallery 0.3.3 
     2* Fixed "empty post" bug 
     3* Fixed widget incorrect behavior and warnings 
     4* Enable image creation for multiple blogs having the same public_path 
     5 
     6 
    17Gallery 0.3.2 
    28* Fixed php errors in theme adapter 
  • plugins/gallery/trunk/_define.php

    r719 r801  
    1616     /* Description*/         "Image Gallery for Dotclear2", 
    1717     /* Author */             "Bruno Hondelatte", 
    18      /* Version */            '0.3.2', 
     18     /* Version */            '0.3.3', 
    1919     /* Permissions */        'usage,contentadmin' 
    2020); 
  • plugins/gallery/trunk/_public_widgets.php

    r691 r801  
    4545 
    4646     private static function getGalleriesInCategory($cat_id,&$rsgal,$w) { 
    47           $res = "<ul>"; 
    48           while (!$rsgal->isEnd() && $rsgal->cat_id == $cat_id) { 
    49                $res .= '<li class="ligal">'.self::getGalleryLink($rsgal,$w);     
    50  
    51                $rsgal->fetch(); 
    52           } 
    53           $res .= "</ul>"; 
     47          if ($rsgal != null) { 
     48               $res = "<ul>"; 
     49               while (!$rsgal->isEnd() && $rsgal->cat_id == $cat_id) { 
     50                    $res .= '<li class="ligal">'.self::getGalleryLink($rsgal,$w);     
     51 
     52                    $rsgal->fetch(); 
     53               } 
     54               $res .= "</ul>"; 
     55          } else { 
     56               $res=''; 
     57          } 
    5458          return $res; 
    5559     } 
     
    6771          while (!$rscat->isEnd() && $rscat->level >= $level) { 
    6872               $rscat->fetch(); 
    69                if ($rscat->level > $level) { 
     73               if ($w->cat_display == 'tree' && $rscat->level > $level) { 
    7074                    $res .= self::displayCategoryList($rscat,$rsgal,$w,$cur_cat_id); 
    7175               }  
    72                if ($rscat->level == $level) { 
     76               if ($w->cat_display != 'tree' || $rscat->level == $level) { 
    7377                    $class=''; 
    7478                    if ($rscat->cat_id == $cur_cat_id) 
     
    135139               $cur_cat_id = null; 
    136140 
    137           if ($w->cat_display == 'tree') { 
     141          if ($display_cat) { 
    138142               if ($rscat->fetch()) { 
    139143                    if ($rsgal != null) 
     
    143147               } 
    144148                
    145           } else { 
     149          } elseif ($rsgal != null) { 
    146150               $first=true; 
    147151               $current_cat = "dummycategoryblabla"; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map