Skip to content

Commit

Permalink
Add fenom to chunk by pdoTools if available
Browse files Browse the repository at this point in the history
  • Loading branch information
faitno committed May 31, 2016
1 parent 13a72e9 commit 8e0edb8
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 8e0edb8

Please sign in to comment.