Permalink
Browse files

MDL-30888 course-search: Fixed typo

  • Loading branch information...
1 parent 646704c commit 7a419e57897b63e3b70aa6e2c1c5a34c3e6afedc Sam Hemelryk committed Feb 15, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 course/search.php
View
6 course/search.php
@@ -379,15 +379,15 @@ function print_navigation_bar($totalcount,$page,$perpage,$encodedsearch,$modulel
echo "<a href=\"search.php?search=$encodedsearch".$modulelink."&amp;perpage=99999\">".get_string("showall", "", $totalcount)."</a>";
echo "</p></center>";
} else if ($perpage === 99999) {
- $defultprepage = 10;
+ $defaultperpage = 10;
//If user has course:create or category:manage capability the show 30 records.
$capabilities = array('moodle/course:create', 'moodle/category:manage');
if (has_any_capability($capabilities, get_context_instance(CONTEXT_SYSTEM))) {
- $defultprepage = 30;
+ $defaultperpage = 30;
}
echo "<center><p>";
- echo "<a href=\"search.php?search=$encodedsearch".$modulelink."&amp;perpage=".$defultprepage."\">".get_string("showperpage", "", $defultprepage)."</a>";
+ echo "<a href=\"search.php?search=$encodedsearch".$modulelink."&amp;perpage=".$defaultperpage."\">".get_string("showperpage", "", $defaultperpage)."</a>";
echo "</p></center>";
}
}

0 comments on commit 7a419e5

Please sign in to comment.