Browse Source

Remove back_compat.inc.php

Julio Montoya 12 years ago
parent
commit
6d761817c6

+ 1 - 1
main/newscorm/aicc_api.php

@@ -29,7 +29,7 @@
 $use_anonymous = true;
 
 // Load common libraries using a compatibility script to bridge between 1.6 and 1.8.
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 // Load learning path libraries so we can use the objects to define the initial values of the API.
 require_once 'learnpath.class.php';
 require_once 'learnpathItem.class.php';

+ 1 - 1
main/newscorm/aicc_hacp.php

@@ -45,7 +45,7 @@ if (!empty($_REQUEST['aicc_sid'])) {
     if ($debug > 1) { error_log('New LP - '.__FILE__.','.__LINE__.' - reusing session ID '.$_REQUEST['aicc_sid'], 0); }
 }
 //Load common libraries using a compatibility script to bridge between 1.6 and 1.8.
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 if ($debug > 2) { error_log('New LP - '.__FILE__.','.__LINE__.' - Current session ID: '.session_id(), 0); }
 //Load learning path libraries so we can use the objects to define the initial values of the API.
 require_once 'learnpath.class.php';

+ 0 - 13
main/newscorm/back_compat.inc.php

@@ -1,13 +0,0 @@
-<?php
-/* For licensing terms, see /license.txt */
-/**
- * This script used to allow compatibility between the New SCORM tool and both
- * version 1.6.3 and 1.8 of Dokeos by loading libraries in a different way.
- * The switch is now deprecated and this file will be renamed later on to
- * something like lp_includes.inc.php
- * @package chamilo.learnpath
- */
-/**
- * Code
- */
-require_once '../inc/global.inc.php';

+ 1 - 1
main/newscorm/display_audiorecorder.php

@@ -13,7 +13,7 @@
 // Flag to allow for anonymous user - needs to be set before global.inc.php.
 $use_anonymous = true;
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 require_once 'learnpath.class.php';
 require_once 'scorm.class.php';
 require_once 'aicc.class.php';

+ 1 - 1
main/newscorm/index.php

@@ -11,5 +11,5 @@
 // Flag to allow for anonymous user - needs to be set before global.inc.php.
 $use_anonymous = true;
 
-require 'back_compat.inc.php';
+require '../inc/global.inc.php';
 header('location: lp_controller.php?'.api_get_cidReq().'&action=list');

+ 1 - 1
main/newscorm/lp_ajax_initialize.php

@@ -19,7 +19,7 @@ $use_anonymous = true;
 
 // Name of the language file that needs to be included.
 $language_file[] = 'learnpath';
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 require_once 'learnpath.class.php';
 require_once 'scorm.class.php';
 require_once 'aicc.class.php';

+ 1 - 1
main/newscorm/lp_ajax_last_update_status.php

@@ -29,7 +29,7 @@ $use_anonymous = true;
 // Name of the language file that needs to be included.
 $language_file[] = 'learnpath';
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 
 /**
  * Writes an item's new values into the database and returns the operation result

+ 1 - 1
main/newscorm/lp_ajax_log.php

@@ -17,7 +17,7 @@ $use_anonymous = true;
 // Name of the language file that needs to be included.
 $language_file[] = 'learnpath';
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 
 /**
  * Write a log with the current message

+ 1 - 1
main/newscorm/lp_ajax_save_objectives.php

@@ -16,7 +16,7 @@ $use_anonymous = true;
 // Name of the language file that needs to be included.
 $language_file[] = 'learnpath';
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 
 /**
  * Writes an item's new values into the database and returns the operation result

+ 1 - 1
main/newscorm/lp_ajax_switch_item.php

@@ -17,7 +17,7 @@ $use_anonymous = true;
 // Name of the language file that needs to be included
 $language_file[] = 'learnpath';
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 
 /**
  * Get one item's details

+ 1 - 1
main/newscorm/lp_ajax_switch_item_toc.php

@@ -16,7 +16,7 @@ $use_anonymous = true;
 // Name of the language file that needs to be included.
 $language_file[] = 'learnpath';
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 
 /**
  * Get one item's details

+ 1 - 1
main/newscorm/lp_comm.common.php

@@ -13,7 +13,7 @@
 // Flag to allow for anonymous user - needs to be set before global.inc.php.
 $use_anonymous = true;
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 require_once 'learnpath.class.php';
 
 require '../inc/lib/xajax/xajax.inc.php';

+ 1 - 1
main/newscorm/lp_comm.server.php

@@ -16,7 +16,7 @@ $use_anonymous = true;
 // Name of the language file that needs to be included.
 $language_file[] = 'learnpath';
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 
 /**
  * Backup an item's values into the javascript API as "old" values (so we still have them at hand)

+ 1 - 1
main/newscorm/lp_controller.php

@@ -88,7 +88,7 @@ if ($debug > 0) error_log('New LP - Included aicc', 0);
 require_once 'aiccItem.class.php';
 if ($debug > 0) error_log('New LP - Included aiccItem', 0);
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 if ($debug > 0) error_log('New LP - Included back_compat', 0);
 
 $session_id = api_get_session_id();

+ 1 - 1
main/newscorm/lp_impress.php

@@ -9,7 +9,7 @@
  * Code
  */
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 $_SESSION['whereami'] = 'lp/impress';
 $this_section = SECTION_COURSES;
 

