Skip to content

Commit

Permalink
#2301 strip_tags 필터 수정, date 필터 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Sep 27, 2018
1 parent b2b273e commit 275c304
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions classes/template/TemplateHandler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,6 @@ private function _parseResource($m)
case 'strip':
case 'strip_tags':
$var = $filter_option ? "strip_tags({$var}, {$filter_option})" : "strip_tags({$var})";
$escape_option = 'noescape';
break;

case 'trim':
Expand Down Expand Up @@ -750,13 +749,12 @@ private function _parseResource($m)

case 'join':
$var = $filter_option ? "implode({$filter_option}, {$var})" : "implode(', ', {$var})";
$escape_option = 'noescape';
break;

case 'date':
$var = $filter_option ? "getDisplayDateTime(ztime({$var}), {$filter_option})" : "getDisplayDateTime(ztime({$var}), 'Y-m-d H:i:s')";

This comment has been minimized.

Copy link
@kijin

kijin Oct 8, 2018

Contributor

XE에서는 그냥 zdate({$var}, {$filter_option})으로 하시면 되는데요.

$escape_option = 'noescape';
break;
// case 'date':
// $var = $filter_option ? "getDisplayDateTime(ztime({$var}), {$filter_option})" : "getDisplayDateTime(ztime({$var}), 'Y-m-d H:i:s')";
// $escape_option = 'noescape';
// break;

case 'format':
case 'number_format':
Expand Down

0 comments on commit 275c304

Please sign in to comment.