]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19812 Converted all print_footer() calls
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 14:14:24 +0000 (14:14 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 14:14:24 +0000 (14:14 +0000)
mod/lesson/edit.php
mod/lesson/essay.php
mod/lesson/highscores.php
mod/lesson/import.php
mod/lesson/importppt.php
mod/lesson/index.php
mod/lesson/lesson.php
mod/lesson/mediafile.php
mod/lesson/report.php
mod/lesson/view.php

index cd4b993ac46df2bfcf8d9fe18c6b33c22a6ef8bc..94adf5f542c41d5b6b820a43e44ce0b8c407669e 100644 (file)
         }
     } 
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 ?>
index aa7f08c2b88385f0d9720ad25f7dc5d073c88f42..1c9d218d186699264d3e97c466f9972b80eca6d9 100644 (file)
             break;
     }
     
-    print_footer($course);
+    echo $OUTPUT->footer();
 ?>
index 7c8d51109b9cfc71e9176f5cc7f8c7cfdf3668d5..09d6a546a1ad7bd9eb5e9327589e5e94c3cec434 100644 (file)
             break;
     }
     
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 ?>
index 48a59a8fa4f2481976ceac27bb34f7d4a888f5f8..a4f60151b1456a631dbaaabac79cba8cf3b3964e 100644 (file)
@@ -75,7 +75,7 @@
 
             echo "<hr>";
             print_continue("view.php?id=$cm->id");
-            print_footer($course);
+            echo $OUTPUT->footer();
             exit;
         }
     }
     echo "</form>";
     print_simple_box_end();
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 ?>
index 6a5d96c19d6946a6b910096db006e4663390acda..cdfecb4ac3c0d6af127a3196f323d1df923af7d9 100644 (file)
@@ -76,7 +76,7 @@
 
             echo "<hr>";
             print_continue("$CFG->wwwroot/mod/$modname/view.php?id=$cm->id");
-            print_footer($course);
+            echo $OUTPUT->footer();
             exit;
         }
     }
     echo "</form>";
     print_simple_box_end();
 
-    print_footer($course);
+    echo $OUTPUT->footer();
     
 // START OF FUNCTIONS
 
index f0c02f37da637fa49a73b9fe7968aea47b8dabe8..b4a347576e94ed66f8102dffe123c82d3a7205e6 100644 (file)
 
 /// Finish the page
 
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 ?>
index 9f3f338f3aaa33efab894cda26d16922ad59e6c9..f20d661d9c4f4650f250b236528fc929d92b14dd 100644 (file)
@@ -58,6 +58,6 @@
             print_error('unknowaction');
     }
 
-    print_footer($course);
+    echo $OUTPUT->footer();
  
 ?>
index da74916b885eb3cc3e54365b25d6bee0cd3f9636..9483910640d3d14cfa99cafe86627fe0bb465cfd 100644 (file)
@@ -49,7 +49,7 @@
                 </div>
                 </form>
                 </div>';
-            print_footer();
+            echo $OUTPUT->footer();
         }
         exit();
     }
        echo '</div>';
     }
     
-    print_footer();
+    echo $OUTPUT->footer();
 ?>
index 8ad3af5e1cd1f3b3979b20c343e8dbfdc7c4863f..d60bfd749b5f08aa92feab7e3b639676f07d699e 100644 (file)
 
     if ($nothingtodisplay) {
         notify(get_string('nolessonattempts', 'lesson'));
-        print_footer($course);
+        echo $OUTPUT->footer();
         exit();
     }
 
     }
 
 /// Finish the page
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 ?>
index 841277b7bd5ddf31a47783f7ea2365c250bc1054..edf4aca81dd77c5817c59036a243538a5ffb30bb 100644 (file)
@@ -45,7 +45,7 @@
             echo '<div class="lessonbutton standardbutton" style="padding: 5px;"><a href="'.$CFG->wwwroot.'/course/view.php?id='. $course->id .'">'. get_string('returnto', 'lesson', format_string($course->fullname, true)) .'</a></div>';
             echo '</div>';
             print_box_end();
-            print_footer($course);
+            echo $OUTPUT->footer();
             exit();
         
         } else if ($lesson->usepassword and empty($USER->lessonloggedin[$lesson->id])) { // Password protected lesson code
@@ -81,7 +81,7 @@
                 echo '</fieldset></form>';
                 print_box_end();
                 echo "</div>\n";
-                print_footer($course);
+                echo $OUTPUT->footer();
                 exit();
             }
         
                     echo '<p style="text-align:center;">'.implode('<br />'.get_string('and', 'lesson').'<br />', $errors).'</p>';
                     print_box_end();
                     echo '</p>';
-                    print_footer($course);
+                    echo $OUTPUT->footer();
                     exit();
                 } 
             }
                         get_string('no').'</a></div>';
                 echo '</span>';
             }
-            print_footer($course);
+            echo $OUTPUT->footer();
             exit();
         }
         
                 echo "<br /><br /><div class=\"lessonbutton standardbutton\"><a href=\"../../course/view.php?id=$course->id\">".get_string('returntocourse', 'lesson').'</a></div>';
                 echo "</div>";
                 print_box_end();
-                print_footer($course);
+                echo $OUTPUT->footer();
                 exit();
                   //redirect("../../course/view.php?id=$course->id", get_string("alreadytaken", "lesson"));
             // allow student to retake course even if they have the maximum grade
     }
 
 /// Finish the page
-    print_footer($course);
+    echo $OUTPUT->footer();
 
 /// Mark as viewed
     $completion=new completion_info($course);