Permalink
Browse files

New - rawモディファイア(※特殊なモディファイア)

プロセッサを通さないテンプレート変数の生の値を取得する
  • Loading branch information...
yama committed May 16, 2016
1 parent 69e6769 commit 8b54ee044070289c6fd442c9a0e23effffaefe8e
Showing with 5 additions and 2 deletions.
  1. +5 −2 manager/includes/document.parser.class.inc.php
@@ -1404,9 +1404,12 @@ function mergeDocumentContent($content,$convertValue=true)
elseif(!isset($this->documentObject[$key])) $value = '';
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');
$value = $this->filter->phxFilter($key,$value,$modifiers);

0 comments on commit 8b54ee0

Please sign in to comment.