]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19806 Converted all print_footer() calls
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 14:14:39 +0000 (14:14 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 14:14:39 +0000 (14:14 +0000)
mod/data/comment.php
mod/data/edit.php
mod/data/export.php
mod/data/field.php
mod/data/import.php
mod/data/index.php
mod/data/preset.php
mod/data/report.php
mod/data/templates.php
mod/data/view.php

index 413957e1528e1985e0d425802e6010383657b1ba..e211cbde5ce0da311f556b5f0b152e5a2422bc1c 100755 (executable)
                   'comment.php?rid='.$record->id.'&amp;commentid='.$comment->id.'&amp;page='.$page.
                               '&amp;sesskey='.sesskey().'&amp;mode=delete&amp;confirm=1',
                   'view.php?rid='.$record->id.'&amp;page='.$page);
-                print_footer();
+                echo $OUTPUT->footer();
             }
             die;
         break;
 
     print_header();
     data_print_comments($data, $record, $page, $mform);
-    print_footer();
+    echo $OUTPUT->footer();
 
 
 ?>
index 981ddb1f19653957c57707e141af388c51b272fc..dc6af0c908fede585a910c1bc31aa5a06464b9a7 100755 (executable)
 
             if (data_atmaxentries($data) and !has_capability('mod/data:manageentries',$context)){
                 notify (get_string('atmaxentry','data'));
-                print_footer($course);
+                echo $OUTPUT->footer();
                 exit;
             }
 
         $field->print_after_form();
     }
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 ?>
index 19b11c85d705148018e98898dd2d5443ecaeac46..915b2821adf85ebe74f328d614f35288784cd3bf 100644 (file)
@@ -67,7 +67,7 @@ if($mform->is_cancelled()) {
     $currenttab = 'export';
     include('tabs.php');
     $mform->display();
-    print_footer();
+    echo $OUTPUT->footer();
     die;
 }
 
index b02673394cee0f222da8ff116c9126b67bdf9c8d..cd20df17ff1f606e85d2b9bf76c2952119e841ec 100755 (executable)
                                  'field.php?d='.$data->id.'&amp;mode=delete&amp;fid='.$fid.'&amp;sesskey='.sesskey().'&amp;confirm=1',
                                  'field.php?d='.$data->id);
 
-                    print_footer($course);
+                    echo $OUTPUT->footer();
                     exit;
                 }
             }
     }
 
 /// Finish the page
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 
 ?>
index b417f9a7ae557da8804131ffa4b925dad0880931..311aa9c10ad9c7761267f48c64638c69ea4f6f3b 100755 (executable)
 
 
 /// Finish the page
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 
 
index 93e9c2a145d1c87d202f3d95a4d199254db29713..399f79624bb7d95f805b9e95a9cc5bc1d503f11a 100755 (executable)
 
     echo "<br />";
     print_table($table);
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 ?>
index 3c35da69afeb0fa4cfdfe57a6a19fac7ae4452e0..15bba9c9ea1760c4c15597f695b6f8dcc77bd272 100644 (file)
@@ -100,7 +100,7 @@ switch ($action) {
         $optionsno = new object();
         $optionsno->d = $data->id;
         notice_yesno($strwarning, 'preset.php', 'preset.php', $options, $optionsno, 'post', 'get');
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit(0);
         break;
 
@@ -135,7 +135,7 @@ switch ($action) {
         $pimporter = new PresetImporter($course, $cm, $data, $userid, $shortname);
         $pimporter->import_options();
 
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit(0);
         break;
 
@@ -159,7 +159,7 @@ switch ($action) {
         $pimporter = new PresetImporter($course, $cm, $data, -$USER->id, $shortname);
         $pimporter->import_options();
 
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit(0);
         break;
 
@@ -219,7 +219,7 @@ switch ($action) {
         echo '<input type="hidden" name="d" value="'.$data->id.'" />';
         echo '<input type="hidden" name="sesskey" value="'.$sesskey.'" />';
         echo '<input type="submit" value="'.$strcontinue.'" /></fieldset></form></div>';
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit(0);
         break;
 
@@ -254,7 +254,7 @@ switch ($action) {
             echo '<input type="hidden" name="sesskey" value="'.$sesskey.'" />';
             echo '<input type="submit" value="'.$stroverwrite.'" /></div></form>';
             echo '</div>';
-            print_footer($course);
+            echo $OUTPUT->footer();
             exit(0);
             break;
         }
@@ -369,7 +369,7 @@ echo '</td></tr>';
 echo '</table>';
 echo '</div>';
 
-print_footer($course);
+echo $OUTPUT->footer();
 exit(0);
 
 ################################################################################
index 6108be1bbd53eeff17ed71528ea28e919347c74b..a255b9e93e4d49aaf9ad3ac32a5864038d5d10aa 100755 (executable)
@@ -77,5 +77,5 @@
     }
 
     echo $OUTPUT->close_window_button();
-    print_footer('none');
+    echo $OUTPUT->footer();
 ?>
index df07eadbdaeeb5d0c81415c18ccd69932dde8618..4c2e04630073909a77bafd81ae499f41cf27b157 100755 (executable)
     echo '</form>';
 
 /// Finish the page
-    print_footer($course);
+    echo $OUTPUT->footer();
 ?>
index f7b019bb45473f05874018be915fd971153fe642..ebef06d34a28b4c0ae2bae5c29726e1710bb483e 100755 (executable)
                     $records[] = $deleterecord;
                     echo data_print_template('singletemplate', $records, $data, '', 0, true);
 
-                    print_footer($course);
+                    echo $OUTPUT->footer();
                     exit;
                 }
             }
     $completion=new completion_info($course);
     $completion->set_module_viewed($cm);
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 ?>