Updated to work with MediaWiki 1.23.1