From 5e1eb1453a84214a5d28e02c85a736530c2eaea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Wed, 11 Jan 2023 11:07:45 +0800 Subject: [PATCH] Update archives.class.php --- src/system/archive/archives.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php index 533919e7..f2a2bdae 100755 --- a/src/system/archive/archives.class.php +++ b/src/system/archive/archives.class.php @@ -43,7 +43,7 @@ class Archives */ function __construct($aid) { - global $dsql,$envs; + global $dsql, $envs; $this->IsError = FALSE; $this->ArcID = $aid; $this->PreNext = array(); @@ -579,7 +579,7 @@ class Archives } else if ($ctag->GetName() == 'prenext') { $this->dtp->Assign($i, $this->GetPreNext($ctag->GetAtt('get'))); } - //二次开发上一篇下一篇{dede:prenextdiy get='pre'}{/dede:prenextdiy}{dede:prenextdiy get='next'}{/dede:prenextdiy} + //添加上一篇下一篇标签{dede:prenextdiy get='pre'}{/dede:prenextdiy}{dede:prenextdiy get='next'}{/dede:prenextdiy} else if ($ctag->GetName()=='prenextdiy') { $innertext = trim($ctag->GetInnerText()); @@ -686,7 +686,6 @@ class Archives $preRow['siteurl'], $preRow['sitepath'] ); - //二次开发上一篇属性 $preRow['litpic'] = (empty($preRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg' : $preRow['litpic']; $this->PreNext['diy']['pre']['id'] = $preRow['id']; $this->PreNext['diy']['pre']['arcurl'] = $mlink; @@ -715,7 +714,6 @@ class Archives $nextRow['siteurl'], $nextRow['sitepath'] ); - //二次开发下一篇属性 $nextRow['litpic'] = (empty($nextRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg' : $nextRow['litpic']; $this->PreNext['diy']['next']['id'] = $nextRow['id']; $this->PreNext['diy']['next']['arcurl'] = $mlink; @@ -729,7 +727,6 @@ class Archives $this->PreNext['nextimg'] = ""; } } - //二次开发上一篇下一篇 if ($gtype=='diy') { return $this->PreNext['diy']; } if ($gtype=='pre') {