diff --git a/src/Connector/ElFinderConnector.php b/src/Connector/ElFinderConnector.php index 0feb73c..d60ca2e 100644 --- a/src/Connector/ElFinderConnector.php +++ b/src/Connector/ElFinderConnector.php @@ -11,7 +11,7 @@ public function run($queryParameters = null) if (null === $queryParameters) { $queryParameters = $_GET; } - exit(json_encode($this->execute($queryParameters))); + return $this->execute($queryParameters); } public function execute($queryParameters) diff --git a/src/Loader/ElFinderLoader.php b/src/Loader/ElFinderLoader.php index 7758535..79f96ff 100644 --- a/src/Loader/ElFinderLoader.php +++ b/src/Loader/ElFinderLoader.php @@ -95,7 +95,7 @@ public function load(Request $request) if ($this->config['corsSupport']) { return $connector->execute($request->query->all()); } else { - $connector->run($request->query->all()); + return $connector->run($request->query->all()); } }