index.php 549 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. * @package chamilo.search
  7. */
  8. require_once '../inc/global.inc.php';
  9. $this_section = SECTION_COURSES;
  10. if (extension_loaded('xapian')) {
  11. require '../newscorm/lp_list_search.php';
  12. } else {
  13. Display::display_header(get_lang('Search'));
  14. Display::display_error_message(get_lang('SearchXapianModuleNotInstalled'));
  15. Display::display_footer();
  16. exit;
  17. }