diff --git a/assets/plugins/pagebuilder/pagebuilder.php b/assets/plugins/pagebuilder/pagebuilder.php index f38e5e8..f976acd 100644 --- a/assets/plugins/pagebuilder/pagebuilder.php +++ b/assets/plugins/pagebuilder/pagebuilder.php @@ -730,7 +730,7 @@ public function save() */ private function parseValues($input) { - if (!function_exists('ParseIntputOptions')) { + if (!function_exists('ParseInputOptions')) { require_once(MODX_MANAGER_PATH . 'includes/tmplvars.inc.php'); } @@ -742,7 +742,7 @@ private function parseValues($input) return $input; } else { $values = []; - $elements = ParseIntputOptions(ProcessTVCommand($input, '', '', 'tvform', $tv = [])); + $elements = ParseInputOptions(ProcessTVCommand($input, '', '', 'tvform', $tv = [])); if (!empty($elements)) { foreach ($elements as $element) { diff --git a/assets/tvs/pagebuilder/pagebuilder.customtv.php b/assets/tvs/pagebuilder/pagebuilder.customtv.php index a6529f7..6abbf86 100644 --- a/assets/tvs/pagebuilder/pagebuilder.customtv.php +++ b/assets/tvs/pagebuilder/pagebuilder.customtv.php @@ -4,10 +4,10 @@ die('
Please use the MODx Content Manager instead of accessing this file directly.
'); } -$path = __DIR__ . '/../../plugins/pagebuilder/'; +$path = dirname( __FILE__, 3 ) .'/plugins/pagebuilder/'; $parts = explode('/', $row['name']); $name = 'container.' . array_pop($parts) . '.php'; -$config = $path . 'config/' . implode('/', $parts) . '/' . $name; +$config = $path . 'config' . implode('/', $parts) . '/' . $name; require_once $path . 'pagebuilder.php';