registered_plugins['compiler'][$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'][$compiler_tag] = array($compiler_impl, $cacheable); } } ?>