(如果不指定,默认以枚举添加先后来排序)
diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php
index cbebc356..7e97e31b 100755
--- a/src/system/archive/archives.class.php
+++ b/src/system/archive/archives.class.php
@@ -238,7 +238,7 @@ class Archives
}
$this->Fields['picname'] = $this->Fields['litpic'];
//模板里直接使用{dede:field name='image'/}获取缩略图
- $this->Fields['image'] = (!preg_match('/jpg|gif|png/i', $this->Fields['picname']) ? '' : "

");
+ $this->Fields['image'] = (!preg_match('/jpg|gif|png/i', $this->Fields['picname']) ? '' : "

");
}
//处理投票选项
if (isset($this->Fields['voteid']) && !empty($this->Fields['voteid'])) {
@@ -352,8 +352,8 @@ class Archives
if ($i > 1) $this->Fields['title'] = $this->Fields['tmptitle']."($i)";
}
if ($i > 1) {
- $TRUEfilename = $this->GetTruePath().$fileFirst."_".$i.".".$this->ShortName;
- $URLFilename = $fileFirst."_".$i.".".$this->ShortName;
+ $TRUEfilename = $this->GetTruePath().$fileFirst."-".$i.".".$this->ShortName;
+ $URLFilename = $fileFirst."-".$i.".".$this->ShortName;
} else {
$TRUEfilename = $this->GetTruePath().$filename;
$URLFilename = $filename;
@@ -412,11 +412,11 @@ class Archives
*/
function GetField($fname, $ctag)
{
- //所有Field数组 OR 普通Field
+ //所有Field数组OR普通Field
if ($fname == 'array') {
return $this->Fields;
}
- //指定了ID的节点
+ //指定了id的节点
else if ($ctag->GetAtt('noteid') != '') {
if (isset($this->Fields[$fname.'_'.$ctag->GetAtt('noteid')])) {
return $this->Fields[$fname.'_'.$ctag->GetAtt('noteid')];
@@ -489,7 +489,7 @@ class Archives
if ($GLOBALS['cfg_jump_once'] == 'N') {
$pageHtml = "\r\n\r\n
\r\n
".$this->Fields['title']."\r\n";
$pageHtml .= "
Fields['redirecturl']."\">\r\n\r\n\r\n";
- $pageHtml .= "正在前往文档:".$this->Fields['title']."
\r\n文档描述:".$this->Fields['description']."\r\n\r\n\r\n";
+ $pageHtml .= "
正在前往文档:".$this->Fields['title']."
\r\n
文档描述:".$this->Fields['description']."
\r\n