Skip to content

Commit

Permalink
community block MDL-24825 fix 'community search' crumbtrail
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed Oct 28, 2010
1 parent 3b77fb8 commit 34613fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions blocks/community/communitycourse.php
Expand Up @@ -35,14 +35,14 @@
require_login();

$courseid = optional_param('courseid', $SITE->id, PARAM_INT); //if no courseid is given
$context = get_context_instance(CONTEXT_COURSE, $courseid);
$parentcourse = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);

$PAGE->set_context($context);
$context = get_context_instance(CONTEXT_COURSE, $courseid);
$PAGE->set_course($parentcourse);
$PAGE->set_url('/blocks/community/communitycourse.php');
$PAGE->set_heading($SITE->fullname);
$PAGE->set_pagelayout('course');
$PAGE->set_title(get_string('searchcourse', 'block_community'));
$PAGE->navbar->ignore_active(true);
$PAGE->navbar->add(get_string('searchcourse', 'block_community'));

$search = optional_param('search', null, PARAM_TEXT);
Expand Down
1 change: 0 additions & 1 deletion lang/en/hub.php
Expand Up @@ -24,7 +24,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['addedtoblock'] = 'Course added to block';
$string['addscreenshots'] = 'Add screenshots';
$string['advertise'] = 'Advertise this course for people to join';
$string['advertised'] = 'Advertised';
Expand Down

0 comments on commit 34613fb

Please sign in to comment.