From b6084703a2693538cc7991f50b68adc26b612c0c Mon Sep 17 00:00:00 2001 From: Carlos Vargas Date: Wed, 10 Feb 2010 11:32:30 -0500 Subject: [PATCH] Improve glossary part#2 CT#191 --- main/document/showinframes.php | 2 +- main/glossary/glossary_ajax_request.php | 3 ++- main/glossary/index.php | 2 +- main/{glossary/glossary.class.php => inc/lib/glossary.lib.php} | 0 4 files changed, 4 insertions(+), 3 deletions(-) rename main/{glossary/glossary.class.php => inc/lib/glossary.lib.php} (100%) diff --git a/main/document/showinframes.php b/main/document/showinframes.php index a88fe5f54f..a62edd2eca 100755 --- a/main/document/showinframes.php +++ b/main/document/showinframes.php @@ -55,7 +55,7 @@ */ $language_file[] = 'document'; require_once '../inc/global.inc.php'; -require_once '../glossary/glossary.class.php'; +require_once(api_get_path(LIBRARY_PATH).'glossary.lib.php'); $language_file = 'document'; require_once '../inc/global.inc.php'; diff --git a/main/glossary/glossary_ajax_request.php b/main/glossary/glossary_ajax_request.php index 00e1406cc2..64c99c15a2 100755 --- a/main/glossary/glossary_ajax_request.php +++ b/main/glossary/glossary_ajax_request.php @@ -3,7 +3,8 @@ // including the global dokeos file require_once '../inc/global.inc.php'; -require_once '../glossary/glossary.class.php'; +require_once(api_get_path(LIBRARY_PATH).'glossary.lib.php'); + /* * search a term and return description from a glossary */ diff --git a/main/glossary/index.php b/main/glossary/index.php index 486760e767..0a614599c2 100755 --- a/main/glossary/index.php +++ b/main/glossary/index.php @@ -11,7 +11,7 @@ $language_file = array('glossary'); // including the global dokeos file require_once '../inc/global.inc.php'; -require_once 'glossary.class.php'; +require_once(api_get_path(LIBRARY_PATH).'glossary.lib.php'); // the section (tabs) $this_section=SECTION_COURSES; diff --git a/main/glossary/glossary.class.php b/main/inc/lib/glossary.lib.php similarity index 100% rename from main/glossary/glossary.class.php rename to main/inc/lib/glossary.lib.php