Merge pull request #21274 from mattwire/contributionviewid
[civicrm-core.git] / CRM / Utils / Pager.php
index 4c83bfe270e988621368caae60bea7137a4f57e4..d0c7a1d557122ebe939fcf51c8771f4f3663d6d2 100644 (file)
@@ -177,7 +177,7 @@ class CRM_Utils_Pager extends Pager_Sliding {
    * @return int
    *   new pageId to display to the user
    */
-  public function getPageID($defaultPageId = 1, &$params) {
+  public function getPageID($defaultPageId, &$params) {
     // POST has higher priority than GET vars
     // else if a value is set that has higher priority and finally the GET var
     $currentPage = $defaultPageId;
@@ -220,7 +220,7 @@ class CRM_Utils_Pager extends Pager_Sliding {
     }
     else {
       if (empty($defaultPageRowCount)) {
-        $rowcount = Civi::settings()->get('default_pager_size');
+        $rowCount = Civi::settings()->get('default_pager_size');
       }
       else {
         $rowCount = $defaultPageRowCount;