aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-07-13 06:17:12 -0400
committerAndrew Manning <tamanning@zoho.com>2016-07-13 06:17:12 -0400
commitba903e21edb14639a948fdccafa35b743691c7cc (patch)
tree727d43578e3bb73f301f33d2a2973a2e24f3e13c /Zotlabs
parent75b943b98a32efdb229e331a2d1a503f46b3afc9 (diff)
downloadvolse-hubzilla-ba903e21edb14639a948fdccafa35b743691c7cc.tar.gz
volse-hubzilla-ba903e21edb14639a948fdccafa35b743691c7cc.tar.bz2
volse-hubzilla-ba903e21edb14639a948fdccafa35b743691c7cc.zip
Updated import_blocks for database calls
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Webpages.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/Zotlabs/Module/Webpages.php b/Zotlabs/Module/Webpages.php
index 9ece989a0..01a32bf24 100644
--- a/Zotlabs/Module/Webpages.php
+++ b/Zotlabs/Module/Webpages.php
@@ -355,9 +355,8 @@ class Webpages extends \Zotlabs\Web\Controller {
$arr['uid'] = $channel['channel_id'];
$arr['aid'] = $channel['channel_account_id'];
- $iid = q("select iid from item_id where service = 'BUILDBLOCK' and sid = '%s' and uid = %d",
- dbesc($b['name']),
- intval($channel['channel_id'])
+ $iid = q("select iid from iconfig where k = 'BUILDBLOCK' and v = '%s' and cat = 'system'",
+ dbesc($b['name'])
);
if($iid) {
$iteminfo = q("select mid,created,edited from item where id = %d",
@@ -398,8 +397,7 @@ class Webpages extends \Zotlabs\Web\Controller {
$remote_id = 0;
- $z = q("select * from item_id where sid = '%s' and service = '%s' and uid = %d limit 1", dbesc($pagetitle), dbesc($namespace), intval(local_channel())
- );
+ $z = q("select * from iconfig where v = '%s' and k = '%s' and cat = 'service' limit 1", dbesc($pagetitle), dbesc($namespace));
$i = q("select id, edited, item_deleted from item where mid = '%s' and uid = %d limit 1", dbesc($arr['mid']), intval(local_channel())
);