Quote from: OpenGeek at Sep 28, 2008, 10:00 AM
How would this be affected by the core? I don’t understand the problem BobRay or how this could be affected by MODx in any way. Where is the code that would be looking at anything that says EXTRA:?
Beats the heck out of me -- I was hoping you’d know.
I’ve done a search and can’t find anything relevant in the core. All I know is that when EZfaq parses the document content using vanilla PHP explode(), it works fine if the token is Extra: but not when it’s EXTRA:
Results with Extra: as the token in the snippet and the content document:
Extra: This will appear between questions. --> appears on the page as "This will appear between questions."
Results with EXTRA: as the token in the snippet and content document:
EXTRA: This will appear between questions. --> appears on the page as "EXTR"
I’ve changed it back and forth several times and the results are consistent. The "EXTRA:" lines are the only ones affected, the rest of the parsing goes fine.
If it was an error in my code, you’d think the case of the token wouldn’t matter.
I’ve tried creating a much simpler snippet with a single explode() and I can’t duplicate the problem so it seems almost certain that MODx isn’t the culprit. It’s a mystery all right.
EZfaq is in the SVN repo now if you’re curious enough to try it yourself.