mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #2155 register more PHP functions for templates
This commit is contained in:
@@ -118,6 +118,9 @@ class Template
|
||||
$this->smarty->registerPlugin('modifier', 'ucfirst', 'ucfirst');
|
||||
$this->smarty->registerPlugin('modifier', 'strstr', 'strstr');
|
||||
$this->smarty->registerPlugin('modifier', 'stristr', 'stristr');
|
||||
$this->smarty->registerPlugin('modifier', 'trim', 'trim');
|
||||
$this->smarty->registerPlugin('modifier', 'md5', 'md5');
|
||||
$this->smarty->registerPlugin('modifier', 'strtolower', 'strtolower');
|
||||
$this->smarty->registerPlugin('modifier', 'str_ireplace', 'str_ireplace');
|
||||
$this->smarty->registerPlugin('modifier', 'explode', array('Template', 'mod_explode') );
|
||||
$this->smarty->registerPlugin('modifier', 'ternary', array('Template', 'mod_ternary') );
|
||||
|
||||
Reference in New Issue
Block a user