Fixed extended model not working for payment_callback.php

Jake Bunce

XenForo moderator
Staff member
The problem happens with this simple addon I made:

The addon extends XenForo_Model_UserUpgrade::upgradeUser. The query runs when you manually upgrade a user in the Admin CP, but not when you make an actual purchase. Both actions call on the same function, but only the manual upgrade runs the extended code. I did some debugging to confirm this. The manual upgrade hits both the parent and extended function like I want, but an actual purchase only hits the parent.


XenForo developer
Staff member
Fixed - this now sets up dependencies (like cron.php). I'm also adjusting css.php to do this as well, though it's unlikely to be needed.