Skip to content

Commit 2082d76

Browse files
authored
Merge pull request splittingred#89 from soulcreate/patch-1
Add fenom to chunk by pdoTools if available
2 parents abda40e + 8e0edb8 commit 2082d76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/components/formit/model/formit/formit.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ public function getStoreKey() {
221221
* @return string The processed content of the Chunk
222222
*/
223223
public function getChunk($name,$properties = array()) {
224+
if($pdo = $this->modx->getService('pdoTools'))
225+
return $pdo->getChunk($name, $properties);
224226
$chunk = null;
225227
if(substr($name, 0, 6) == "@CODE:"){
226228
$content = substr($name, 6);

0 commit comments

Comments
 (0)