From ccb64101b8d4d65249a5d3171a9d879d36f733f5 Mon Sep 17 00:00:00 2001 From: Bert Oost Date: Wed, 13 Nov 2013 15:56:20 +0100 Subject: [PATCH] Update babel.plugin.php Fixed loading whole MODX objects into Babel object --- core/components/babel/elements/plugins/babel.plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/components/babel/elements/plugins/babel.plugin.php b/core/components/babel/elements/plugins/babel.plugin.php index c65d1c9..a1d3915 100755 --- a/core/components/babel/elements/plugins/babel.plugin.php +++ b/core/components/babel/elements/plugins/babel.plugin.php @@ -38,7 +38,7 @@ * @package babel */ -$babel = $modx->getService('babel', 'Babel', $modx->getOption('babel.core_path', null, $modx->getOption('core_path') . 'components/babel/') . 'model/babel/', $scriptProperties); +$babel = $modx->getService('babel', 'Babel', $modx->getOption('babel.core_path', null, $modx->getOption('core_path') . 'components/babel/') . 'model/babel/', array()); if (!($babel instanceof Babel)) return; /* be sure babel TV is loaded */ @@ -117,4 +117,4 @@ $babel->initBabelTv($resource); break; } -return; \ No newline at end of file +return;