From fa61fdfea420bb770d4390f49fa5e2f379891d21 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 7 May 2012 21:17:26 +0200 Subject: do not show search box when no search adapter configured --- src/phorkie/Database.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '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() -- cgit v1.2.3