Corrections of code deprecated since Elgg 1.8
Merge pull request #2 from Srokap/elgg19

Corrections of code deprecated since Elgg 1.8