From 4289c8adb2ae9e09a2ebce301c8c6869fd831246 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 8 Apr 2015 23:12:39 -0700 Subject: fix selector when sys channel active --- include/text.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 1f383d8b3..ef38c03d7 100644 --- a/include/text.php +++ b/include/text.php @@ -98,6 +98,13 @@ function z_input_filter($channel_id,$s,$type = 'text/bbcode') { return escape_tags($s); if($type == 'text/plain') return escape_tags($s); + + $a = get_app(); + if($a->is_sys) { + $sys = get_sys_channel(); + $channel_id = $sys['channel_id']; + } + $r = q("select account_id, account_roles, channel_pageflags from account left join channel on channel_account_id = account_id where channel_id = %d limit 1", intval($channel_id) ); @@ -1611,6 +1618,12 @@ function layout_select($channel_id, $current = '') { function mimetype_select($channel_id, $current = 'text/bbcode') { + $a = get_app(); + if($a->is_sys) { + $sys = get_sys_channel(); + $channel_id = $sys['channel_id']; + } + $x = array( 'text/bbcode', 'text/html', -- cgit v1.2.3