Add "default_glossary_view" setting see BT#13077

pull/2487/head
jmontoyaa 8 years ago
parent 5c57c02c6b
commit c924845041
  1. 6
      main/glossary/index.php

@ -371,8 +371,12 @@ switch ($action) {
Session::write('glossary_view', $_GET['view']);
} else {
$view = Session::read('glossary_view');
$defaultView = api_get_configuration_value('default_glossary_view');
if (empty($defaultView)) {
$defaultView = 'table';
}
if (empty($view)) {
Session::write('glossary_view', 'table');
Session::write('glossary_view', $defaultView);
}
}
header('Location: '.$currentUrl);

Loading…
Cancel
Save