|
|
|
@ -164,19 +164,6 @@ if (defined('SYSTEM_INSTALLATION') || defined('DOKEOS_COURSE_UPDATE')) { |
|
|
|
|
// The SCORM database doesn't need a change in the pre-migrate part - ignore. |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
----------------------------------------------------------- |
|
|
|
|
Update the Dokeos course databases |
|
|
|
|
this part can be accessed in two ways: |
|
|
|
|
- from the normal upgrade process |
|
|
|
|
- from the script update_courses.php, |
|
|
|
|
which is used to upgrade more than MAX_COURSE_TRANSFER courses |
|
|
|
|
|
|
|
|
|
Every time this script is accessed, only |
|
|
|
|
MAX_COURSE_TRANSFER courses are upgraded. |
|
|
|
|
----------------------------------------------------------- |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
$prefix = ''; |
|
|
|
|
if ($singleDbForm) { |
|
|
|
|
$prefix = $_configuration['table_prefix']; |
|
|
|
@ -198,7 +185,6 @@ if (defined('SYSTEM_INSTALLATION') || defined('DOKEOS_COURSE_UPDATE')) { |
|
|
|
|
if (Database::num_rows($res) > 0) { |
|
|
|
|
$i = 0; |
|
|
|
|
$list = array(); |
|
|
|
|
//while(($i < MAX_COURSE_TRANSFER) && ($row = Database::fetch_array($res))) |
|
|
|
|
while ($row = Database::fetch_array($res)) { |
|
|
|
|
$list[] = $row; |
|
|
|
|
$i++; |
|
|
|
@ -384,7 +370,6 @@ if (defined('SYSTEM_INSTALLATION') || defined('DOKEOS_COURSE_UPDATE')) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Load the old-scorm to new-scorm migration script |
|
|
|
|
// TODO: Deal with the fact that this should only act on MAX_COURSE_TRANSFER courses |
|
|
|
|
if (!$only_test){ |
|
|
|
|
include('update-db-scorm-1.6.x-1.8.0.inc.php'); |
|
|
|
|
} |
|
|
|
@ -492,7 +477,6 @@ if (defined('SYSTEM_INSTALLATION') || defined('DOKEOS_COURSE_UPDATE')) { |
|
|
|
|
if ($res === false) { die('Error while querying the courses list in update_db-1.6.x-1.8.0.inc.php'); } |
|
|
|
|
if (Database::num_rows($res) > 0) { |
|
|
|
|
$i = 0; |
|
|
|
|
//while( ($i < MAX_COURSE_TRANSFER) && ($row = Database::fetch_array($res))) |
|
|
|
|
while ($row = Database::fetch_array($res)) { |
|
|
|
|
$list[] = $row; |
|
|
|
|
$i++; |
|
|
|
|