changed: made the plugin Elgg 1.8 compatible