Small changes full 1.9 compatibility
Updated to Elgg 1.9