Browse Source

防止开启绝对路径,列表页面缩略图会多站点网址

tags/6.2.5
叙述、别离 1 year ago
parent
commit
309f9f5a80
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/system/archive/listview.class.php

+ 2
- 2
src/system/archive/listview.class.php View File

@@ -716,9 +716,9 @@ class ListView
if ($row['litpic'] == '-' || $row['litpic'] == '') {
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg';
}
if (!preg_match("/^http:\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') {
/*if (!preg_match("/^http:\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') {
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic'];
}
}*/
$row['picname'] = $row['litpic'];
$row['stime'] = GetDateMK($row['pubdate']);
$row['typelink'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>";


Loading…
Cancel
Save