Took out debug messages from schemaValidation for ims import.
authorharris wong <hwong@ocad.ca>
Fri, 26 Aug 2011 15:07:46 +0000 (15:07 -0000)
committerharris wong <hwong@ocad.ca>
Fri, 26 Aug 2011 15:07:46 +0000 (15:07 -0000)
docs/mods/_core/imscp/ims_import.php

index 6201322..a162fe5 100644 (file)
@@ -97,16 +97,16 @@ function checkResources($import_path){
        $data = rscandir($import_path);
        //check if every file is presented in the manifest
        foreach($data as $filepath){
-       debug(preg_match('/(.*)\.xml/', substr($filepath, strlen($import_path))));
+//     debug(preg_match('/(.*)\.xml/', substr($filepath, strlen($import_path))));
                //validate xml via its xsd/dtds
                if (preg_match('/(.*)\.xml/', substr($filepath, strlen($import_path)))){
                        libxml_use_internal_errors(true);
                        $dom = new DOMDocument();
                        $dom->load(realpath($filepath));
-                       debug(realpath($filepath), 'filepath');
+//                     debug(realpath($filepath), 'filepath');
                        if (!$dom->schemaValidate('main.xsd')){
                                $errors = libxml_get_errors();
-                               debug($errors);exit;
+//                             debug($errors);exit;
                                foreach ($errors as $error) {
                                        //suppress warnings
                                        if ($error->level==LIBXML_ERR_WARNING){