From e07f89815b88139a5b0945bd89277eb6b36e8f5a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 Aug 2012 09:11:43 +0400 Subject: [PATCH] properly persist include_children --- classes/feeds.php | 3 +-- include/functions.php | 4 ++-- schema/ttrss_schema_mysql.sql | 4 +++- schema/ttrss_schema_pgsql.sql | 4 +++- schema/versions/mysql/94.sql | 7 +++++++ schema/versions/pgsql/94.sql | 7 +++++++ 6 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 schema/versions/mysql/94.sql create mode 100644 schema/versions/pgsql/94.sql diff --git a/classes/feeds.php b/classes/feeds.php index be788647..a3062565 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -805,8 +805,7 @@ class Feeds extends Protected_Handler { set_pref($this->link, "_DEFAULT_VIEW_MODE", $view_mode); set_pref($this->link, "_DEFAULT_VIEW_LIMIT", $limit); set_pref($this->link, "_DEFAULT_VIEW_ORDER_BY", $order_by); - - $_SESSION["_DEFAULT_INCLUDE_CHILDREN"] = $include_children; + set_pref($this->link, "_DEFAULT_INCLUDE_CHILDREN", $include_children); if (!$cat_view && preg_match("/^[0-9][0-9]*$/", $feed)) { db_query($this->link, "UPDATE ttrss_feeds SET last_viewed = NOW() diff --git a/include/functions.php b/include/functions.php index ac9c5372..91f3b900 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,6 +1,6 @@