]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19808 Converted all print_footer() calls
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 14:14:09 +0000 (14:14 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 14:14:09 +0000 (14:14 +0000)
mod/forum/discuss.php
mod/forum/index.php
mod/forum/markposts.php
mod/forum/post.php
mod/forum/report.php
mod/forum/search.php
mod/forum/subscribe.php
mod/forum/subscribers.php
mod/forum/unsubscribeall.php
mod/forum/user.php

index b5b53f9d52e9b704e75f3ddef8e5cadc4339c996..22952587ebfd515547f1f9434d0b042444ecb4e8 100644 (file)
     $canrate = has_capability('mod/forum:rate', $modcontext);
     forum_print_discussion($course, $cm, $forum, $discussion, $post, $displaymode, $canreply, $canrate);
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 
 ?>
index cd607672794925c354a3bd5ae6cdaa513e916c7f..a653d82c9d228f21321b72c756d28118cc847773 100644 (file)
         print_table($learningtable);
     }
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 ?>
index 6210a9bd98d234e7f2a27307e571d2fd9ae8e650..bd5bd3e9308ce6bd0e9cd1ce356905d6036699dc 100644 (file)
@@ -37,7 +37,7 @@
         print_header($course->shortname, $course->fullname, $navigation, '', '', true, "", navmenu($course, $cm));
         notice_yesno(get_string('noguesttracking', 'forum').'<br /><br />'.get_string('liketologin'),
                      get_login_url(), $returnto);
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit;
     }
 
index 1a692a32dc191ba0816ba683f5b1c557e69ed8d2..1c6cfe9cfc907df249bdd92ff53b8bd93260382f 100644 (file)
@@ -55,7 +55,7 @@
 
         notice_yesno(get_string('noguestpost', 'forum').'<br /><br />'.get_string('liketologin'),
                      get_login_url(), get_referer(false));
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit;
     }
 
             }
 
         }
-        print_footer($course);
+        echo $OUTPUT->footer();
         die;
 
 
             forum_print_post($post, $discussion, $forum, $cm, $course, false, false, false);
             echo '</center>';
         }
-        print_footer($course);
+        echo $OUTPUT->footer();
         die;
     } else {
         print_error('unknowaction');
 
     $mform_post->display();
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 
 ?>
index d3405480a8c05cfd3ace4232c6973b0b740854c1..38b735e37b85fd1d89a542927591749392d7a210 100644 (file)
@@ -82,5 +82,5 @@
     }
 
     echo $OUTPUT->close_window_button();
-    print_footer('none');
+    echo $OUTPUT->footer();
 ?>
index f5ca87a68ee5d31dcb5747545cddd585b05d89cc..c31ae464f34559ed1a9d4f2da114ed8a51a1a9aa 100644 (file)
                   "", "", "&nbsp;", navmenu($course));
 
         forum_print_big_search_form($course);
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit;
     }
 
 
         forum_print_big_search_form($course);
 
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit;
     }
 
 
     print_paging_bar($totalcount, $page, $perpage, "search.php?search=".urlencode($search)."&amp;id=$course->id&amp;perpage=$perpage&amp;");
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 
 
index c2876e4eceb8f784e1ac2cc963e8ebf3a9b44417..1327b631f1313837a1b41075a6aa7c9a8bbc69fd 100644 (file)
@@ -52,7 +52,7 @@
 
         notice_yesno(get_string('noguestsubscribe', 'forum').'<br /><br />'.get_string('liketologin'),
                      get_login_url(), $_SERVER['HTTP_REFERER']);
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit;
     }
 
index 193f110656da598b764b8a4cef97258023398c10..2819ff162af00741416af9e9f1e25b7d0335bb72 100644 (file)
@@ -77,7 +77,7 @@
             echo "</table>";
         }
 
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit;
     }
 
 
     print_simple_box_end();
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 ?>
index e1ce8c456fa89d25cc4a5b958699888681d7fc8c..13b0f6dbb67cef5a3156fc4d983061cba395e9f8 100644 (file)
@@ -26,7 +26,7 @@ if (data_submitted() and $confirm and confirm_sesskey()) {
     $DB->set_field('user', 'autosubscribe', 0, array('id'=>$USER->id));
     print_box(get_string('unsubscribealldone', 'forum'));
     print_continue($return);
-    print_footer();
+    echo $OUTPUT->footer();
     die;
 
 } else {
@@ -35,13 +35,13 @@ if (data_submitted() and $confirm and confirm_sesskey()) {
     if ($a) {
         $msg = get_string('unsubscribeallconfirm', 'forum', $a);
         notice_yesno($msg, 'unsubscribeall.php', $return, array('confirm'=>1, 'sesskey'=>sesskey()), NULL, 'post', 'get');
-        print_footer();
+        echo $OUTPUT->footer();
         die;
 
     } else {
         print_box(get_string('unsubscribeallempty', 'forum'));
         print_continue($return);
-        print_footer();
+        echo $OUTPUT->footer();
         die;
     }
 }
index 85782e59d35d9a61d362793f321f716b1db3b20d..9221c6ce2cc734cf0049f878bb183348e484d3cf 100644 (file)
@@ -37,7 +37,7 @@ if (!$DB->get_record('role_assignments', array('userid' => $USER->id, 'contextid
 if ($user->deleted) {
     print_header();
     echo $OUTPUT->heading(get_string('userdeleted'));
-    print_footer($course);
+    echo $OUTPUT->footer();
     die;
 }
 
@@ -175,6 +175,6 @@ if ($posts = forum_search_posts($searchterms, $searchcourse, $page*$perpage, $pe
     }
 }
 echo '</div>';
-print_footer($course);
+echo $OUTPUT->footer();
 
 ?>