Make compatible with MediaWiki 1.22

Change-Id: Ieb4a1492cd980c464eef383053342edfec3c5daf