/** * Available in parent class since MW 1.19 * @deprecated */ function getRequest() { if (is_callable('parent::getRequest')) { return parent::getRequest(); } else { global $wgRequest; return $wgRequest; } }