|
@@ -1,15 +1,20 @@
|
|
|
<?php
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
/* @todo move this file in the inc/ajax/ folder */
|
|
|
-
|
|
|
-
|
|
|
+/**
|
|
|
+ * Glossay ajax request code
|
|
|
+ * @package chamilo.glossary
|
|
|
+ */
|
|
|
+/**
|
|
|
+ * Init
|
|
|
+ */
|
|
|
// Including the global initialization file.
|
|
|
require_once '../inc/global.inc.php';
|
|
|
|
|
|
// Including additional libraries.
|
|
|
require_once api_get_path(LIBRARY_PATH).'glossary.lib.php';
|
|
|
|
|
|
-/*
|
|
|
+/**
|
|
|
* Search a term and return description from a glossary.
|
|
|
*/
|
|
|
$charset = api_get_system_encoding();
|
|
@@ -48,4 +53,4 @@ $path_image_search='../../courses/'.api_get_course_path();
|
|
|
|
|
|
} else {
|
|
|
echo api_xml_http_response_encode(get_lang('NoResults'));
|
|
|
- }
|
|
|
+ }
|