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:41:13 +0200 |
commit | fa2de77abe724255e28e3d41ec7b864f3ebc7893 (patch) | |
tree | 8f576082c773f75e077dd0b2f5f55bd0e6b67541 /Zotlabs/Widget/Wiki_pages.php | |
parent | 037e1edb1fd2e56f776d0f86f0023141949154cf (diff) | |
download | volse-hubzilla-fa2de77abe724255e28e3d41ec7b864f3ebc7893.tar.gz volse-hubzilla-fa2de77abe724255e28e3d41ec7b864f3ebc7893.tar.bz2 volse-hubzilla-fa2de77abe724255e28e3d41ec7b864f3ebc7893.zip |
App::get_channel() does not return the right channel if we are not looking at our own channel. fix issue #841
Diffstat (limited to 'Zotlabs/Widget/Wiki_pages.php')
-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'], |