[svn r12619] Commented deprecated switch used to differenciate Dokeos 1.6 and 1.8 installs

skala
Yannick Warnier 19 years ago
parent 1f1fcdd321
commit 3820ed278f
  1. 13
      main/newscorm/back_compat.inc.php

@ -1,14 +1,16 @@
<?php //$id: $ <?php //$id: $
/** /**
* This script allows compatibility between the New SCORM tool and both version 1.6.3 * 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 * 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
*/ */
/** /**
* Have a switch looking for the version. If 1.6, load first bit, if 1.8, load second * Have a switch looking for the version. If 1.6, load first bit, if 1.8, load second
*/ */
//$my_version = $_GLOBALS['dokeosVersion']; //$my_version = $_GLOBALS['dokeosVersion'];
$my_version = '1.8'; //$my_version = '1.8';
switch($my_version){ /*switch($my_version){
case '1.6.3': case '1.6.3':
case '1.6.4': case '1.6.4':
case '1.6.5': case '1.6.5':
@ -23,6 +25,7 @@ switch($my_version){
break; break;
case '1.8': case '1.8':
default: default:
*/
require('../inc/global.inc.php'); require('../inc/global.inc.php');
require_once(api_get_path(LIBRARY_PATH) . 'events.lib.inc.php'); require_once(api_get_path(LIBRARY_PATH) . 'events.lib.inc.php');
require_once(api_get_path(LIBRARY_PATH) . 'database.lib.php'); require_once(api_get_path(LIBRARY_PATH) . 'database.lib.php');
@ -31,6 +34,8 @@ switch($my_version){
require_once(api_get_path(LIBRARY_PATH) . 'fileUpload.lib.php'); //replace_dangerous_char() require_once(api_get_path(LIBRARY_PATH) . 'fileUpload.lib.php'); //replace_dangerous_char()
require_once(api_get_path(LIBRARY_PATH) . 'fileManage.lib.php'); //check_name_exists() require_once(api_get_path(LIBRARY_PATH) . 'fileManage.lib.php'); //check_name_exists()
include_once (api_get_path(LIBRARY_PATH) . 'pclzip/pclzip.lib.php'); include_once (api_get_path(LIBRARY_PATH) . 'pclzip/pclzip.lib.php');
/*
break; break;
} }
*/
?> ?>
Loading…
Cancel
Save