commit b8cac8dd72337df80ae092493296fb2d83396d40 parent dd683cbdb20705051fc549193c26549890515400 Author: Jan Dankert <develop@jandankert.de> Date: Tue, 12 Nov 2019 22:50:21 +0100 Fix: Mustache is now able to analyze the dot notation itself. So we could output the original settings array here. Diffstat:
modules/cms-core/model/Page.class.php | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/cms-core/model/Page.class.php b/modules/cms-core/model/Page.class.php @@ -598,10 +598,10 @@ SQL $data = array(); // Template should have access to the page properties. - $data += \ArrayUtils::flattenArray('_page.' ,$this->getProperties() ); // Template should have access to the settings of this node object. - $data += \ArrayUtils::flattenArray('_page.localsettings.',$this->getSettings() ); - $data += \ArrayUtils::flattenArray('_page.settings.' ,$this->getTotalSettings() ); + $data['_page' ] = $this->getProperties() ; + $data['_localsettings'] = $this->getSettings() ; + $data['_settings' ] = $this->getTotalSettings(); // No we are collecting the data and are fixing some old stuff.