aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-14 09:42:43 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-14 09:42:43 +0200
commit5c458e9111d8853891a0545d63fe7f55ee0f5a41 (patch)
tree01f80be918dd76a58cc1102166c53048631aed8a /Zotlabs/Module/Display.php
parentb6d425838f9025d8faf6dbfe90fce091d94b3cd7 (diff)
parent0ef2622621867fa197988974b47eff85f20a80e7 (diff)
downloadvolse-hubzilla-5c458e9111d8853891a0545d63fe7f55ee0f5a41.tar.gz
volse-hubzilla-5c458e9111d8853891a0545d63fe7f55ee0f5a41.tar.bz2
volse-hubzilla-5c458e9111d8853891a0545d63fe7f55ee0f5a41.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r--Zotlabs/Module/Display.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index c1a0d84bc..d1d4edc7d 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -106,12 +106,13 @@ class Display extends \Zotlabs\Web\Controller {
$x = q("select * from channel where channel_id = %d limit 1",
intval($target_item['uid'])
);
- $y = q("select * from item_id where uid = %d and service = 'WEBPAGE' and iid = %d limit 1",
+ $y = q("select * from iconfig left join item on iconfig.iid = item.id
+ where item.uid = %d and iconfig.cat = 'system' and iconfig.k = 'WEBPAGE' and item.id = %d limit 1",
intval($target_item['uid']),
intval($target_item['id'])
);
if($x && $y) {
- goaway(z_root() . '/page/' . $x[0]['channel_address'] . '/' . $y[0]['sid']);
+ goaway(z_root() . '/page/' . $x[0]['channel_address'] . '/' . $y[0]['v']);
}
else {
notice( t('Page not found.') . EOL);