diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-11 15:19:06 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-11 15:19:06 -0700 |
commit | a652e546cccf270f8e837a549fb31b9d619239b5 (patch) | |
tree | 51400394d364b5307bc2c3c0e65c10916405974b /Zotlabs/Render/Comanche.php | |
parent | ee307729fcbccebe468c5a994fcc65c5777beeab (diff) | |
download | volse-hubzilla-a652e546cccf270f8e837a549fb31b9d619239b5.tar.gz volse-hubzilla-a652e546cccf270f8e837a549fb31b9d619239b5.tar.bz2 volse-hubzilla-a652e546cccf270f8e837a549fb31b9d619239b5.zip |
add local_channel as a comanche condition variable
Diffstat (limited to 'Zotlabs/Render/Comanche.php')
-rw-r--r-- | Zotlabs/Render/Comanche.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Render/Comanche.php b/Zotlabs/Render/Comanche.php index c787b19ae..8831bd117 100644 --- a/Zotlabs/Render/Comanche.php +++ b/Zotlabs/Render/Comanche.php @@ -153,6 +153,7 @@ class Comanche { * $observer.address - xchan_addr or false * $observer.name - xchan_name or false * $observer - xchan_hash of observer or empty string + * $local_channel - logged in channel_id or false */ function get_condition_var($v) { @@ -162,6 +163,9 @@ class Comanche { return get_config($x[1],$x[2]); elseif($x[0] === 'request') return $_SERVER['REQUEST_URI']; + elseif($x[0] === 'local_channel') { + return local_channel(); + } elseif($x[0] === 'observer') { if(count($x) > 1) { if($x[1] == 'language') |