Removed usage of deprecated function
Merge pull request #31 from enumag/compatibility

Nette 2.2 compatibility