diff options
author | friendica <info@friendica.com> | 2015-01-29 15:09:35 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-29 15:09:35 -0800 |
commit | 912be23e1627211fb417c4b7bced414cbbe38ef0 (patch) | |
tree | 2b8567d800624167b3eadf37c8855deb0ba74b0b /include/text.php | |
parent | ff68ea608786a698ad46637ef13854ac1b1e6beb (diff) | |
parent | 872b165eb2bb5d632a12f2d7e1a28e195c2d5348 (diff) | |
download | volse-hubzilla-912be23e1627211fb417c4b7bced414cbbe38ef0.tar.gz volse-hubzilla-912be23e1627211fb417c4b7bced414cbbe38ef0.tar.bz2 volse-hubzilla-912be23e1627211fb417c4b7bced414cbbe38ef0.zip |
Merge branch 'master' into tres
Conflicts:
include/group.php
include/text.php
mod/acl.php
mod/channel.php
mod/connections.php
mod/display.php
mod/group.php
mod/item.php
mod/locs.php
mod/network.php
mod/photos.php
mod/ping.php
mod/starred.php
mod/viewsrc.php
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/text.php b/include/text.php index 3258faeec..c3336852e 100644 --- a/include/text.php +++ b/include/text.php @@ -96,7 +96,7 @@ function z_input_filter($channel_id,$s,$type = 'text/bbcode') { intval($channel_id) ); if($r && (($r[0]['account_roles'] & ACCOUNT_ROLE_ALLOWCODE) || ($r[0]['channel_pageflags'] & PAGE_ALLOWCODE))) { - if(local_user() && (get_account_id() == $r[0]['account_id'])) { + if(local_channel() && (get_account_id() == $r[0]['account_id'])) { return $s; } } @@ -727,7 +727,7 @@ function contact_block() { if($shown == 0) return; - $is_owner = ((local_user() && local_user() == $a->profile['uid']) ? true : false); + $is_owner = ((local_channel() && local_channel() == $a->profile['uid']) ? true : false); $sql_extra = ''; $abook_flags = ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF; @@ -834,7 +834,7 @@ function search($s,$id='search-box',$url='/search',$save = false) { '$action_url' => $a->get_baseurl((stristr($url,'network')) ? true : false) . $url, '$search_label' => t('Search'), '$save_label' => t('Save'), - '$savedsearch' => feature_enabled(local_user(),'savedsearch') + '$savedsearch' => feature_enabled(local_channel(),'savedsearch') )); } @@ -846,7 +846,7 @@ function searchbox($s,$id='search-box',$url='/search',$save = false) { '$action_url' => z_root() . '/' . $url, '$search_label' => t('Search'), '$save_label' => t('Save'), - '$savedsearch' => feature_enabled(local_user(),'savedsearch') + '$savedsearch' => feature_enabled(local_channel(),'savedsearch') )); } @@ -1062,7 +1062,7 @@ function smilies($s, $sample = false) { $a = get_app(); if(intval(get_config('system','no_smilies')) - || (local_user() && intval(get_pconfig(local_user(),'system','no_smilies')))) + || (local_channel() && intval(get_pconfig(local_channel(),'system','no_smilies')))) return $s; $s = preg_replace_callback('{<(pre|code)>.*?</\1>}ism','smile_shield',$s); @@ -1358,7 +1358,7 @@ function prepare_body(&$item,$attach = false) { $s .= format_categories($item,$writeable); - if(local_user() == $item['uid']) + if(local_channel() == $item['uid']) $s .= format_filer($item); $s = sslify($s); @@ -1465,14 +1465,14 @@ function prepare_text($text,$content_type = 'text/bbcode') { function zidify_callback($match) { - $is_zid = ((feature_enabled(local_user(),'sendzid')) || (strpos($match[1],'zrl')) ? true : false); + $is_zid = ((feature_enabled(local_channel(),'sendzid')) || (strpos($match[1],'zrl')) ? true : false); $replace = '<a' . $match[1] . ' href="' . (($is_zid) ? zid($match[2]) : $match[2]) . '"'; $x = str_replace($match[0],$replace,$match[0]); return $x; } function zidify_img_callback($match) { - $is_zid = ((feature_enabled(local_user(),'sendzid')) || (strpos($match[1],'zrl')) ? true : false); + $is_zid = ((feature_enabled(local_channel(),'sendzid')) || (strpos($match[1],'zrl')) ? true : false); $replace = '<img' . $match[1] . ' src="' . (($is_zid) ? zid($match[2]) : $match[2]) . '"'; $x = str_replace($match[0],$replace,$match[0]); @@ -1585,7 +1585,7 @@ function mimetype_select($channel_id, $current = 'text/bbcode') { if($r) { if(($r[0]['account_roles'] & ACCOUNT_ROLE_ALLOWCODE) || ($r[0]['channel_pageflags'] & PAGE_ALLOWCODE)) { - if(local_user() && get_account_id() == $r[0]['account_id']) + if(local_channel() && get_account_id() == $r[0]['account_id']) $x[] = 'application/x-php'; } } @@ -2303,7 +2303,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag) { // access control. The link points to out own channel just so it doesn't look // weird - as all the other tags are linked to something. - if(local_user() && local_user() == $profile_uid) { + if(local_channel() && local_channel() == $profile_uid) { require_once('include/group.php'); $grp = group_byname($profile_uid,$name); |