Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Oct 14, 2015
1 parent 717543f commit 8af93aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/includes/document.parser.class.inc.php
Expand Up @@ -1487,7 +1487,7 @@ function mergeChunkContent($content)
else $modifiers = false;

$value = $this->getChunk($key);
$value = $this->parseText($ph,$value,'[+','+]','chunk');
$value = $this->parseText($ph,$value,'[+','+]','hasModifier');

if($modifiers!==false)
{
Expand Down Expand Up @@ -2774,7 +2774,7 @@ function parseText($content='', $ph=array(), $left= '[+', $right= '+]',$cleanup=
if(strpos($key,':')!==false) list($key,$modifiers) = explode(':', $key, 2);
else $modifiers = false;

if($cleanup=='chunk' && !isset($ph[$key])) $ph[$key] = '';
if($cleanup=='hasModifier' && !isset($ph[$key])) $ph[$key] = '';

if(isset($ph[$key])) {
$value = $ph[$key];
Expand Down

0 comments on commit 8af93aa

Please sign in to comment.