registered_plugins[$compiler_tag])) { throw new Exception("Plugin tag \"{$compiler_tag}\" already registered"); } elseif (!is_callable($compiler_impl)) { throw new Exception("Plugin \"{$compiler_tag}\" not callable"); } else { $smarty->registered_plugins[$compiler_tag] = array('compiler', $compiler_impl, $cacheable); } } ?>