Skip to content
GitLab
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
1dcd1a07
Commit
1dcd1a07
authored
Aug 13, 2017
by
Johannes Burk
Browse files
MDL-59799 course: Include course/lib.php before using move_courses().
parent
b3cfb013
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/coursecatlib.php
View file @
1dcd1a07
...
...
@@ -1839,6 +1839,7 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
}
if
(
$coursesids
)
{
require_once
(
$CFG
->
dirroot
.
'/course/lib.php'
);
if
(
!
move_courses
(
$coursesids
,
$newparentid
))
{
if
(
$showfeedback
)
{
echo
$OUTPUT
->
notification
(
"Error moving courses"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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