diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php index ede24d69..da9c9db1 100755 --- a/src/system/archive/archives.class.php +++ b/src/system/archive/archives.class.php @@ -908,7 +908,7 @@ class Archives */ function GetPagebreakDM($totalPage, $nowPage, $aid) { - global $cfg_rewrite; + global $cfg_rewrite,$cfg_cmsurl; if ($totalPage == 1) { return ""; } @@ -919,24 +919,26 @@ class Archives $PageList .= "
  • 上一页
  • "; } else { if ($nPage == 1) { - $PageList .= "
  • 上一页
  • "; if ($cfg_rewrite == 'Y') { - $PageList = preg_replace("#.php\?aid=(\d+)#i", "-\\1-1.html", $PageList); + $PageList .= "
  • 上一页
  • "; + } else { + $PageList .= "
  • 上一页
  • "; } } else { - $PageList .= "
  • 上一页
  • "; if ($cfg_rewrite == 'Y') { - $PageList = str_replace(".php?aid=", "-", $PageList); - $PageList = preg_replace("#&pageno=(\d+)#i", "-\\1.html", $PageList); + $PageList .= "
  • 上一页
  • "; + } else { + $PageList .= "
  • 上一页
  • "; } } } for ($i = 1; $i <= $totalPage; $i++) { if ($i == 1) { if ($nowPage != 1) { - $PageList .= "
  • 1
  • "; if ($cfg_rewrite == 'Y') { - $PageList = preg_replace("#.php\?aid=(\d+)#i", "-\\1-1.html", $PageList); + $PageList .= "
  • 1
  • "; + } else { + $PageList .= "
  • 1
  • "; } } else { $PageList .= "
  • 1
  • "; @@ -944,10 +946,10 @@ class Archives } else { $n = $i; if ($nowPage != $i) { - $PageList .= "
  • {$n}
  • "; if ($cfg_rewrite == 'Y') { - $PageList = str_replace(".php?aid=", "-", $PageList); - $PageList = preg_replace("#&pageno=(\d+)#i", "-\\1.html", $PageList); + $PageList .= "
  • {$n}
  • "; + } else { + $PageList .= "
  • {$n}
  • "; } } else { $PageList .= "
  • {$n}
  • "; @@ -955,10 +957,10 @@ class Archives } } if ($lPage <= $totalPage) { - $PageList .= "
  • 下一页
  • "; if ($cfg_rewrite == 'Y') { - $PageList = str_replace(".php?aid=", "-", $PageList); - $PageList = preg_replace("#&pageno=(\d+)#i", "-\\1.html", $PageList); + $PageList .= "
  • 下一页
  • "; + } else { + $PageList .= "
  • 下一页
  • "; } } else { $PageList .= "
  • 下一页
  • "; diff --git a/src/system/archive/listview.class.php b/src/system/archive/listview.class.php index ebec5b51..bec68e26 100755 --- a/src/system/archive/listview.class.php +++ b/src/system/archive/listview.class.php @@ -1114,6 +1114,7 @@ class ListView $purl = $this->GetCurUrl(); //开启伪静态对规则替换 if ($cfg_rewrite == 'Y') { + $purl = str_replace("/apps", "", $purl); $nowurls = preg_replace("/\-/", ".php?", $purl); $nowurls = explode("?", $nowurls); $purl = $nowurls[0];