FIxed to use the new debugging function

This commit is contained in:
moodler
2006-09-18 09:13:04 +00:00
parent 65becbc3ef
commit fdb1cf2cc1
21 changed files with 50 additions and 96 deletions
-2
View File
@@ -14,8 +14,6 @@
error("Guests are not allowed to rate posts.", $_SERVER["HTTP_REFERER"]);
}
$CFG->debug = 0; /// Temporarily
$returntoview = false;
if (($data = data_submitted($CFG->wwwroot.'/mod/data/view.php')) and confirm_sesskey()) {
+2 -8
View File
@@ -13,17 +13,11 @@
// Check CFG->enablerssfeeds.
if (empty($CFG->enablerssfeeds)) {
//Some debug...
if ($CFG->debug > 7) {
echo "DISABLED (admin variables)";
}
debugging("DISABLED (admin variables)");
}
// Check CFG->data_enablerssfeeds.
else if (empty($CFG->data_enablerssfeeds)) {
//Some debug...
if ($CFG->debug > 7) {
echo "DISABLED (module configuration)";
}
debugging("DISABLED (module configuration)");
}
// It's working so we start...
else {