Skip to content

Commit

Permalink
modxcms#187 Ditto is missing placeholders when built-in filters are e…
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Aug 25, 2017
1 parent 57747d3 commit 2c2fe39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/snippets/ditto/classes/ditto.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ function render($resource, $template, $removeChunk,$dateSource,$dateFormat,$ph=a
$i = 0;
while($i<10) {
$_ = $output;
$output = $modx->parseText($output,$placeholders);
if(strpos($output,'[+')!==false) $output = $modx->parseText($output,$placeholders);
else $output = $modx->parseDocumentSource($output);
if($_===$output) break;
$i++;
}
Expand Down

0 comments on commit 2c2fe39

Please sign in to comment.