Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/course/format/social/format.php

    r136 r1331  
    3131
    3232        echo '<div class="subscribelink">', forum_get_subscribe_link($forum, $modcontext), '</div>';
    33         forum_print_latest_discussions($course, $forum, 10, 'plain', '', false);
     33
     34        $numdiscussions = course_get_format($course)->get_course()->numdiscussions;
     35        if ($numdiscussions < 1) {
     36            // Make sure that the value is at least one.
     37            $numdiscussions = 1;
     38        }
     39        forum_print_latest_discussions($course, $forum, $numdiscussions, 'plain', '', false);
    3440
    3541    } else {
Note: See TracChangeset for help on using the changeset viewer.