Commit c4335841 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie

Make sure that the search plugin is always set

parent 71c76358
......@@ -162,6 +162,16 @@ if (!get_config('theme')) {
$CFG->themeurl = get_config('wwwroot') . 'theme/' . get_config('theme') . '/static/';
// Make sure the search plugin is configured
if (!get_config('searchplugin')) {
try {
set_config('searchplugin', 'internal');
}
catch (Exception $e) {
$CFG->searchplugin = 'internal';
}
}
header('Content-type: text/html; charset=UTF-8');
// Only do authentication once we know the page theme, so that the login form
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment