projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
22ef32e
)
fixed example in doc (closes #484)
author
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 25 Oct 2011 15:37:58 +0000 (17:37 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 25 Oct 2011 15:37:58 +0000 (17:37 +0200)
doc/extensions.rst
patch
|
blob
|
history
diff --git
a/doc/extensions.rst
b/doc/extensions.rst
index
7e9941f
..
1f61a3e
100644
(file)
--- a/
doc/extensions.rst
+++ b/
doc/extensions.rst
@@
-131,8
+131,8
@@
Global variables and functions can be registered in an extensions via the
public function getGlobals()
{
return array(
- 'text' => new Text(),
- 'lipsum' => new Twig_Function(new Text(), 'getLipsum'),
+ 'text' => new Text(),
+ 'lipsum' => new Twig_Function_Function('generate_lipsum'),
);
}