Skip to content

Commit

Permalink
Removed/added/moved some redundant/missing/misplaced page headers/foo…
Browse files Browse the repository at this point in the history
…ters, merged from 15_STABLE
  • Loading branch information
patrickslee committed Aug 3, 2005
1 parent 67bbc9b commit 66590bd
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 17 deletions.
1 change: 0 additions & 1 deletion admin/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
}

if (count($err) == 0) {
print_header();
foreach ($config as $name => $value) {
if (preg_match('/^pluginconfig_(.+?)$/', $name, $matches)) {
$plugin = "auth/$auth";
Expand Down
1 change: 0 additions & 1 deletion admin/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
$config = (object)$a_config;
//weekdays conversions done. Continue

print_header();
foreach ($config as $name => $value) {
backup_set_config($name, $value);
}
Expand Down
1 change: 0 additions & 1 deletion admin/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion admin/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions admin/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
$moduleprefix = '';
}

print_header();

foreach ($config as $name => $value) {
set_config($moduleprefix.$name, $value);
}
Expand Down
1 change: 0 additions & 1 deletion calendar/preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
2 changes: 2 additions & 0 deletions course/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
19 changes: 9 additions & 10 deletions course/teacher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -94,6 +84,15 @@
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($add) and confirm_sesskey()) {
Expand Down

0 comments on commit 66590bd

Please sign in to comment.