getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.31k stars 168 forks source link

[Starterkit] Don't overwrite reserved $page variable in Header snippet #982

Closed danielkratz closed 6 years ago

danielkratz commented 6 years ago

(I can't open issues in the starterkit repo. I hope it's ok to put it here.)

In the header snippet the reserved $page variable is overwritten in the foreach loop for the navigation. It's not possible to use the Kirby variable afterwards. Better change the variable name used in the loop. See also: https://getkirby.slack.com/archives/CBN859614/p1536659663000100

bastianallgeier commented 6 years ago

✅ just fixed it.