diff --git a/flight/Engine.php b/flight/Engine.php index 7c8e55f..554a93f 100644 --- a/flight/Engine.php +++ b/flight/Engine.php @@ -447,7 +447,7 @@ class Engine { */ public function _jsonp($data) { // Get the callback value (eg '?jsonp=my_function') and pad the output - $callback = \Flight::request()->query[ $this->get('flight.jsonp.callback') ]; + $callback = $this->request()->query[ $this->get('flight.jsonp.callback') ]; $this->response() ->status(200) ->header('Content-Type', 'application/javascript')