loadPlugin($_plugin)) { if (class_exists($_plugin, false)) { $_plugin = array($_plugin, 'execute'); } if (is_callable($_plugin)) { $smarty->registered_filters[$type][$_filter_name] = $_plugin; return; } } throw new Exception("{$type}filter \"{$name}\" not callable"); } ?>