Skip to content

Commit

Permalink
Add modifiers for PHP functions
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Mar 29, 2023
1 parent 2b80302 commit 0ae9cd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/template/PKPTemplateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ public function initialize($request)
$this->registerPlugin('modifier', 'substr', 'substr');
$this->registerPlugin('modifier', 'strstr', 'strstr');
$this->registerPlugin('modifier', 'array_key_first', 'array_key_first');
$this->registerPlugin('modifier', 'fatalError', 'fatalError');
$this->registerPlugin('modifier', 'translate', [$this, 'smartyTranslateModifier']);
$this->registerPlugin('modifier', 'strip_unsafe_html', '\PKP\core\PKPString::stripUnsafeHtml');
$this->registerPlugin('modifier', 'String_substr', '\PKP\core\PKPString::substr');
Expand Down

0 comments on commit 0ae9cd8

Please sign in to comment.