EllisLab/CodeIgniter — Issue #737: Pagination Class Anchor Class not preping if using initialize
Author: tkensiski
Created: 2011-12-03 12:29:56+00:00
State: open

Found a bug when using the anchor class and passing in the config data via initialize that it would not prep the anchor_class value.

This section
***************************
if ($this->anchor_class != '')
{
$this->anchor_class = 'class="'.$this->anchor_class.'" ';
}
***************************

needs to be moved to right after this code snippet in the initialize function.
***************************
if (count($params) > 0)
{
foreach ($params as $key => $val)
{
if (isset($this->$key))
{
$this->$key = $val;
}
}
}
***************************