Fixed extended model not working for payment_callback.php

Jake Bunce

Well-known member
The problem happens with this simple addon I made:

http://xenforo.com/community/threads/custom-sql-query-on-user-upgrade.25201/#post-305801

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.
 
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.
 
Top Bottom