Author: david
Date: Thu Oct 22 14:45:22 2009
New Revision: 3802
Log:
Fix bug in getLinks() method when passing $nb_links variable.
Modified:
trunk/lib/QubitPager.class.php
Modified: trunk/lib/QubitPager.class.php
==============================================================================
--- trunk/lib/QubitPager.class.php Thu Oct 22 14:35:55 2009 (r3801)
+++ trunk/lib/QubitPager.class.php Thu Oct 22 14:45:22 2009 (r3802)
@@ -145,7 +145,7 @@
public function getLinks($nb_links = null)
{
$links = array();
- $nb_links = (null === $nb_links) ? $this->getMaxLinkCount() : null;
+ $nb_links = (null === $nb_links) ? $this->getMaxLinkCount() : $nb_links;
$tmp = $this->page - floor($nb_links / 2);
$check = $this->lastPage - $nb_links + 1;
$limit = ($check > 0) ? $check : 1;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---