aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/hostxrd.php2
-rw-r--r--include/items.php2
2 files changed, 2 insertions, 2 deletions
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 @@
<?php
- $tpl = load_view_file('view/xrd_host.tpl');
+ $tpl = file_get_contents('view/xrd_host.tpl');
echo str_replace('$domain',$this->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'])
);