Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pdoTools] Fixed class name for modElement #309

Closed
wants to merge 1 commit into from
Closed
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
[pdoTools] Fixed class name for modElement
ilyautkin committed Mar 9, 2021

Verified

This commit was signed with the committer’s verified signature.
AdmiralCurtiss Admiral H. Curtiss
commit 4ef71d6fe69811abab195a5c77b5ddbd1b3c4c60
2 changes: 1 addition & 1 deletion _build/build.config.php
Original file line number Diff line number Diff line change
@@ -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);

4 changes: 4 additions & 0 deletions core/components/pdotools/docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion core/components/pdotools/model/pdotools/pdotools.class.php
Original file line number Diff line number Diff line change
@@ -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'))