aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Render
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-10-16 18:20:17 -0700
committerzotlabs <mike@macgirvin.com>2017-10-16 18:20:17 -0700
commit9497c6c0f7470800a54b0c8f60467f675b32c5ed (patch)
tree99092dcb6b503cf92633395325cdfb2f25cd299d /Zotlabs/Render
parent4dd05dc4e88171fb2bcaacde8c0699f64f6bb7e5 (diff)
parentb8a9390f49bf69f3a982cb44e7dfab6e55e6e5d3 (diff)
downloadvolse-hubzilla-9497c6c0f7470800a54b0c8f60467f675b32c5ed.tar.gz
volse-hubzilla-9497c6c0f7470800a54b0c8f60467f675b32c5ed.tar.bz2
volse-hubzilla-9497c6c0f7470800a54b0c8f60467f675b32c5ed.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Render')
-rw-r--r--Zotlabs/Render/Comanche.php4
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')