From 4379c8e9bbc45290c19f3cc9d26c9d71ae75c809 Mon Sep 17 00:00:00 2001
From: vyshane
Date: Thu, 16 Mar 2006 08:49:20 +0000
Subject: [PATCH] W3C validation and misc code cleanup.
---
course/mod.php | 3 +--
course/report.php | 12 ++++++++----
course/report/log/mod.php | 9 ++++-----
course/report/outline/mod.php | 9 +++++----
course/report/participation/index.php | 2 +-
course/report/participation/mod.php | 2 +-
course/report/stats/mod.php | 8 ++++++--
7 files changed, 26 insertions(+), 19 deletions(-)
diff --git a/course/mod.php b/course/mod.php
index 719b633085..aec1a5e2ae 100644
--- a/course/mod.php
+++ b/course/mod.php
@@ -674,5 +674,4 @@
}
print_footer($course);
-
-?>
+?>
\ No newline at end of file
diff --git a/course/report.php b/course/report.php
index b281c66b44..408350247d 100644
--- a/course/report.php
+++ b/course/report.php
@@ -21,10 +21,14 @@
$directories = get_list_of_plugins('course/report');
foreach ($directories as $directory) {
- echo '';
- include_once($CFG->dirroot.'/course/report/'.$directory.'/mod.php'); // Fragment for listing
- echo '
';
+ $pluginfile = $CFG->dirroot.'/course/report/'.$directory.'/mod.php';
+ if (file_exists($pluginfile)) {
+ echo '';
+ //echo $pluginfile;
+ include_once($pluginfile); // Fragment for listing
+ echo '
';
+ }
}
-
+
print_footer();
?>
diff --git a/course/report/log/mod.php b/course/report/log/mod.php
index 2fffe70cc9..081e41eebe 100644
--- a/course/report/log/mod.php
+++ b/course/report/log/mod.php
@@ -13,10 +13,9 @@
print_log_selector_form($course);
echo '
';
+ echo '';
print_heading(get_string('chooselivelogs') .':');
-
- echo '
';
link_to_popup_window('/course/report/log/live.php?id='. $course->id,'livelog', get_string('livelogs'), 500, 800);
- echo '
';
-
-?>
+ echo '
';
+ echo '
';
+?>
\ No newline at end of file
diff --git a/course/report/outline/mod.php b/course/report/outline/mod.php
index 25f4cf27af..a662720ea5 100644
--- a/course/report/outline/mod.php
+++ b/course/report/outline/mod.php
@@ -4,8 +4,9 @@
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
+ echo '';
$activityreport = get_string( 'activityreport' );
- echo "
wwwroot}/course/report/outline/index.php?id={$course->id}\">";
- echo "$activityreport\n";
-
-?>
+ echo "wwwroot}/course/report/outline/index.php?id={$course->id}\">";
+ echo "$activityreport\n";
+ echo '';
+?>
\ No newline at end of file
diff --git a/course/report/participation/index.php b/course/report/participation/index.php
index e2bde1284a..0a2f55d3e7 100644
--- a/course/report/participation/index.php
+++ b/course/report/participation/index.php
@@ -103,7 +103,7 @@
// print first controls.
- echo '