Changeset 1655 for trunk/gregarius/cls
- Timestamp:
- 01/06/07 23:01:06 (20 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/cls/channels.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/cls/channels.php
r1653 r1655 142 142 } 143 143 144 function render() { 145 $GLOBALS['rss']->currentFeedsFolder = $this; 146 eval($GLOBALS['rss'] ->getCachedTemplateFile("feedsfolder.php")); 144 function render() { 145 if ((!getConfig('rss.output.minimalchannellist')) || ($this->feeds)) { 146 $GLOBALS['rss']->currentFeedsFolder = $this; 147 require($GLOBALS['rss'] ->getTemplateFile("feedsfolder.php")); 148 } 147 149 } 148 150 } … … 213 215 // Lets collapse all folders 214 216 $res = rss_query("select id from " . getTable('folders') . " where id != 0"); 215 while (list ($this->collapsed_ids[]) = rss_fetch_row($res)) { 216 } 217 while (list ($this->collapsed_ids[]) = rss_fetch_row($res)) {} 217 218 if (!headers_sent()) { // Sajax does not allow us to set cookies 218 219 setcookie(COLLAPSED_FOLDERS_COOKIE, … … 287 288 $this->folders[$cparent] = new FeedFolder($fname, $cparent,$this); 288 289 } 289 $this->folders[$cparent]->feeds[] = $f; 290 //$this->folders[$cparent]->feeds[] = $f; 291 if(($ucc != 0) || (!getConfig('rss.output.minimalchannellist'))) { 292 $this->folders[$cparent]->feeds[] = $f; 293 } 290 294 $this->folders[$cparent]->isCollapsed = in_array($cparent, $this->collapsed_ids) && ($cparent > 0); 291 295
