Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
daa1dd74
Commit
daa1dd74
authored
Oct 01, 2012
by
Andrew Davis
Browse files
MDL-35519 mod_book: fixed the cancel import redirect URL
parent
5d6285c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/book/tool/importhtml/index.php
View file @
daa1dd74
...
...
@@ -60,9 +60,9 @@ $mform = new booktool_importhtml_form(null, array('id'=>$id, 'chapterid'=>$chapt
// If data submitted, then process and store.
if
(
$mform
->
is_cancelled
())
{
if
(
empty
(
$chapter
->
id
))
{
redirect
(
"/mod/book/view.php?id=
$cm->id
"
);
redirect
(
$CFG
->
wwwroot
.
"/mod/book/view.php?id=
$cm->id
"
);
}
else
{
redirect
(
"/mod/book/view.php?id=
$cm->id
&chapterid=
$chapter->id
"
);
redirect
(
$CFG
->
wwwroot
.
"/mod/book/view.php?id=
$cm->id
&chapterid=
$chapter->id
"
);
}
}
else
if
(
$data
=
$mform
->
get_data
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment