From 9595cbcadad6fbbf2cc926574609f56198785d52 Mon Sep 17 00:00:00 2001 From: d47081 Date: Fri, 15 Jul 2022 17:57:18 +0300 Subject: [PATCH] change URI to URL --- config-default.php | 2 +- public/index.php | 4 ++-- public/index.phtml | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/config-default.php b/config-default.php index 614f2de..e21f176 100644 --- a/config-default.php +++ b/config-default.php @@ -6,7 +6,7 @@ ini_set('display_startup_errors', '1'); error_reporting(E_ALL); // Application -define('BASE_URL', 'https://kvazar.today'); +define('BASE_URL', 'https://kvazar.today/'); define('PAGE_LIMIT', 10); define('SEF_MODE', true); define('CACHE_ENABLED', false); diff --git a/public/index.php b/public/index.php index 618dcb3..2f509fb 100755 --- a/public/index.php +++ b/public/index.php @@ -83,9 +83,9 @@ if (SEF_MODE) { if ($data) { if (in_array($page, [0, 1])) { - $older = ($ns ? $ns . '/2' : '/2'); + $older = ($ns ? $ns . '/2' : '2'); } else { - $older = ($ns ? $ns . '/' . ($page + 1) : '/' . ($page + 1)); + $older = ($ns ? $ns . '/' . ($page + 1) : ($page + 1)); } } else { $older = false; diff --git a/public/index.phtml b/public/index.phtml index a768d8a..448bf97 100755 --- a/public/index.phtml +++ b/public/index.phtml @@ -1,11 +1,11 @@ - + - + @@ -29,7 +29,7 @@