fix bugs from merging atutor changes.
[acontent.git] / docs / home / editor / edit_content.php
index e2bccc3..d09f20f 100644 (file)
@@ -72,6 +72,7 @@ if (isset($_POST['submit_file'])) {
        paste_from_file(body_text);
 } else if (isset($_POST['submit']) && ($_POST['submit'] != 'submit1')) {
        /* we're saving. redirects if successful. */
+       debug('here');exit;
        save_changes(true, $current_tab);
 }
 
@@ -84,6 +85,7 @@ if (isset($_POST['submit_file_alt'])) {
 
 if (isset($_POST['submit'])) {
        /* we're saving. redirects if successful. */
+       debug('here');
        save_changes(true, $current_tab);
 }
 
@@ -136,7 +138,7 @@ if ($cid) {
                $content_base_href = 'content/' . $_SESSION['course_id'] . '/';
        }
 }
-
+debug($content_base_href);exit;
 if (($current_tab == 0) || ($current_tab == 2)) {
     if ($_POST['formatting'] == null){ 
         // this is a fresh load from just logged in