Changeset 1483 for trunk/gregarius/cls/categories.php
- Timestamp:
- 06/05/06 01:15:49 (2 years ago)
- Files:
-
- 1 modified
-
trunk/gregarius/cls/categories.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/cls/categories.php
r1181 r1483 96 96 if (array_key_exists(COLLAPSED_CATEGORIES_COOKIE, $_COOKIE)) { 97 97 $this->collapsed_ids = explode(":", $_COOKIE[COLLAPSED_CATEGORIES_COOKIE]); 98 } elseif (empty($this->collapsed_ids) && getConfig("rss.output.channelcollapsedefault")) { 99 // Lets collapse all categories 100 $res = rss_query("select distinct(tid) from " . getTable('metatag') . " where ttype='channel'"); 101 while (list ($this->collapsed_ids[]) = rss_fetch_row($res)) { 102 } 103 if (!headers_sent()) { // Sajax does not allow us to set cookies 104 setcookie(COLLAPSED_CATEGORIES_COOKIE, 105 implode(":", $this->collapsed_ids ) , time()+COOKIE_LIFESPAN,getPath()); 106 } 98 107 } 99 108
