default page 0

This commit is contained in:
Andrey Kuvshinov
2020-05-15 21:42:50 +03:00
parent 1470fb338c
commit 44d0d76112

View File

@@ -44,7 +44,7 @@ function anpromo_kuri($page = 1, $scale = 1){
function read_kuri($hash, $page = 1, $scale = 1, $promo = false){ function read_kuri($hash, $page = 0, $scale = 1, $promo = false){
return promo_kuri($hash, $page, false); return promo_kuri($hash, $page, false);
@@ -184,7 +184,6 @@ function promo_kuri($hash, $page = 0, $promo = true){
if ($page == 0){ //  не читал ли ранее if ($page == 0){ //  не читал ли ранее
$bookmark = bookmark_get($hash); $bookmark = bookmark_get($hash);
echo $bookmark;
$page = 1; //если нет страницы то первая $page = 1; //если нет страницы то первая
if ($bookmark !== false and $bookmark > 1){ if ($bookmark !== false and $bookmark > 1){
header("HTTP/1.1 301 Moved Permanently"); header("HTTP/1.1 301 Moved Permanently");