diff --git a/core/core.php b/core/core.php index 1e3900a..0dae030 100644 --- a/core/core.php +++ b/core/core.php @@ -29,7 +29,7 @@ function themeInit($self) Helper::options()->commentsRequireMail = true; /* 强奸用户要求无需填写url */ Helper::options()->commentsRequireURL = false; - /* 强制用户评论回复 */ + /* 强制用户开启评论回复 */ Helper::options()->commentsThreaded = true; /* 强制显示一页12篇文章 */ $self->parameter->pageSize = 12; diff --git a/core/function.php b/core/function.php index 0a31bb8..d527582 100644 --- a/core/function.php +++ b/core/function.php @@ -185,7 +185,7 @@ function _getAbstract($item, $type = true) if ($item->fields->abstract) { $abstract = $item->fields->abstract; } else { - $abstract = Typecho_Common::subStr(strip_tags($item->excerpt), 0, 180, '...');; + $abstract = strip_tags($item->excerpt); } } if ($abstract === '') $abstract = "暂无简介"; diff --git a/core/short.php b/core/short.php index 5f9ab3e..eecf2f5 100644 --- a/core/short.php +++ b/core/short.php @@ -88,14 +88,14 @@ function _parseContent($post, $login) $content = preg_replace_callback( '/\{music-list\s*id="(\w*)"\s*\/\}/SU', function ($matches) { - return ''; + return ''; }, $content ); $content = preg_replace_callback( '/\{music\s*id="(\w*)"\s*\/\}/SU', function ($matches) { - return ''; + return ''; }, $content ); diff --git a/public/comment.php b/public/comment.php index f374217..96e70c9 100644 --- a/public/comment.php +++ b/public/comment.php @@ -64,7 +64,8 @@ have()) : ?> listComments(); ?> - pageNav( + pageNav( '', '', 1,