diff --git a/src/admin/templets/index.htm b/src/admin/templets/index.htm
index a5b56df1..ed789808 100644
--- a/src/admin/templets/index.htm
+++ b/src/admin/templets/index.htm
@@ -85,7 +85,7 @@
代码托管
- 帮助中心
+ 帮助中心
diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php
index b60445f5..ed1fd416 100755
--- a/src/system/archive/archives.class.php
+++ b/src/system/archive/archives.class.php
@@ -288,11 +288,7 @@ class Archives
*/
function MakeHtml($isremote = 0)
{
- global $fileFirst, $cfg_basehost,$cfg_rewrite;
- if ($cfg_rewrite == 'Y') {
- return '';
- }
-
+ global $fileFirst, $cfg_basehost;
if ($this->IsError) {
return '';
}
diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php
index 522bbcbd..e7235024 100755
--- a/src/system/helpers/channelunit.helper.php
+++ b/src/system/helpers/channelunit.helper.php
@@ -148,13 +148,15 @@ if (!function_exists('GetFileName')) {
//伪静态文档,Nginx伪静态规则参考:
//rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1;
//rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;
- if ($cfg_rewrite == 'Y') {
- //目录版return "/article/".$aid."";
- //网页版
- return $GLOBALS['cfg_cmspath'].'/'.$aid.".html";
- }
+
if ($rank != 0 || $ismake == -1 || $typeid == 0 || $money > 0) {
- return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid";
+ if ($cfg_rewrite == 'Y') {
+ //目录版return "/article/".$aid."";
+ //网页版
+ return $GLOBALS['cfg_cmspath'].'/'.$aid.".html";
+ } else {
+ return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid";
+ }
} else {
$articleDir = MfTypedir($typedir);
$articleRule = strtolower($namerule);