Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions assets/plugins/pagebuilder/pagebuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions assets/tvs/pagebuilder/pagebuilder.customtv.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
die('<h1>ERROR:</h1><p>Please use the MODx Content Manager instead of accessing this file directly.</p>');
}

$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';

Expand Down