``$wgOut`` does not seem to be used in this function