aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-09-24 09:33:52 +0200
committerMario <mario@mariovavti.com>2018-09-24 09:33:52 +0200
commit7cadc30914041364663b947d787da6f8b980b894 (patch)
treeb7476c5b107f3d1715fb3fee5caa670842fa4e78 /Zotlabs/Module
parente735220691366fb29276dbc3f47ad0347c40aaf5 (diff)
downloadvolse-hubzilla-7cadc30914041364663b947d787da6f8b980b894.tar.gz
volse-hubzilla-7cadc30914041364663b947d787da6f8b980b894.tar.bz2
volse-hubzilla-7cadc30914041364663b947d787da6f8b980b894.zip
settings for directory and set App::$profile_uid in directory if local_channel()
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Directory.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index 8a7c6baf6..c29fa8326 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -12,13 +12,16 @@ class Directory extends \Zotlabs\Web\Controller {
function init() {
\App::set_pager_itemspage(60);
- if(x($_GET,'ignore')) {
+ if(local_channel() && x($_GET,'ignore')) {
q("insert into xign ( uid, xchan ) values ( %d, '%s' ) ",
intval(local_channel()),
dbesc($_GET['ignore'])
);
goaway(z_root() . '/directory?f=&suggest=1');
}
+
+ if(local_channel())
+ \App::$profile_uid = local_channel();
$observer = get_observer_hash();
$global_changed = false;
@@ -55,6 +58,7 @@ class Directory extends \Zotlabs\Web\Controller {
if($observer)
set_xconfig($observer,'directory','pubforums',$pubforums);
}
+
}
function get() {