tweek
authorgreg gay <ggay@ocad.ca>
Wed, 16 Feb 2011 16:44:29 +0000 (16:44 -0000)
committergreg gay <ggay@ocad.ca>
Wed, 16 Feb 2011 16:44:29 +0000 (16:44 -0000)
mods/basiclti/ModuleCallbacks.class.php
mods/basiclti/module_backup.php

index efb69d0..3bc41ec 100644 (file)
@@ -50,7 +50,7 @@ class BasicLTICallbacks {
                   ( $basiclti_tool_row['launchinpopup'] == 2 && $basiclti_content_row['launchinpopup'] == 1 ) ) {
                        // return '<script type="text/javascript">window.open("'.$myurl.'");</script>'."\n";
                                /*****************
-                               *       The ID in the next bit of is temporary until we can add the box style to ATutor and
+                               *       The ID in the next bit is temporary until we can add the box style to ATutor and
                                *       change the ID value to content-tool. In the meantime this will fail validation if tools and
                                *   tests or forums are also present for the content page
                                **********************/
index 7c94721..eb337a0 100644 (file)
@@ -12,7 +12,8 @@ $sql['basiclti_tools']  = 'SELECT * FROM '.TABLE_PREFIX.'basiclti_tools WHERE co
 
 function basiclti_content_convert($row, $course_id, $table_id_map, $version) {
        $new_row = array();
-       $new_row[0]  = $row[0];
+       //$new_row[0]  = $row[0];
+       $new_row[0]  = 0;
        $new_row[1]  = $table_id_map['content'][$row[1]];
        $new_row[2] =  $course_id;
        $new_row[3]  = $row[3];          //
@@ -36,7 +37,8 @@ function basiclti_content_convert($row, $course_id, $table_id_map, $version) {
 }
 function basiclti_tools_convert($row, $course_id, $table_id_map, $version) {
        $new_row = array();
-       $new_row[0]  = $row[0];          //
+       //$new_row[0]  = $row[0];          //
+       $new_row[0]  = 0;          //
        $new_row[1]  = $row[1];          //
        $new_row[2]  = $course_id;
        $new_row[3]  = $row[3];          //