/** * Get the OutputPage being used for this instance. * IndexPager extends ContextSource as of 1.19. * * @since 0.1 * * @return OutputPage */ public function getOutput() { return version_compare($GLOBALS['wgVersion'], '1.18', '>') ? parent::getOutput() : $GLOBALS['wgOut']; }