Changeset 1759 for branches/multiuser/index.php
- Timestamp:
- 09/26/07 08:57:31 (3 years ago)
- Files:
-
- 1 modified
-
branches/multiuser/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/multiuser/index.php
r1639 r1759 92 92 93 93 rss_plugin_hook('rss.plugins.frontpage.afterread', null); 94 95 94 $GLOBALS['rss'] -> header = new Header("",LOCATION_HOME,array('cid'=>null,'fid'=>null)); 96 95 $GLOBALS['rss'] -> feedList = new FeedList(false); … … 132 131 $sqlWhereHidden = ""; 133 132 134 $unreadItems -> populate("i2u.flgunread=1 & " . RSS_MODE_UNREAD_STATE. $sqlWhereHidden, "", 0, $numItems,ITEM_SORT_HINT_UNREAD);133 $unreadItems -> populate("i2u.flgunread=1 " . $sqlWhereHidden, "", 0, $numItems,ITEM_SORT_HINT_UNREAD); 135 134 //var_dump($unreadItems); 136 135 _pf('end populate unread items'); … … 166 165 167 166 if (getConfig('rss.config.feedgrouping')) { 168 if ($limit <= 0) {167 if ($limit <= 0) { 169 168 return; 170 169 } 171 $sql = "select c2u.fkcid from " . getTable("channels2user") . " c2u " 172 . "inner join " . getTable("folders") ." f on c2u.parent = f.id "; 170 $sql = "select c2u.fkcid from " . getTable("channels2user") . " c2u " 171 . "inner join " . getTable("channels") . " c " 172 . "inner join " . getTable("folders") ." f on c.parent = f.id "; 173 173 174 174 // $sql .= $sqlWhereHidden; … … 177 177 178 178 if (getConfig('rss.config.absoluteordering')) { 179 $sql .= " order by f.position asc, c 2u.position asc";179 $sql .= " order by f.position asc, c.position asc"; 180 180 } else { 181 $sql .=" order by f.name asc, c 2u.title asc";181 $sql .=" order by f.name asc, c.title asc"; 182 182 } 183 183 $res1=rss_query($sql); 184 184 while ($readItems->itemCount < $limit && (list($cid) = rss_fetch_row($res1))) { 185 $sqlWhere = " i2u.flgunread=0 and i.cid= $cid";185 $sqlWhere = " i2u.flgunread=0 and i.cid= $cid"; 186 186 $sqlWhere .= " and i.pubdate <= now() "; 187 187
