diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-05-07 21:17:26 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-05-07 21:17:26 +0200 |
| commit | fa61fdfea420bb770d4390f49fa5e2f379891d21 (patch) | |
| tree | a0e945b29bc6e2806a856a53fc837c54b0278c13 /src | |
| parent | 5199f316fad43afc0657ece494ce8c5e18a4d78c (diff) | |
| download | phorkie-fa61fdfea420bb770d4390f49fa5e2f379891d21.tar.gz phorkie-fa61fdfea420bb770d4390f49fa5e2f379891d21.zip | |
do not show search box when no search adapter configured
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() |
