root/branches/99-toolbar/code/administrator/components/com_default/helpers/paginator.php

23742530
89
89
90
		return $html;
90
		return $html;
91
	}
91
	}
92
	
93
	protected function _link($page, $title)
94
	{
95
		$url   = clone KRequest::url();
96
		$query = $url->getQuery(true);
97
98
		//For compatibility with Joomla use limitstart instead of offset
99
		$query['limit']      = $page->limit;
100
		$query['limitstart'] = $page->offset;
101
102
		$class = $page->current ? 'class="active"' : '';
103
104
		if($page->active && !$page->current) {
105
			$html = '<a href="'.JRoute::_((string) $url->setQuery($query)).'" '.$class.'>'.JText::_($title).'</a>';
106
		} else {
107
			$html = '<span '.$class.'>'.JText::_($title).'</span>';
108
		}
109
110
		return $html;
111
	}
92
}
112
}