index.php 574 B

12345678910111213141516171819
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * This file includes lp_list_search to avoid duplication of code, it
  5. * bootstraps chamilo api enough to make lp_list_search work.
  6. *
  7. * @package chamilo.search
  8. */
  9. require_once __DIR__.'/../inc/global.inc.php';
  10. $this_section = SECTION_COURSES;
  11. if (extension_loaded('xapian')) {
  12. require '../lp/lp_list_search.php';
  13. } else {
  14. Display::display_header(get_lang('Search'));
  15. echo Display::return_message(get_lang('The Xapian search module is not installed'), 'error');
  16. Display::display_footer();
  17. exit;
  18. }