remove debug()
authorCindy Li <cli@ocad.ca>
Fri, 11 Jun 2010 19:42:43 +0000 (19:42 -0000)
committerCindy Li <cli@ocad.ca>
Fri, 11 Jun 2010 19:42:43 +0000 (19:42 -0000)
docs/file_manager/edit.php
docs/home/editor/edit_content_folder.php
docs/home/ims/ims_import.old.php
docs/include/classes/Menu.class.php

index 6dca2f1..7141f84 100644 (file)
@@ -64,7 +64,6 @@ if (FileUtility::course_realpath($current_path . $pathext . $file) == FALSE) {
        exit;\r
 } else if (is_dir($current_path.$pathext.$file)) {\r
        // error: cannot edit folder\r
-       debug($current_path.$pathext.$file);exit;\r
        $msg->addError('BAD_FILE_TYPE');\r
        header('Location: index.php?pathext='.$pathext.SEP.'framed='.$framed.SEP.'popup='.$popup.SEP.'_course_id='.$_course_id);\r
        exit;\r
index 1f0d625..7027f28 100644 (file)
@@ -195,5 +195,4 @@ require(TR_INCLUDE_PATH.'footer.inc.php');
 
 //save last visit page.
 $_SESSION['last_visited_page'] = $server_protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
-debug($_SESSION['course_id']);
 ?>
\ No newline at end of file
index ab7c987..1ae972a 100644 (file)
@@ -372,7 +372,7 @@ function rehash($items){
                //check if this is a test import
                if ($name == 'schema'){
                        if (trim($my_data)=='IMS Question and Test Interoperability'){                  
-                               $msg->addError('IMPORT_FAILED');debug('1');exit;
+                               $msg->addError('IMPORT_FAILED');
                        } 
                        $content_type = trim($my_data);
                }
@@ -597,7 +597,7 @@ error_reporting(0);
 $archive = new PclZip($_FILES['file']['tmp_name']);
 if ($archive->extract( PCLZIP_OPT_PATH,        $import_path,
                                                PCLZIP_CB_PRE_EXTRACT,  'preImportCallBack') == 0) {
-       $msg->addError('IMPORT_FAILED');debug('2');exit;
+       $msg->addError('IMPORT_FAILED');
        echo 'Error : '.$archive->errorInfo(true);
        clr_dir($import_path);
        header('Location: ../index.php');
@@ -1109,7 +1109,7 @@ if (!is_dir($course_dir)) {
 
 if (@rename($import_path.$package_base_path, $course_dir.$package_base_name) === false) {
        if (!$msg->containsErrors()) {
-               $msg->addError('IMPORT_FAILED');debug('3');exit;
+               $msg->addError('IMPORT_FAILED');
        }
 }
 //check if there are still resources missing
index 46f6eda..4226959 100644 (file)
@@ -171,7 +171,6 @@ class Menu {
 //                             debug($_base_path.$this->current_page);debug($page);
                                if ($_base_path.$this->current_page != $page['url'])
                                {
-//                                     debug('here');exit;
                                        header('Location: '.$page['url']);
                                                
                                        // reset current_page after re-direction