From a6c4ebb1732d814ec2adb8906126c4c96198c637 Mon Sep 17 00:00:00 2001 From: nikbobo Date: Fri, 20 Dec 2013 20:11:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=86=E9=A1=B5=20HTML=20?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=80=89=E9=A1=B9=EF=BC=8C=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E8=A7=81=EF=BC=9Ahttp://forum.typecho.org/vi?= =?UTF-8?q?ewtopic.php=3Ff=3D7&t=3D4712?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/Archive.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/var/Widget/Archive.php b/var/Widget/Archive.php index f5f25af5..9b16fc86 100644 --- a/var/Widget/Archive.php +++ b/var/Widget/Archive.php @@ -1359,7 +1359,7 @@ class Widget_Archive extends Widget_Abstract_Contents * @return void */ public function pageNav($prev = '«', $next = '»', $splitPage = 3, $splitWord = '...', - $class = 'page-navigator', $currentClass = 'current') + $class = 'page-navigator', $currentClass = 'current', $htmlTag = 'ol') { if ($this->have()) { $hasNav = false; @@ -1376,9 +1376,11 @@ class Widget_Archive extends Widget_Abstract_Contents $nav = new Typecho_Widget_Helper_PageNavigator_Box($this->_total, $this->_currentPage, $this->parameter->pageSize, $query); - echo '
    '; + /** 添加判断防止输入错误的标签,判断逻辑:如果为