From 7fb2fe3f8e59cf97efc25e9108323898631b5f73 Mon Sep 17 00:00:00 2001 From: nook24 Date: Tue, 27 Jun 2017 11:26:20 +0200 Subject: [PATCH] ITC-1171 Remove hardcoded server address --- app/Plugin/CrateModule/Model/Datasource/Crate.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Plugin/CrateModule/Model/Datasource/Crate.php b/app/Plugin/CrateModule/Model/Datasource/Crate.php index f7ae1147e0..2652bddab6 100644 --- a/app/Plugin/CrateModule/Model/Datasource/Crate.php +++ b/app/Plugin/CrateModule/Model/Datasource/Crate.php @@ -198,8 +198,7 @@ function describe($model){ public function connect(){ - - $dsn = 'crate:cratedb1.oitc.itn:4200'; + $dsn = sprintf('crate:%s', $this->config['host']); $flags = [ PDO::ATTR_TIMEOUT => $this->config['timeout'] ];