mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
localised error message and adding correct continue link
This commit is contained in:
parent
6524006ba0
commit
d16d35dc80
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user