update depreciated functions

Deprecated in 1.8: set_context() was deprecated by elgg_set_context().