• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed extended model not working for payment_callback.php

Jake Bunce

XenForo moderator
Staff member
#1
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.
 

Mike

XenForo developer
Staff member
#2
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.