Update paginate.php

This commit is contained in:
Namhyeon Go 2018-04-11 02:29:39 +09:00 committed by GitHub
parent ffb256b6de
commit be7e6b3aa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,8 @@
* @cvs http://github.com/gnh1201/reasonableframework
*/
if(!function_exists('paginate')) {
private function paginate($item_per_page, $current_page, $total_records, $total_pages, $page_url, $qry='') {
if(!function_exists('get_paginate')) {
function get_paginate($item_per_page, $current_page, $total_records, $total_pages, $page_url, $qry='') {
$pagination = '';
if($total_pages > 0 && $total_pages != 1 && $current_page <= $total_pages){ //verify total pages and current page number
$pagination .= '<ul class="pagination justify-content-end">';