]> git.wh0rd.org Git - tt-rss.git/commitdiff
publish: get_pref: properly set owner_uid
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 6 Feb 2008 08:26:15 +0000 (09:26 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 6 Feb 2008 08:26:15 +0000 (09:26 +0100)
functions.php

index b85b1025948eedeb6e7f38aa1fb21031905746bc..4af6e3b5492f832e58c279a2ab6ba303a85c77f8 100644 (file)
                        } else if ($feed == -3) { // fresh virtual feed
                                $query_strategy_part = "unread = true";
 
-                               $intl = get_pref($link, "FRESH_ARTICLE_MAX_AGE");
+                               $intl = get_pref($link, "FRESH_ARTICLE_MAX_AGE", $owner_uid);
 
                                if (DB_TYPE == "pgsql") {
                                        $query_strategy_part .= " AND date_entered > NOW() - INTERVAL '$intl hour' "; 
                                $query_strategy_part = "id > 0"; // dumb
                        }
 
-                       if (get_pref($link, 'REVERSE_HEADLINES')) {
+                       if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
                                $order_by = "updated";
                        } else {        
                                $order_by = "updated DESC";