http://www.atutor.ca/atutor/mantis/view.php?id=4323
authorharris wong <hwong@ocad.ca>
Mon, 14 Jun 2010 15:57:31 +0000 (15:57 -0000)
committerharris wong <hwong@ocad.ca>
Mon, 14 Jun 2010 15:57:31 +0000 (15:57 -0000)
docs/mods/_core/imscp/ims_import.php
docs/mods/_core/imscp/index.php

index 9cf0253..55c1cfb 100644 (file)
@@ -879,6 +879,10 @@ if (file_exists($import_path . $glossary_path . 'glossary.xml')){
 
 // Check if all the files exists in the manifest, iff it's a IMS CC package.
 if ($content_type == 'IMS Common Cartridge') {
+       //If user chooses to ignore validation.
+       if(isset($_POST['ignore_validation']) && $_POST['ignore_validation']==1) {
+               $skip_ims_validation = true;
+       }
        checkResources($import_path);
 }
 
index 1a12962..a7b9f5e 100644 (file)
@@ -145,7 +145,9 @@ if (!authenticate(AT_PRIV_CONTENT, AT_PRIV_RETURN) && ($_SESSION['packaging'] ==
                <input type="checkbox" name="allow_test_import" id="allow_test_import" checked="checked" />
                <label for="allow_test_import"><?php echo _AT('test_import_package'); ?></label> <br />
                <input type="checkbox" name="allow_a4a_import" id="allow_a4a_import" checked="checked" />
-               <label for="allow_a4a_import"><?php echo _AT('a4a_import_package'); ?></label>          
+               <label for="allow_a4a_import"><?php echo _AT('a4a_import_package'); ?></label> <br />
+               <input type="checkbox" name="ignore_validation" id="ignore_validation" value="1" />
+               <label for="ignore_validation"><?php echo _AT('ignore_validation'); ?></label> <br />
        </div>
        
        <div class="row">