Skip to content

Commit

Permalink
MDL-19799 Converted print_box* to $OUTPUT->box*
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 10, 2009
1 parent 5e61d1a commit c7a2fd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions my/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@
}

if (empty($courses)) {
print_box(get_string('nocourses','my'));
echo $OUTPUT->box(get_string('nocourses','my'));
} else {
print_overview($courses);
}

// if more than 20 courses
if (count($courses) > 20) {
echo '<br />...';
echo '<br />...';
}

echo $OUTPUT->footer();
Expand Down
6 changes: 3 additions & 3 deletions notes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id); // Course context
}
$systemcontext = get_context_instance(CONTEXT_SYSTEM); // SYSTEM context

$strnotes = get_string('notes', 'notes');
$nav = array();
if (has_capability('moodle/course:viewparticipants', $coursecontext) || has_capability('moodle/site:viewparticipants', $systemcontext)) {
Expand All @@ -87,7 +87,7 @@
$strpersonalnotes = get_string('personalnotes', 'notes');
$straddnewnote = get_string('addnewnote', 'notes');

print_box_start();
echo $OUTPUT->box_start();

if ($courseid != SITEID) {
//echo '<a href="#sitenotes">' . $strsitenotes . '</a> | <a href="#coursenotes">' . $strcoursenotes . '</a> | <a href="#personalnotes">' . $strpersonalnotes . '</a>';
Expand Down Expand Up @@ -118,7 +118,7 @@
}
}

print_box_end();
echo $OUTPUT->box_end();

echo $OUTPUT->footer();
?>

0 comments on commit c7a2fd9

Please sign in to comment.