Use elgg_get_config() instead of the $CONFIG variable.

In Elgg 1.9 $CONFIG variable isn't automatically available for actions anymore so use elgg_get_config() instead.