MDL-23541 missing define for fixed jump defaults

This commit is contained in:
Petr Skoda 2010-07-28 13:45:01 +00:00
parent 4d5ab13e30
commit 44cb7e6364

View File

@ -32,6 +32,8 @@ defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot.'/course/moodleform_mod.php');
require_once($CFG->dirroot . '/mod/lesson/lib.php');
/** This page */
define('LESSON_THISPAGE', 0);
/** Next page -> any page not seen before */
define("LESSON_UNSEENPAGE", 1);
/** Next page -> any page not answered correctly */
@ -2034,7 +2036,7 @@ abstract class lesson_page extends lesson_base {
static $jumpnames = array();
if (!array_key_exists($jumpto, $jumpnames)) {
if ($jumpto == 0) {
if ($jumpto == LESSON_THISPAGE) {
$jumptitle = get_string('thispage', 'lesson');
} elseif ($jumpto == LESSON_NEXTPAGE) {
$jumptitle = get_string('nextpage', 'lesson');