diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-06-14 19:56:04 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-06-14 19:56:04 -0400 |
commit | eeaafe9f3918661022b465fe0522a3f0e44065b0 (patch) | |
tree | b0e2e941b670419950630a4cfc2b0078da69b502 /Zotlabs/Module/Display.php | |
parent | 6430a232f88ed214997d7704c18aead873094a0f (diff) | |
parent | 0ef2622621867fa197988974b47eff85f20a80e7 (diff) | |
download | volse-hubzilla-eeaafe9f3918661022b465fe0522a3f0e44065b0.tar.gz volse-hubzilla-eeaafe9f3918661022b465fe0522a3f0e44065b0.tar.bz2 volse-hubzilla-eeaafe9f3918661022b465fe0522a3f0e44065b0.zip |
Merge remote-tracking branch 'upstream/dev' into wiki
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r-- | Zotlabs/Module/Display.php | 5 |
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); |