aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-05 22:02:46 -0700
committerredmatrix <git@macgirvin.com>2016-05-05 22:02:46 -0700
commit712b2b1bb27d8466e484957cdb3de91e4b71a705 (patch)
treee300b1cdc303628f480302e13bc181c3e1ec6dd2
parent5508feb6ce185d4da12adbd38dc2c0e36d244704 (diff)
downloadvolse-hubzilla-712b2b1bb27d8466e484957cdb3de91e4b71a705.tar.gz
volse-hubzilla-712b2b1bb27d8466e484957cdb3de91e4b71a705.tar.bz2
volse-hubzilla-712b2b1bb27d8466e484957cdb3de91e4b71a705.zip
comments
-rw-r--r--include/comanche.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/comanche.php b/include/comanche.php
index 0a52eaf2b..97d5d665a 100644
--- a/include/comanche.php
+++ b/include/comanche.php
@@ -126,6 +126,10 @@ function comanche_parser(&$a, $s, $pass = 0) {
function comanche_test_condition($s) {
+ // This is extensible. The first version of variable testing supports tests of the form
+ // [if $config.system.foo] which will check for a return of a true condition for get_config('system','foo');
+ // The values 0, '', an empty array, and an unset value will all evaluate to false.
+
if(preg_match("/[\$]config[\.](.*?)/",$s,$matches)) {
$x = explode('.',$s);
if(get_config($x[1],$x[2]))