Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-30888 course-search: Fixed typo

  • Loading branch information...
commit 7a419e57897b63e3b70aa6e2c1c5a34c3e6afedc 1 parent 646704c
Sam Hemelryk authored February 15, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  course/search.php
6  course/search.php
@@ -379,15 +379,15 @@ function print_navigation_bar($totalcount,$page,$perpage,$encodedsearch,$modulel
379 379
             echo "<a href=\"search.php?search=$encodedsearch".$modulelink."&amp;perpage=99999\">".get_string("showall", "", $totalcount)."</a>";
380 380
             echo "</p></center>";
381 381
         } else if ($perpage === 99999) {
382  
-            $defultprepage = 10;
  382
+            $defaultperpage = 10;
383 383
             //If user has course:create or category:manage capability the show 30 records.
384 384
             $capabilities = array('moodle/course:create', 'moodle/category:manage');
385 385
             if (has_any_capability($capabilities, get_context_instance(CONTEXT_SYSTEM))) {
386  
-                $defultprepage = 30;
  386
+                $defaultperpage = 30;
387 387
             }
388 388
 
389 389
             echo "<center><p>";
390  
-            echo "<a href=\"search.php?search=$encodedsearch".$modulelink."&amp;perpage=".$defultprepage."\">".get_string("showperpage", "", $defultprepage)."</a>";
  390
+            echo "<a href=\"search.php?search=$encodedsearch".$modulelink."&amp;perpage=".$defaultperpage."\">".get_string("showperpage", "", $defaultperpage)."</a>";
391 391
             echo "</p></center>";
392 392
         }
393 393
     }

0 notes on commit 7a419e5

Please sign in to comment.
Something went wrong with that request. Please try again.