remote forking: use the original http/https url in description
[phorkie.git] / src / phorkie / Database.php
index 786cfe0695ece7bd49b858cabd5ddb53e0e80609..1f214e8a6622ede5d64b08373951323e01e3138f 100644 (file)
@@ -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()