Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-16264 Make mnet courses affect course_list block

If a user has mnet courses, these should affect block display in the same way as local courses do.
  • Loading branch information...
commit ef1720eb6f20229c05081a8ad666cce99e1f5cea 1 parent b95a25b
peterbulmer authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 blocks/course_list/block_course_list.php
View
8 blocks/course_list/block_course_list.php
@@ -53,10 +53,10 @@ function get_content() {
if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) || empty($CFG->block_course_list_hideallcourseslink)) {
$this->content->footer = "<a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a> ...";
}
- $this->get_remote_courses();
- if ($this->content->items) { // make sure we don't return an empty list
- return $this->content;
- }
+ }
+ $this->get_remote_courses();
+ if ($this->content->items) { // make sure we don't return an empty list
+ return $this->content;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.