summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Cornutt <enygma@phpdeveloper.org>2015-05-09 18:30:06 -0400
committerChris Cornutt <enygma@phpdeveloper.org>2015-05-09 18:30:06 -0400
commitd3b2ed49b4be3200821b2f77281a6b7f3e5ecb6e (patch)
tree6e43a54c8567a138565280bf939e24f698bb23db
parent3545ddc56a0c8b6bfbdf746de584ae921848e38a (diff)
downloadgatekeeper-d3b2ed49b4be3200821b2f77281a6b7f3e5ecb6e.zip
gatekeeper-d3b2ed49b4be3200821b2f77281a6b7f3e5ecb6e.tar.gz
gatekeeper-d3b2ed49b4be3200821b2f77281a6b7f3e5ecb6e.tar.bz2
Adding table prefix check to collection Mysql base class
-rw-r--r--src/Psecio/Gatekeeper/Collection/Mysql.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Psecio/Gatekeeper/Collection/Mysql.php b/src/Psecio/Gatekeeper/Collection/Mysql.php
index c180b0a..2823e13 100644
--- a/src/Psecio/Gatekeeper/Collection/Mysql.php
+++ b/src/Psecio/Gatekeeper/Collection/Mysql.php
@@ -53,7 +53,9 @@ class Mysql extends \Modler\Collection
*/
public function getTableName()
{
- return $this->tableName;
+ $dbConfig = $this->db->config;
+ return (isset($dbConfig['prefix']))
+ ? $dbConfig['prefix'].'_'.$this->tableName : $this->tableName;
}
/**