From 5bace3753acd2e4ae115106612220fc8702b6dc9 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 12 Feb 2018 11:18:06 -0500
Subject: [PATCH] Eliminate references to obsolete statistics module.

---
 module/VuFindAdmin/config/module.config.php  | 12 ------------
 themes/bootstrap3/templates/admin/home.phtml |  1 -
 2 files changed, 13 deletions(-)

diff --git a/module/VuFindAdmin/config/module.config.php b/module/VuFindAdmin/config/module.config.php
index d1b67adc4c2..bf80ea81a8a 100644
--- a/module/VuFindAdmin/config/module.config.php
+++ b/module/VuFindAdmin/config/module.config.php
@@ -8,7 +8,6 @@ $config = [
             'VuFindAdmin\Controller\ConfigController' => 'VuFind\Controller\AbstractBaseFactory',
             'VuFindAdmin\Controller\MaintenanceController' => 'VuFind\Controller\AbstractBaseFactory',
             'VuFindAdmin\Controller\SocialstatsController' => 'VuFind\Controller\AbstractBaseFactory',
-            'VuFindAdmin\Controller\StatisticsController' => 'VuFind\Controller\AbstractBaseFactory',
             'VuFindAdmin\Controller\TagsController' => 'VuFind\Controller\AbstractBaseFactory',
         ],
         'aliases' => [
@@ -16,7 +15,6 @@ $config = [
             'AdminConfig' => 'VuFindAdmin\Controller\ConfigController',
             'AdminMaintenance' => 'VuFindAdmin\Controller\MaintenanceController',
             'AdminSocial' => 'VuFindAdmin\Controller\SocialstatsController',
-            'AdminStatistics' => 'VuFindAdmin\Controller\StatisticsController',
             'AdminTags' => 'VuFindAdmin\Controller\TagsController',
         ],
     ],
@@ -73,16 +71,6 @@ $config = [
                             ]
                         ]
                     ],
-                    'statistics' => [
-                        'type' => 'Zend\Router\Http\Segment',
-                        'options' => [
-                            'route'    => '/Statistics[/:action]',
-                            'defaults' => [
-                                'controller' => 'AdminStatistics',
-                                'action'     => 'Home',
-                            ]
-                        ]
-                    ],
                     'tags' => [
                         'type' => 'Zend\Router\Http\Segment',
                         'options' => [
diff --git a/themes/bootstrap3/templates/admin/home.phtml b/themes/bootstrap3/templates/admin/home.phtml
index 59e43f64b71..18b3b6e0e79 100644
--- a/themes/bootstrap3/templates/admin/home.phtml
+++ b/themes/bootstrap3/templates/admin/home.phtml
@@ -6,7 +6,6 @@
   $coreLabels = [
     'biblio' => $this->translate('Bibliographic Index'),
     'authority' => $this->translate('Authority Index'),
-    'stats' => $this->translate('Usage Statistics Index')
   ];
 ?>
 <div class="<?=$this->layoutClass('mainbody')?>">
-- 
GitLab