mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-58415 mod_lesson: Avoid API http redirections
Deep in the lesson API there are some http redirections in special pages like clusters. We need to handle it via new parameters to avoid redirections.
This commit is contained in:
parent
16ca026c4b
commit
0259109fb5
7 changed files with 78 additions and 54 deletions
|
@ -212,7 +212,7 @@ if ($pageid != LESSON_EOL) {
|
|||
}
|
||||
}
|
||||
|
||||
list($page, $lessoncontent) = $lesson->prepare_page_and_contents($pageid, $lessonoutput, $reviewmode);
|
||||
list($newpageid, $page, $lessoncontent) = $lesson->prepare_page_and_contents($pageid, $lessonoutput, $reviewmode);
|
||||
|
||||
if (($edit != -1) && $PAGE->user_allowed_editing()) {
|
||||
$USER->editing = $edit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue