From d29c724f12c4830c77dcbc1070d27dde27036ecd Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 19 Oct 2012 10:49:50 -0400 Subject: [PATCH] More appropriate abstraction (throw exception instead of dying with non-object error if table manager not assigned). --- module/VuFind/src/VuFind/Session/AbstractBase.php | 2 +- module/VuFind/src/VuFind/Statistics/Driver/Db.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Session/AbstractBase.php b/module/VuFind/src/VuFind/Session/AbstractBase.php index 6dd2a844ebe..7c9dbf2d470 100644 --- a/module/VuFind/src/VuFind/Session/AbstractBase.php +++ b/module/VuFind/src/VuFind/Session/AbstractBase.php @@ -204,6 +204,6 @@ abstract class AbstractBase implements SaveHandlerInterface, */ protected function getTable($table) { - return $this->tableManager->get($table); + return $this->getDbTableManager()->get($table); } } \ No newline at end of file diff --git a/module/VuFind/src/VuFind/Statistics/Driver/Db.php b/module/VuFind/src/VuFind/Statistics/Driver/Db.php index 1fc16d3f78c..9ca1c5904b9 100644 --- a/module/VuFind/src/VuFind/Statistics/Driver/Db.php +++ b/module/VuFind/src/VuFind/Statistics/Driver/Db.php @@ -136,6 +136,6 @@ class Db extends AbstractBase implements \VuFind\Db\Table\DbTableAwareInterface */ protected function getTable($table) { - return $this->tableManager->get($table); + return $this->getDbTableManager()->get($table); } } -- GitLab