浏览代码

更新

tags/6.1.8
tianya 3 年前
父节点
当前提交
d092640825
共有 3 个文件被更改,包括 10 次插入12 次删除
  1. +1
    -1
      src/admin/templets/index.htm
  2. +1
    -5
      src/system/archive/archives.class.php
  3. +8
    -6
      src/system/helpers/channelunit.helper.php

+ 1
- 1
src/admin/templets/index.htm 查看文件

@@ -85,7 +85,7 @@
<input type="text" name="keyword" placeholder="功能搜索" class="allsearch">
<button type="submit" class="np">搜索</button>
<a href="<?php echo $cfg_biz_gitUrl; ?>" target="_blank"><i class="fa fa-code"></i> 代码托管</a>
<a href="<?php echo $cfg_biz_helpUrl; ?>" target="_blank"><i class="fa fa-info-circle"></i> 帮助中心</a>
<a href="<?php echo $cfg_biz_helpUrl; ?>" target="_blank"><i class="fa fa-question-circle"></i> 帮助中心</a>
</form>
</div>
</div>


+ 1
- 5
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 '';
}


+ 8
- 6
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);


正在加载...
取消
保存