Fixed 2.3 compatibility

Hi, the extension was throwing a server error on 2.3, I have fixed this by changing the contents of the $page variable.