aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Render/Comanche.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-08 16:54:22 -0700
committerredmatrix <mike@macgirvin.com>2016-09-08 16:54:22 -0700
commitabaf752a9bd79a2856bd6acbf16cb62a7f770018 (patch)
tree9ae015004212a0773041624a9cda507029a7da60 /Zotlabs/Render/Comanche.php
parentd63cfb41f1a90d1f32cde4bd84cd19d8b1f64049 (diff)
downloadvolse-hubzilla-abaf752a9bd79a2856bd6acbf16cb62a7f770018.tar.gz
volse-hubzilla-abaf752a9bd79a2856bd6acbf16cb62a7f770018.tar.bz2
volse-hubzilla-abaf752a9bd79a2856bd6acbf16cb62a7f770018.zip
comanche: simple test issue
Diffstat (limited to 'Zotlabs/Render/Comanche.php')
-rw-r--r--Zotlabs/Render/Comanche.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Render/Comanche.php b/Zotlabs/Render/Comanche.php
index fdb72c9fb..562a9f791 100644
--- a/Zotlabs/Render/Comanche.php
+++ b/Zotlabs/Render/Comanche.php
@@ -124,7 +124,6 @@ class Comanche {
}
function test_condition($s) {
-
// This is extensible. The first version of variable testing supports tests of the forms:
// [if $config.system.foo == baz] which will check if get_config('system','foo') is the string 'baz';
// [if $config.system.foo != baz] which will check if get_config('system','foo') is not the string 'baz';
@@ -161,7 +160,7 @@ class Comanche {
return false;
}
- if(preg_match('/[\$](.*?)/',$s,$matches)) {
+ if(preg_match('/[\$](.*?)$/',$s,$matches)) {
$x = $this->get_condition_var($matches[1]);
if($x)
return true;