aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-08-14 18:19:34 -0700
committerzotlabs <mike@macgirvin.com>2018-08-14 18:19:34 -0700
commitf4f610f1a3b3826f960e3db2026bf2204e939fe8 (patch)
treeef097239be93b44a7c58492991b1848ec23607b6 /include/channel.php
parent12f4787b67561be8afc78620823b81e290cddfaa (diff)
downloadvolse-hubzilla-f4f610f1a3b3826f960e3db2026bf2204e939fe8.tar.gz
volse-hubzilla-f4f610f1a3b3826f960e3db2026bf2204e939fe8.tar.bz2
volse-hubzilla-f4f610f1a3b3826f960e3db2026bf2204e939fe8.zip
more backporting for zot6
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php
index 2d0231bba..82d500e83 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -2797,3 +2797,6 @@ function pchan_to_chan($pchan) {
return $chan;
}
+function channel_url($channel) {
+ return (($channel) ? z_root() . '/channel/' . $channel['channel_address'] : z_root());
+}