fix php 5.3 Fatal error: Using $this when not in object context

Signed-off-by:Eric Villard <dev@eviweb.fr>