summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-12-04 05:47:41 +0100
committerEric Barnes <eric@ericlbarnes.com>2011-12-04 05:47:41 +0100
commitbce4140f05f9e8642554eac7aee232023b9a93d9 (patch)
tree3efecf7f36176a398ccdc727011bc914f92f15ee
parent9a4902a9708dfe3c99cd5d6d6b765288c23a6977 (diff)
Changed pagination construct to call initialize so it sets the anchor class properly. Fixes #737
-rw-r--r--system/libraries/Pagination.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index 600aaa663..eea953ae4 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -79,16 +79,7 @@ class CI_Pagination {
*/
public function __construct($params = array())
{
- if (count($params) > 0)
- {
- $this->initialize($params);
- }
-
- if ($this->anchor_class != '')
- {
- $this->anchor_class = 'class="'.$this->anchor_class.'" ';
- }
-
+ $this->initialize($params);
log_message('debug', "Pagination Class Initialized");
}
@@ -113,6 +104,11 @@ class CI_Pagination {
}
}
}
+
+ if ($this->anchor_class != '')
+ {
+ $this->anchor_class = 'class="'.$this->anchor_class.'" ';
+ }
}
// --------------------------------------------------------------------