fixed Mediawiki coding style issues; hand tested with curl