Fix for e107 v2.x

Tested locally with v1 and v2 sites. 

v2 : http://bigpointyteeth.net
v1: e107.org