Skip to content
Permalink
Browse files

[F] [*var@docid*]

  • Loading branch information...
yama committed Dec 19, 2016
1 parent daf9d7e commit 173b40366ae0bca0332b711774a02aa87ba083a4
Showing with 7 additions and 4 deletions.
  1. +7 −4 manager/includes/document.parser.class.inc.php
@@ -959,11 +959,14 @@ function mergeDocumentContent($content,$ph=false) {
if(substr($key, 0, 1) == '#') $key = substr($key, 1); // remove # for QuickEdit format
list($key,$modifiers) = $this->splitKeyAndFilter($key);
list($key,$context) = explode('@',$key,2);
if(isset($ph[$key])) $value = $ph[$key];
elseif(strpos($key,'@')!==false) $value = $this->_contextValue($key);
elseif($modifiers) $value = '';
else $value = $matches[0][$i];
if(!isset($ph[$key]) && !$context) {
$content= str_replace($matches[0][$i], '', $content);
continue;
}
elseif($context) $value = $this->_contextValue("{$key}@{$context}");
else $value = $ph[$key];
if (is_array($value)) {
include_once(MODX_MANAGER_PATH . 'includes/tmplvars.format.inc.php');

0 comments on commit 173b403

Please sign in to comment.
You can’t perform that action at this time.