FIxed to use the new debugging function
This commit is contained in:
+2
-4
@@ -272,9 +272,7 @@
|
||||
if ($page->prevpageid != $prevpageid) {
|
||||
// fix it
|
||||
set_field("lesson_pages", "prevpageid", $prevpageid, "id", $page->id);
|
||||
if ($CFG->debug) {
|
||||
echo "<p>***prevpageid of page $page->id set to $prevpageid***";
|
||||
}
|
||||
debugging("<p>***prevpageid of page $page->id set to $prevpageid***");
|
||||
}
|
||||
|
||||
if (count($pages) == 1) {
|
||||
@@ -290,4 +288,4 @@
|
||||
}
|
||||
|
||||
print_footer($course);
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user