From 941b2331f1b99b3f06cac9e7e864f08a2b44b9a9 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 4 Oct 2010 04:22:34 -0700 Subject: xrd cannot be called before db is open to get language --- include/hostxrd.php | 2 +- include/items.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/hostxrd.php b/include/hostxrd.php index f3bf9e769..3279cea68 100644 --- a/include/hostxrd.php +++ b/include/hostxrd.php @@ -1,6 +1,6 @@ hostname,$tpl); session_write_close(); exit(); diff --git a/include/items.php b/include/items.php index ce354de9b..ac4e694be 100644 --- a/include/items.php +++ b/include/items.php @@ -718,7 +718,7 @@ function consume_feed($xml,$importer,$contact, &$hub) { ); // who is the last child now? $r = q("SELECT `id` FROM `item` WHERE `parent-uri` = '%s' AND `type` != 'activity' AND `deleted` = 0 AND `uid` = %d - ORDER BY `edited` DESC LIMIT 1", + ORDER BY `created` DESC LIMIT 1", dbesc($item['parent-uri']), intval($importer['uid']) ); -- cgit v1.2.3