X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/58919afe451ad5b2088d61ff1c856f44dd522b32..38aa0dc6133ff53d20fd9f714eb380809c8dba67:/src/phorkie/Database.php 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()