use wfScript() so that it uses $wgScriptExtension to get the path to api.php(5)