Skip to content

Commit

Permalink
Merge pull request splittingred#89 from soulcreate/patch-1
Browse files Browse the repository at this point in the history
Add fenom to chunk by pdoTools if available
  • Loading branch information
joeke authored Jan 27, 2017
2 parents abda40e + 8e0edb8 commit 2082d76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/components/formit/model/formit/formit.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ public function getStoreKey() {
* @return string The processed content of the Chunk
*/
public function getChunk($name,$properties = array()) {
if($pdo = $this->modx->getService('pdoTools'))
return $pdo->getChunk($name, $properties);
$chunk = null;
if(substr($name, 0, 6) == "@CODE:"){
$content = substr($name, 6);
Expand Down

0 comments on commit 2082d76

Please sign in to comment.