Yes, I have called it from a template. It is also called somewhere in the commenting engine but I can't figure out where (I know it is being called for every comment posted because of my debug logs). I used Firephp to do some debugging on it. The code is expecting an integer for $u->user_id in your code but never getting one so if (!is_numeric($u->user_id)) { return; } is always returning.
|