Added support for MediaWiki < 1.18