forked from halo-battle/game
29 lines
573 B
PHP
29 lines
573 B
PHP
<?php
|
|
|
|
/**
|
|
* Smarty method registerDefaultTemplateHandler
|
|
*
|
|
* Registers a default template handler
|
|
*
|
|
* @package Smarty
|
|
* @subpackage SmartyMethod
|
|
* @author Uwe Tews
|
|
*/
|
|
|
|
/**
|
|
* Registers a default template handler
|
|
*
|
|
* @param object $smarty
|
|
* @param string $ |array $function class/methode name
|
|
*/
|
|
function registerDefaultTemplateHandler($smarty, $function)
|
|
{
|
|
if (is_callable($function)) {
|
|
$smarty->default_template_handler_func = $function;
|
|
} else {
|
|
throw new Exception('Default template handler "' . $function . '" not callable');
|
|
}
|
|
}
|
|
|
|
?>
|