From: Fabien Potencier Date: Sat, 8 Jan 2011 16:04:16 +0000 (+0100) Subject: fixed typo in the doc X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=34666d408f98304ab676bcb2d110e0a4edfdff7c;p=web%2Fkonrad%2Ftwig.git fixed typo in the doc --- diff --git a/doc/recipes.rst b/doc/recipes.rst index 3add4b7..d913920 100644 --- a/doc/recipes.rst +++ b/doc/recipes.rst @@ -216,7 +216,7 @@ When a function (or a filter) is not defined, Twig defaults to throw a ``Twig_Error_Syntax`` exception. However, it can also call a `callback`_ (any valid PHP callable) which should return a function (or a filter). -For filters, register callbacks with ``registerUndefinedFunctionCallback()``. +For filters, register callbacks with ``registerUndefinedFilterCallback()``. For functions, use ``registerUndefinedFunctionCallback()``:: // auto-register all native PHP functions as Twig functions