Update to Elgg 1.9 (replace $CONFIG by elgg_get_config())