FIxed to use the new debugging function
This commit is contained in:
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user