localised error message and adding correct continue link

This commit is contained in:
Petr Skoda 2010-07-25 09:25:48 +00:00
parent 6524006ba0
commit d16d35dc80

View File

@ -125,7 +125,7 @@ switch ($action) {
$pages = $lesson->load_all_pages();
if (!array_key_exists($pageid, $pages) || ($after!=0 && !array_key_exists($after, $pages))) {
print_error('Unable to find the page to move');
print_error('cannotfindpages', 'lesson', "$CFG->wwwroot/mod/lesson/edit.php?id=$cm->id");
}
$pagetomove = clone($pages[$pageid]);
unset($pages[$pageid]);