Skip to content
Browse files

Removed/added/moved redundant/missing/misplaced page headers/footers

  • Loading branch information...
1 parent 14f872b commit 8585ef87265d10e0387fe80be1cf6d50c2814b8d patrickslee committed Aug 3, 2005
Showing with 10 additions and 17 deletions.
  1. +0 −1 admin/auth.php
  2. +0 −1 admin/backup.php
  3. +0 −1 admin/block.php
  4. +0 −1 admin/config.php
  5. +0 −2 admin/module.php
  6. +0 −1 calendar/preferences.php
  7. +2 −0 course/delete.php
  8. +8 −10 course/teacher.php
View
1 admin/auth.php
@@ -32,7 +32,6 @@
}
if (count($err) == 0) {
- print_header();
foreach ($config as $name => $value) {
if (preg_match('/^pluginconfig_(.+?)$/', $name, $matches)) {
$plugin = "auth/$auth";
View
1 admin/backup.php
@@ -54,7 +54,6 @@
$config = (object)$a_config;
//weekdays conversions done. Continue
- print_header();
foreach ($config as $name => $value) {
backup_set_config($name, $value);
}
View
1 admin/block.php
@@ -47,7 +47,6 @@
unset($config->$item);
}
$block->config_save($config);
- print_header();
redirect("$CFG->wwwroot/$CFG->admin/blocks.php", get_string("changessaved"), 1);
exit;
}
View
1 admin/config.php
@@ -30,7 +30,6 @@
validate_form($config, $err);
if (count($err) == 0) {
- print_header();
foreach ($config as $name => $value) {
if ($name == "sessioncookie") {
$value = eregi_replace("[^a-zA-Z]", "", $value);
View
2 admin/module.php
@@ -37,8 +37,6 @@
$moduleprefix = '';
}
- print_header();
-
foreach ($config as $name => $value) {
set_config($moduleprefix.$name, $value);
}
View
1 calendar/preferences.php
@@ -17,7 +17,6 @@
/// If data submitted, then process and store.
if ($form = data_submitted()) {
- print_header();
foreach ($form as $preference => $value) {
switch ($preference) {
case 'timeformat':
View
2 course/delete.php
@@ -40,6 +40,8 @@
notice_yesno("$strdeletecoursecheck<br /><br />$course->fullname ($course->shortname)",
"delete.php?id=$course->id&amp;delete=".md5($course->timemodified)."&amp;sesskey=$USER->sesskey",
"category.php?id=$course->category");
+
+ print_footer($course);
exit;
}
View
18 course/teacher.php
@@ -55,16 +55,6 @@
}
-
-/// Print headers
-
- print_header("$course->shortname: $strassignteachers",
- "$course->fullname",
- "<a href=\"index.php\">$strcourses</a> -> ".
- "<a href=\"view.php?id=$course->id\">$course->shortname</a> -> ".
- "$strassignteachers", "");
-
-
/// If data submitted, then process and store.
if ($form = data_submitted() and confirm_sesskey()) {
@@ -94,6 +84,14 @@
redirect("teacher.php?id=$course->id", get_string("changessaved"));
}
+/// Print headers
+
+ print_header("$course->shortname: $strassignteachers",
+ "$course->fullname",
+ "<a href=\"index.php\">$strcourses</a> -> ".
+ "<a href=\"view.php?id=$course->id\">$course->shortname</a> -> ".
+ "$strassignteachers", "");
+
/// Add a teacher if one is specified
if (!empty($_GET['add']) and confirm_sesskey()) {

0 comments on commit 8585ef8

Please sign in to comment.
Something went wrong with that request. Please try again.