Commit eb042075 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Make sure that the search plugin is always set

parent 03fa1c5d
......@@ -164,6 +164,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
Supports Markdown
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