Permalink
Browse files

fixed issue with pagination when base path is not root

  • Loading branch information...
mepsinas committed Jun 2, 2017
1 parent e21871f commit 2e3b05b2ae46d51c332104dc77402cffab86eaf6
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/framework/View.php
View
@@ -70,7 +70,9 @@ public function paginate($page, $display, $total)
{
// semantic
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$path = str_replace(BASE_PATH, '', $path);
if (BASE_PATH != '/') {
$path = str_replace(BASE_PATH, '', $path);
}
if ($path != '/') {
$path = rtrim($path, '/');
if (stristr($path, 'page/')) {

0 comments on commit 2e3b05b

Please sign in to comment.