Changeset 801
- Timestamp:
- 02/23/09 08:34:42 (15 years ago)
- Location:
- plugins/gallery/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/gallery/trunk/CHANGELOG
r719 r801 1 Gallery 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 1 7 Gallery 0.3.2 2 8 * Fixed php errors in theme adapter -
plugins/gallery/trunk/_define.php
r719 r801 16 16 /* Description*/ "Image Gallery for Dotclear2", 17 17 /* Author */ "Bruno Hondelatte", 18 /* Version */ '0.3. 2',18 /* Version */ '0.3.3', 19 19 /* Permissions */ 'usage,contentadmin' 20 20 ); -
plugins/gallery/trunk/_public_widgets.php
r691 r801 45 45 46 46 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 } 54 58 return $res; 55 59 } … … 67 71 while (!$rscat->isEnd() && $rscat->level >= $level) { 68 72 $rscat->fetch(); 69 if ($ rscat->level > $level) {73 if ($w->cat_display == 'tree' && $rscat->level > $level) { 70 74 $res .= self::displayCategoryList($rscat,$rsgal,$w,$cur_cat_id); 71 75 } 72 if ($ rscat->level == $level) {76 if ($w->cat_display != 'tree' || $rscat->level == $level) { 73 77 $class=''; 74 78 if ($rscat->cat_id == $cur_cat_id) … … 135 139 $cur_cat_id = null; 136 140 137 if ($ w->cat_display == 'tree') {141 if ($display_cat) { 138 142 if ($rscat->fetch()) { 139 143 if ($rsgal != null) … … 143 147 } 144 148 145 } else {149 } elseif ($rsgal != null) { 146 150 $first=true; 147 151 $current_cat = "dummycategoryblabla";
Note: See TracChangeset
for help on using the changeset viewer.