Commit cf23efe
committed
Avoid introducing new global variables on renderTemplate()
After initializing the Twig Environment, no new variables can be
introduced (existing ones can be changed). As Environment::load()
initializes the environment, this causes issues when calling
renderTemplate() afterwards. By defining them in both methods, no error
is thrown.1 parent 1bdb18c commit cf23efe
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
0 commit comments