Fixes #2610 - Replaces variable functions with call_user_func()

Pulled against 1.9 branch this time.

See: https://github.com/Elgg/Elgg/pull/454