mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
slice entries before view
This commit is contained in:
parent
81b8d2ae1b
commit
cde0f066ad
|
@ -406,7 +406,7 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSe
|
||||||
$totalPages = (int) (count($entries)/$limit);
|
$totalPages = (int) (count($entries)/$limit);
|
||||||
if(count($entries)%$limit)
|
if(count($entries)%$limit)
|
||||||
$totalPages++;
|
$totalPages++;
|
||||||
// $entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
|
$entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
|
||||||
}
|
}
|
||||||
// }}}
|
// }}}
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,8 +160,8 @@ $(document).ready( function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($pageNumber != 'all')
|
// if ($pageNumber != 'all')
|
||||||
$entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
|
// $entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
|
||||||
|
|
||||||
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/bootbox/bootbox.min.js"></script>'."\n", 'js');
|
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/bootbox/bootbox.min.js"></script>'."\n", 'js');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user