MDL-57696 mod_lesson: Remove redirects from API
commit8d6748380ce7f5afde6a66f40f85a64f8fa6ef20
authorJuan Leyva <juanleyvadelgado@gmail.com>
Mon, 6 Mar 2017 16:59:41 +0000 (6 17:59 +0100)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Tue, 21 Mar 2017 14:51:51 +0000 (21 15:51 +0100)
tree6b051a604d4103df8b4a65bd3fe42edec0b5dac0
parent61b51764b85a0db68039ae726ebccc261f4a3a64
MDL-57696 mod_lesson: Remove redirects from API

In this commit I removed redirects that potentially could break the Web
Services layer.
Instead doing redirect inside APIs I return a special flag that is
properly checked.
mod/lesson/continue.php
mod/lesson/locallib.php
mod/lesson/pagetypes/branchtable.php
mod/lesson/pagetypes/essay.php
mod/lesson/pagetypes/matching.php
mod/lesson/pagetypes/multichoice.php