aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/Database.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-05-07 21:17:26 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-05-07 21:17:26 +0200
commitfa61fdfea420bb770d4390f49fa5e2f379891d21 (patch)
treea0e945b29bc6e2806a856a53fc837c54b0278c13 /src/phorkie/Database.php
parent5199f316fad43afc0657ece494ce8c5e18a4d78c (diff)
downloadphorkie-fa61fdfea420bb770d4390f49fa5e2f379891d21.tar.gz
phorkie-fa61fdfea420bb770d4390f49fa5e2f379891d21.zip
do not show search box when no search adapter configured
Diffstat (limited to 'src/phorkie/Database.php')
-rw-r--r--src/phorkie/Database.php4
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()