diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/phorkie/Database.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/phorkie/Database.php b/src/phorkie/Database.php index 786cfe0..1f214e8 100644 --- a/src/phorkie/Database.php +++ b/src/phorkie/Database.php @@ -3,12 +3,14 @@ namespace phorkie; class Database { + public $adapter = null; public $prefix = '\phorkie\Database_Adapter_Null'; public function __construct() { if ($GLOBALS['phorkie']['cfg']['elasticsearch'] != '') { - $this->prefix = '\phorkie\Database_Adapter_Elasticsearch'; + $this->adapter = 'Elasticsearch'; + $this->prefix = '\phorkie\Database_Adapter_Elasticsearch'; } } public function getSearch() |
