Skip to content

Commit

Permalink
ソニーペイメントで使用している関数を Smarty の modifier に追加
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Feb 13, 2025
1 parent f52f6e2 commit 164ffed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/class/SC_View.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function init()
$this->_smarty->registerPlugin('modifier', 'key', 'key');
$this->_smarty->registerPlugin('modifier', 'strpos', 'strpos');
$this->_smarty->registerPlugin('modifier', 'current', 'current');
$this->_smarty->registerPlugin('modifier', 'var_dump', 'var_dump');
// XXX register_function で登録すると if で使用できないのではないか?
$this->_smarty->registerPlugin('function', 'sfIsHTTPS', ['SC_Utils_Ex', 'sfIsHTTPS']);
$this->_smarty->registerPlugin('function', 'sfSetErrorStyle', ['SC_Utils_Ex', 'sfSetErrorStyle']);
Expand Down

0 comments on commit 164ffed

Please sign in to comment.