1. 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

Discussion in 'Resolved Bug Reports' started by Jake Bunce, Dec 28, 2011.

  1. Jake Bunce

    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.
    shadoom likes this.
  2. Mike

    Mike 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.
    ragtek likes this.

Share This Page