Changeset 1655 for trunk/gregarius/cls

Show
Ignore:
Timestamp:
01/06/07 23:01:06 (20 months ago)
Author:
mbonetti
Message:

experimental fix for #302

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/cls/channels.php

    r1653 r1655  
    142142    } 
    143143     
    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        } 
    147149    } 
    148150} 
     
    213215               // Lets collapse all folders 
    214216               $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)) {} 
    217218               if (!headers_sent()) { // Sajax does not allow us to set cookies 
    218219                setcookie(COLLAPSED_FOLDERS_COOKIE,  
     
    287288                $this->folders[$cparent] = new FeedFolder($fname, $cparent,$this); 
    288289            } 
    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            } 
    290294            $this->folders[$cparent]->isCollapsed = in_array($cparent, $this->collapsed_ids) && ($cparent > 0); 
    291295