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

Template listener: do not use "return"

Discussion in 'XenForo Development Discussions' started by cclaerhout, Dec 13, 2012.

  1. cclaerhout

    cclaerhout Well-Known Member

    This mistake will seem obvious to most of you (see here :coffee::oops: ) but better write it here.

    For those who wouldn't have understood: a "return" in a template listener will prevent this hook to be available once the return is done. Instead use a "break" command in a "switch" conditional.
    Chris D likes this.

Share This Page