commit 7bc2fb69fa2643b1828841793a78c06fdea45f79
parent daefbc9cf4b4f3fc98b253fbabe5609d96c6e96d
Author: Jan Dankert <devnull@localhost>
Date: Wed, 10 Jan 2018 22:07:59 +0100
Zum Lesen der Konfiguration die globale Funktion config() verwenden und nicht mehr das Rumgealber mit der globalen Variable.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/template-engine/components/html/Component.class.php b/modules/template-engine/components/html/Component.class.php
@@ -198,7 +198,7 @@ class Expression
return $invert.'@$'.$arr.'['.$key.']';
case 'config':
$config_parts = explode('/',$value);
- return $invert.'@$conf['."'".implode("'".']'.'['."'",$config_parts)."'".']';
+ return $invert.'config('."'".implode("'".','."'",$config_parts)."'".')';
default:
throw new \LogicException("Unknown expression type '{$this->type}' in attribute value. Allowed: var|function|method|text|size|property|message|messagevar|arrayvar|config or none");