mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
made $function[2] and $function[3] options for register_resource
This commit is contained in:
@@ -798,7 +798,7 @@ class Smarty
|
|||||||
*/
|
*/
|
||||||
function register_resource($type, $functions)
|
function register_resource($type, $functions)
|
||||||
{
|
{
|
||||||
if (sizeof($functions)==4) {
|
if (sizeof($functions)<5) {
|
||||||
$this->_plugins['resource'][$type] =
|
$this->_plugins['resource'][$type] =
|
||||||
array($functions, false);
|
array($functions, false);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user