mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-32094 fix various E_STRICT compatibility problems
This commit is contained in:
parent
0ed6f71232
commit
f20edd5208
27 changed files with 53 additions and 42 deletions
|
@ -932,7 +932,7 @@ function print_recent_activity($course) {
|
|||
|
||||
/// Next, have there been any modifications to the course structure?
|
||||
|
||||
$modinfo =& get_fast_modinfo($course);
|
||||
$modinfo = get_fast_modinfo($course);
|
||||
|
||||
$changelist = array();
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ echo $OUTPUT->heading(format_string($course->fullname) . ": $userinfo", 2);
|
|||
|
||||
$mform->display();
|
||||
|
||||
$modinfo =& get_fast_modinfo($course);
|
||||
$modinfo = get_fast_modinfo($course);
|
||||
get_all_mods($course->id, $mods, $modnames, $modnamesplural, $modnamesused);
|
||||
|
||||
if (has_capability('moodle/course:viewhiddensections', $context)) {
|
||||
|
|
|
@ -226,12 +226,12 @@
|
|||
// Course wrapper start.
|
||||
echo html_writer::start_tag('div', array('class'=>'course-content'));
|
||||
|
||||
$modinfo =& get_fast_modinfo($COURSE);
|
||||
$modinfo = get_fast_modinfo($COURSE);
|
||||
get_all_mods($course->id, $mods, $modnames, $modnamesplural, $modnamesused);
|
||||
foreach($mods as $modid=>$unused) {
|
||||
if (!isset($modinfo->cms[$modid])) {
|
||||
rebuild_course_cache($course->id);
|
||||
$modinfo =& get_fast_modinfo($COURSE);
|
||||
$modinfo = get_fast_modinfo($COURSE);
|
||||
debugging('Rebuilding course cache', DEBUG_DEVELOPER);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue