4835: Inlcude http and https links in the manifest iff it is accessforall export.
authorharris wong <hwong@ocad.ca>
Mon, 29 Aug 2011 16:49:36 +0000 (16:49 -0000)
committerharris wong <hwong@ocad.ca>
Mon, 29 Aug 2011 16:49:36 +0000 (16:49 -0000)
docs/mods/_core/imscc/include/ims_template.inc.php

index 9f73d3a..a34d4a6 100644 (file)
@@ -367,7 +367,9 @@ function print_organizations($parent_id,
                                                $content_files .= str_replace('{FILE}', $file, $ims_template_xml['file']);
                                        } else {
                                                if (preg_match('/^http[s]?\:/', $file) == 1){
-                                                       $content_files .= str_replace('{FILE}', $file, $ims_template_xml['xml']);
+                                                   if ($use_a4a) {
+                                                           $content_files .= str_replace('{FILE}', $file, $ims_template_xml['xml']);
+                                                       }
                                                } elseif (file_exists($file_path) && is_file($file_path)) {
                                                        //http://www.atutor.ca/atutor/mantis/view.php?id=4313
                                                        //relative link that goes beyond get.php shouldn't be added