fixed: wrong call to Elgg core function
wrapped version 1.8.13.1