Skip to content

Commit 9f09828

Browse files
committed
Use some PHP 5.4 constants unconditionally
1 parent 8fb9bf9 commit 9f09828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Templating/Helper/FormHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ public function humanize($text)
243243
public function formEncodeCurrency($text, $widget = '')
244244
{
245245
if ('UTF-8' === $charset = $this->getCharset()) {
246-
$text = htmlspecialchars($text, ENT_QUOTES | (\defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0), 'UTF-8');
246+
$text = htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
247247
} else {
248-
$text = htmlentities($text, ENT_QUOTES | (\defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0), 'UTF-8');
248+
$text = htmlentities($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
249249
$text = iconv('UTF-8', $charset, $text);
250250
$widget = iconv('UTF-8', $charset, $widget);
251251
}

0 commit comments

Comments
 (0)