diff options
author | git-marijus <mario@mariovavti.com> | 2017-08-09 20:39:59 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-08-09 20:39:59 +0200 |
commit | 8ab3a4ebd7fd25fe4b01e92c8d2f4507b0c6ff3d (patch) | |
tree | 7df52565de4c64ba460d507c3d9c4eb60d48237b | |
parent | 8eb6dafe312746ea85ccdd0544b17241b2f95a9c (diff) | |
download | volse-hubzilla-8ab3a4ebd7fd25fe4b01e92c8d2f4507b0c6ff3d.tar.gz volse-hubzilla-8ab3a4ebd7fd25fe4b01e92c8d2f4507b0c6ff3d.tar.bz2 volse-hubzilla-8ab3a4ebd7fd25fe4b01e92c8d2f4507b0c6ff3d.zip |
App::get_channel() does not return the right channel if we are not looking at our own channel. fix issue #841
-rw-r--r-- | Zotlabs/Widget/Wiki_pages.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Zotlabs/Widget/Wiki_pages.php b/Zotlabs/Widget/Wiki_pages.php index 53966b06f..7285e2b42 100644 --- a/Zotlabs/Widget/Wiki_pages.php +++ b/Zotlabs/Widget/Wiki_pages.php @@ -11,14 +11,8 @@ class Wiki_pages { return; if(! $arr['resource_id']) { - - $c = \App::get_channel(); - - if(! $c) - $c = channelx_by_nick(argv(1)); - + $c = channelx_by_nick(argv(1)); $w = \Zotlabs\Lib\NativeWiki::exists_by_name($c['channel_id'],argv(2)); - $arr = array( 'resource_id' => $w['resource_id'], 'channel_id' => $c['channel_id'], |