+ 1 - 1
main/newscorm/lp_list.php

@@ -17,7 +17,7 @@ if (empty($lp_controller_touched) || $lp_controller_touched != 1) {
     header('location: lp_controller.php?action=list');
 }
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 $courseDir = api_get_course_path().'/scorm';
 $baseWordDir = $courseDir;
 

+ 1 - 1
main/newscorm/lp_nav.php

@@ -17,7 +17,7 @@ $language_file[] = 'scormdocument';
 $language_file[] = 'scorm';
 $language_file[] = 'learnpath';
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 require_once 'learnpath.class.php';
 require_once 'scorm.class.php';
 require_once 'aicc.class.php';

+ 1 - 1
main/newscorm/lp_upload.php

@@ -10,7 +10,7 @@
  */
 // Flag to allow for anonymous user - needs to be set before global.inc.php.
 $use_anonymous = true;
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 $course_dir = api_get_course_path().'/scorm';
 $course_sys_dir = api_get_path(SYS_COURSE_PATH).$course_dir;
 if (empty($_POST['current_dir'])) {

+ 1 - 1
main/newscorm/lp_view.php

@@ -27,7 +27,7 @@ if ($lp_controller_touched != 1) {
 }
 
 /* Libraries */
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 require_once 'learnpath.class.php';
 require_once 'learnpathItem.class.php';
 

+ 1 - 1
main/newscorm/lp_view_item.php

@@ -18,7 +18,7 @@
 // The main_api.lib.php, database.lib.php and display.lib.php
 // libraries are included by default.
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 require_once 'learnpath.class.php';
 require_once 'learnpathItem.class.php';
 require_once 'learnpath_functions.inc.php';

+ 1 - 1
main/newscorm/resourcelinker.inc.php

@@ -22,7 +22,7 @@ use \ChamiloSession as Session;
 
 $use_anonymous = true;
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 require_once api_get_path(SYS_CODE_PATH).'lang/english/resourcelinker.inc.php';
 if (!empty($_course['language'])){
     $resource_linker_file =  api_get_path(SYS_CODE_PATH).'lang/'.$_course['language'].'/resourcelinker.inc.php';

+ 1 - 1
main/newscorm/resourcelinker.php

@@ -23,7 +23,7 @@ $use_anonymous = true;
 // Name of the language file that needs to be included.
 $language_file = 'resourcelinker';
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 
 $this_section = SECTION_COURSES;
 

+ 1 - 1
main/newscorm/scorm_api.php

@@ -29,7 +29,7 @@
 // Flag to allow for anonymous user - needs to be set before global.inc.php.
 $use_anonymous = true;
 
-require_once 'back_compat.inc.php';
+require_once '../inc/global.inc.php';
 require_once 'learnpath.class.php';
 require_once 'learnpathItem.class.php';
 require_once 'scorm.class.php';