git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aded6cf
)
warn about non-configured search adapter during indexing
author
Christian Weiske
<
[email protected]
>
Wed, 5 Nov 2014 10:45:43 +0000
(11:45 +0100)
committer
Christian Weiske
<
[email protected]
>
Wed, 5 Nov 2014 10:45:43 +0000
(11:45 +0100)
scripts/index.php
patch
|
blob
|
history
diff --git
a/scripts/index.php
b/scripts/index.php
index 1f7a7ac5ce8885869a090bc4a17238a6c7cc7f31..ea07e60a38544965e5b26911778723eaff3bddbd 100644
(file)
--- a/
scripts/index.php
+++ b/
scripts/index.php
@@
-13,6
+13,12
@@
if ($GLOBALS['phorkie']['cfg']['setupcheck']) {
$db = new Database();
+
+if ($db->prefix == '\phorkie\Database_Adapter_Null') {
+ echo "Error: No search adapter configured.\n";
+ exit(1);
+}
+
$idx = $db->getIndexer();
//create mapping