diff options
author | redmatrix <mike@macgirvin.com> | 2016-09-17 14:51:57 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-09-17 14:51:57 -0700 |
commit | 0754da58da96316a9ff4505f9c7c712c1f0094b6 (patch) | |
tree | 4547950121b0ade42878ce9a4d5b7cb5430bf02d /include | |
parent | 31df7af61f449d2fe307b3440c7dd7bf4b016cf0 (diff) | |
download | volse-hubzilla-0754da58da96316a9ff4505f9c7c712c1f0094b6.tar.gz volse-hubzilla-0754da58da96316a9ff4505f9c7c712c1f0094b6.tar.bz2 volse-hubzilla-0754da58da96316a9ff4505f9c7c712c1f0094b6.zip |
some changes merged from wrong branch... new function channel_reddress() instead of hardwired generation and which fixes case-sensitivity; allow dot notation in config and pconfig utils, updated string file
Diffstat (limited to 'include')
-rw-r--r-- | include/channel.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php index 7bfa2b6a2..ce515c917 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1894,3 +1894,8 @@ function channelx_by_n($id) { return(($r) ? $r[0] : false); } +function channel_reddress($channel) { + if(! ($channel && array_key_exists('channel_address',$channel))) + return ''; + return strtolower($channel['channel_address'] . '@' . App::get_hostname()); +}
\ No newline at end of file |