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

load class listener - not for static functions?

Discussion in 'XenForo Development Discussions' started by Helmut2509, Feb 24, 2014.

  1. Helmut2509

    Helmut2509 Member

    I have written a listener to extend XenForo_Model_Avatar and in the extended class I have overwritten
    "public static function gravatarExists" .
    Surprisingly, the new function in the extended class is not called, but the function in the parent class.
    I suppose this is due to the fact, that the function is static?
    Is this true or did I make something wrong?
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Yes, when static functions are called you specify the exact class and it doesn't run through the proxy system.
     

Share This Page