Merge branch 'wip-mdl-42261' of git://github.com/rajeshtaneja/moodle
authorDan Poltawski <dan@moodle.com>
Fri, 25 Oct 2013 03:33:19 +0000 (11:33 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 25 Oct 2013 03:33:19 +0000 (11:33 +0800)
blocks/course_overview/renderer.php

index 69323bd..fcde4f4 100644 (file)
@@ -218,13 +218,13 @@ class block_course_overview_renderer extends plugin_renderer_base {
         $config = get_config('block_course_overview');
         // Show view all course link to user if forcedefaultmaxcourses is not empty.
         if (!empty($config->forcedefaultmaxcourses)) {
-            $output .= get_string('hiddencoursecountwithshowall'.$plural, 'block_course_overview', $total);
+            $output .= get_string('hiddencoursecount'.$plural, 'block_course_overview', $total);
         } else {
             $a = new stdClass();
             $a->coursecount = $total;
             $a->showalllink = html_writer::link(new moodle_url('/my/index.php', array('mynumber' => block_course_overview::SHOW_ALL_COURSES)),
                     get_string('showallcourses'));
-            $output .= get_string('hiddencoursecount'.$withshowall.$plural, 'block_course_overview', $a);
+            $output .= get_string('hiddencoursecountwithshowall'.$plural, 'block_course_overview', $a);
         }
 
         $output .= $this->output->box_end();