Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
variable included in extension gives 'Undefined' warning
I'm doing a textformatter, I've included an array defining symbols stored in a global variable.
This variable is passed as a parameter to a function call inside the Parse method. When calling the function, PHP warns that the variable is undefined, yet if I add an echo with the variable just before calling the funcion, it prints "array".
The code works in a standalone PHP, by the way. Seems like a scope problem, but I'm lost and rather new to Vanilla.
Any ideas? Any extra information I should provide?
Thanks in advance, I'll post the extension to the repository once it's in working order
Edit: eh.. another thing, apparently to render correctly I need to change the Doctype and to report mime-type as xml. I have no idea where this is done in Vanilla either, nor would I know where to begin looking for it.
0
This discussion has been closed.
Comments
(ehm.. but I can't. So I'll just toss the link.)
http://octavoarte.cl/foroconcurso/vanilla_mathml.jpg