diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-28 14:18:17 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-28 14:18:17 -0800 |
commit | 3acc5b05086548a3f1bc2beb744d3fb03703b6a5 (patch) | |
tree | 75c13e3872e885b47454c820806992eb0c4b9d07 /Zotlabs/Module | |
parent | 981631752a7571b22d9d8b3a8d7a6632f0a562a3 (diff) | |
parent | 455720ae938126d9a0d3c728beb0a7ba3268a4d0 (diff) | |
download | volse-hubzilla-3acc5b05086548a3f1bc2beb744d3fb03703b6a5.tar.gz volse-hubzilla-3acc5b05086548a3f1bc2beb744d3fb03703b6a5.tar.bz2 volse-hubzilla-3acc5b05086548a3f1bc2beb744d3fb03703b6a5.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Hq.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Zotlabs/Module/Hq.php b/Zotlabs/Module/Hq.php index c5b3ced3e..6bc65e44e 100644 --- a/Zotlabs/Module/Hq.php +++ b/Zotlabs/Module/Hq.php @@ -10,6 +10,13 @@ require_once('include/items.php'); class Hq extends \Zotlabs\Web\Controller { + function init() { + if(! local_channel()) + return; + + \App::$profile_uid = local_channel(); + } + function post() { if(!local_channel()) @@ -147,7 +154,7 @@ class Hq extends \Zotlabs\Web\Controller { $o .= '<div id="live-hq"></div>' . "\r\n"; $o .= "<script> var profile_uid = " . local_channel() - . "; var netargs = '?f='; var profile_page = " . \App::$pager['page'] . "; </script>\r\n"; + . "; var netargs = '?f='; var profile_page = " . \App::$pager['page'] . ";</script>\r\n"; \App::$page['htmlhead'] .= replace_macros(get_markup_template("build_query.tpl"),[ '$baseurl' => z_root(), |