From 802faef4cfa72101ee4b0a166f63b4dfef1b14dd Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 14 May 2019 08:17:24 -0400
Subject: [PATCH] Simplified redundant code.

---
 module/VuFind/src/VuFind/Controller/AuthorityController.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/module/VuFind/src/VuFind/Controller/AuthorityController.php b/module/VuFind/src/VuFind/Controller/AuthorityController.php
index d100c7f8b18..4491051d9fb 100644
--- a/module/VuFind/src/VuFind/Controller/AuthorityController.php
+++ b/module/VuFind/src/VuFind/Controller/AuthorityController.php
@@ -76,14 +76,12 @@ class AuthorityController extends AbstractSearch
     public function recordAction()
     {
         $id = $this->params()->fromQuery('id');
-        $cfg = $this->serviceLocator->get('Config');
-        $tabConfig = $cfg['vufind']['recorddriver_tabs'];
         $driver = $this->serviceLocator->get(\VuFind\Record\Loader::class)
             ->load($id, 'SolrAuth');
         $request = $this->getRequest();
         $tabs = $this->serviceLocator
             ->get(\VuFind\RecordTab\PluginManager::class)
-            ->getTabsForRecord($driver, $tabConfig, $request);
+            ->getTabsForRecord($driver, $this->getRecordTabConfig(), $request);
         return $this->createViewModel(['driver' => $driver, 'tabs' => $tabs]);
     }
 
-- 
GitLab