From 44cb7e636401ca8a06097f54830acfc07fb4009c Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Wed, 28 Jul 2010 13:45:01 +0000 Subject: [PATCH] MDL-23541 missing define for fixed jump defaults --- mod/lesson/locallib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index 0133c95c334..b7d0b79445f 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -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');