Closed YOUR1 closed 1 year ago
Pinging @samwilson so we can tag a new version with this fix (and I could actually use it in production :) )
Thanks for working on this. Could you please explain a bit more about the bug you're experiencing? i.e. what is happening, and how do you replicate it. Your other PR (#62) seems to have been about the same issue.
The commit message should explain why there's a difference between calling this on the Parser object passed to the ParserFirstCallInit hook and calling it on the main Parser service.
No problem. The issue is fairly easy to reproduce:
A error will occur now and then, saying that the file already exists, thus isn't showed.
The underlying problem for this issue is that the isPreview-bool is always false. This is because the parserCallFirstInit hook is called BEFORE the isPreview boolean is set correctly. To workaround this issue, I used MediaWikiServers::getInstance()->getParser(), since it has the 'correct' object.
Pinging @samwilson to review the updated version.
Tested and its working as it should now. GraphViz is now working without any bugs.