Changeset 2377 for trunk/system/libraries/Pagination.php
- Timestamp:
- 03/29/2008 05:50:38 AM (8 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Pagination.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Pagination.php
r2168 r2377 88 88 { 89 89 // Use current URI if no base_url set 90 $this->url = ($this->base_url == '') ? Router::$segments : explode('/', trim($this->base_url, '/'));90 $this->url = ($this->base_url === '') ? Router::$segments : explode('/', trim($this->base_url, '/')); 91 91 92 92 // Convert uri 'label' to corresponding integer if needed … … 125 125 // If there is no first/last/previous/next page, relative to the 126 126 // current page, value is set to FALSE. Valid page number otherwise. 127 $this->first_page = ($this->current_page == 1) ? FALSE : 1;127 $this->first_page = ($this->current_page === 1) ? FALSE : 1; 128 128 $this->last_page = ($this->current_page >= $this->total_pages) ? FALSE : $this->total_pages; 129 129 $this->previous_page = ($this->current_page > 1) ? $this->current_page - 1 : FALSE; … … 144 144 { 145 145 // Hide single page pagination 146 if ($this->auto_hide == TRUE AND $this->total_pages <= 1)146 if ($this->auto_hide === TRUE AND $this->total_pages <= 1) 147 147 return ''; 148 148
