diff --git a/module/VuFind/src/VuFind/Controller/AdminController.php b/module/VuFind/src/VuFind/Controller/AdminController.php index 3438df90a8bf6a6c255276feb7e239dfe8e38669..93b78d5ae9c54cc54d74fd004a7cc9bd19e411c1 100644 --- a/module/VuFind/src/VuFind/Controller/AdminController.php +++ b/module/VuFind/src/VuFind/Controller/AdminController.php @@ -27,8 +27,7 @@ */ namespace VuFind\Controller; use VuFind\Config\Reader as ConfigReader, - VuFind\Exception\Forbidden as ForbiddenException, - VuFind\Http\Client as HttpClient, Zend\Mvc\MvcEvent; + VuFind\Exception\Forbidden as ForbiddenException, Zend\Mvc\MvcEvent; /** * Class controls VuFind administration. @@ -131,8 +130,8 @@ class AdminController extends AbstractBase $config = ConfigReader::getConfig(); $xml = false; if (isset($config->Index->url)) { - $client = new HttpClient($config->Index->url . '/admin/multicore'); - $response = $client->setMethod('GET')->send(); + $response = $this->getServiceLocator()->get('VuFind\Http') + ->get($config->Index->url . '/admin/multicore'); $xml = $response->isSuccess() ? $response->getBody() : false; } $view = $this->createViewModel();