default page 0
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user