Skip to content

Commit

Permalink
New - rawモディファイア(※特殊なモディファイア)
Browse files Browse the repository at this point in the history
プロセッサを通さないテンプレート変数の生の値を取得する
  • Loading branch information
yama committed May 16, 2016
1 parent 69e6769 commit 8b54ee0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions manager/includes/document.parser.class.inc.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1404,9 +1404,12 @@ function mergeDocumentContent($content,$convertValue=true)
elseif(!isset($this->documentObject[$key])) $value = ''; elseif(!isset($this->documentObject[$key])) $value = '';
else $value= $this->documentObject[$key]; else $value= $this->documentObject[$key];
if (is_array($value)) $value= $this->tvProcessor($value); if (is_array($value)) {
if($modifiers==='raw') $value = $value['value'];
else $value= $this->tvProcessor($value);
}
if($modifiers!==false) if($modifiers!==false && $modifiers!=='raw')
{ {
$this->loadExtension('MODIFIERS'); $this->loadExtension('MODIFIERS');
$value = $this->filter->phxFilter($key,$value,$modifiers); $value = $this->filter->phxFilter($key,$value,$modifiers);
Expand Down

0 comments on commit 8b54ee0

Please sign in to comment.