Closed Xon closed 9 years ago
Since the array is set just above in the function ($xenParsingBbCodesPerms), I don't really get it...
Oh may be the perms for the button are not yet available, so we just need to check them.
I had to disable listeners, and then upgrade the XML. After that everything worked.
Oh, I think I get it. If you upload files first, the option is not there yet. So XenForo will not send an empty array but a null value. I will add an extra key check just for the update process.
:+1:
https://github.com/cclaerhout/xen_BBM_v2/commit/a4dd09c0f8eed3e2e9a653f75ff87d8ec974c572 only does _bakeQuattroParams. This affects the _bakeRedactorParams too.
Actually this also affects anything which touches: $this->_bbmXenTagsParsingAllowedUsergroups $this->_bbmXenTagsParsingAllowedNodes
in BBM_BbCode_Formatter_Base::bakeBbmTags
Ok I will check this later ; thanks !
Cheers. I'll work up a diff after tracking how those two variables are used.
$this->_bbmXenTagsParsingAllowedUsergroups => yes it needs it $this->_bbmXenTagsParsingAllowedNodes => it should work without any mods (an empty check was already there)
bbmXenTagsParsingAllowedUsergroups has an empty check just before it is used.
So it looks like it was just bakeQuattroParams & bakeRedactorParams functions :)
:+1:
On deploying the files, but before the XML file upgrade the following error caused my entire site to go offline with errors basically everywhere:
array_intersect(): Argument #2 is not an array library/BBM/Helper/Buttons.php