Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9054c04
)
MDL-37028 fixed statement to clear course cache
author
Marina Glancy
<marina@moodle.com>
Wed, 11 Sep 2013 04:57:59 +0000
(14:57 +1000)
committer
Marina Glancy
<marina@moodle.com>
Wed, 11 Sep 2013 04:57:59 +0000
(14:57 +1000)
admin/cli/fix_course_sequence.php
patch
|
blob
|
blame
|
history
diff --git
a/admin/cli/fix_course_sequence.php
b/admin/cli/fix_course_sequence.php
index
8715b13
..
b825422
100644
(file)
--- a/
admin/cli/fix_course_sequence.php
+++ b/
admin/cli/fix_course_sequence.php
@@
-103,7
+103,7
@@
foreach ($courses as $courseid) {
if ($errors) {
if (!empty($options['fix'])) {
// Reset the course cache to make sure cache is recalculated next time the course is viewed.
-
$DB->upgrade_record('course', array('modinfo' => null, 'id' => $courseid)
);
+
rebuild_course_cache($courseid, true
);
}
foreach ($errors as $error) {
cli_problem($error);