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
integration
prechecker
Commits
d5327021
Commit
d5327021
authored
Apr 11, 2016
by
Dan Poltawski
Browse files
Merge branch 'MDL-53440-master' of
git://github.com/cameron1729/moodle
parents
c62fa3c0
1b276bfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
course/edit.php
View file @
d5327021
...
...
@@ -55,6 +55,9 @@ if ($returnto === 'url' && confirm_sesskey() && $returnurl) {
case
'topcat'
:
$returnurl
=
new
moodle_url
(
$CFG
->
wwwroot
.
'/course/'
);
break
;
case
'pending'
:
$returnurl
=
new
moodle_url
(
$CFG
->
wwwroot
.
'/course/pending.php'
);
break
;
}
}
}
...
...
course/pending.php
View file @
d5327021
...
...
@@ -51,7 +51,7 @@ if (!empty($approve) and confirm_sesskey()) {
$courseid
=
$course
->
approve
();
if
(
$courseid
!==
false
)
{
redirect
(
$CFG
->
wwwroot
.
'/course/edit.php
?
id
=
'
.
$courseid
);
redirect
(
new
moodle_url
(
'/course/edit.php
'
,
[
'
id'
=>
$courseid
,
'returnto'
=>
'pending'
])
);
}
else
{
print_error
(
'courseapprovedfailed'
);
}
...
...
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