diff --git a/_build/build.config.php b/_build/build.config.php index 4076d2a1..f81483e5 100644 --- a/_build/build.config.php +++ b/_build/build.config.php @@ -4,7 +4,7 @@ define('PKG_NAME', 'pdoTools'); define('PKG_NAME_LOWER', strtolower(PKG_NAME)); -define('PKG_VERSION', '2.12.10'); +define('PKG_VERSION', '2.12.11'); define('PKG_RELEASE', 'pl'); define('PKG_AUTO_INSTALL', true); diff --git a/core/components/pdotools/docs/changelog.txt b/core/components/pdotools/docs/changelog.txt index fba8e70b..9fcd1aca 100644 --- a/core/components/pdotools/docs/changelog.txt +++ b/core/components/pdotools/docs/changelog.txt @@ -1,5 +1,9 @@ Changelog for pdoTools. +2.12.11 pl +============== +- [pdoTools] Fixed class name for modElement + 2.12.10 pl ============== - [#308] [pdoPage] Fixed the type of snippet property "field" diff --git a/core/components/pdotools/model/pdotools/pdotools.class.php b/core/components/pdotools/model/pdotools/pdotools.class.php index 8389ce0c..1dba9c55 100644 --- a/core/components/pdotools/model/pdotools/pdotools.class.php +++ b/core/components/pdotools/model/pdotools/pdotools.class.php @@ -407,7 +407,7 @@ public function getChunk($name = '', array $properties = array(), $fastMode = fa if (!empty($name)) { $data = $this->_loadElement($name, 'modChunk', $properties); } - if (empty($name) || empty($data) || !($data['object'] instanceof modElement)) { + if (empty($name) || empty($data) || (!($data['object'] instanceof modElement) && !($data['object'] instanceof MODX\Revolution\modElement))) { return !empty($properties) ? str_replace(array('[', ']', '`'), array('[', ']', '`'), htmlentities(print_r($properties, true), ENT_QUOTES, 'UTF-8'))