mirror of
https://github.com/typecho/typecho.git
synced 2025-04-07 19:52:40 +02:00
Merge pull request #71 from shingchi/master
修整头部函数输出时 commentReply 为空也生成空的 script 标签
This commit is contained in:
commit
50c42c5946
@ -1533,8 +1533,9 @@ class Widget_Archive extends Widget_Abstract_Contents
|
||||
}
|
||||
|
||||
if ($this->options->commentsThreaded && $this->is('single')) {
|
||||
if (1 == $allows['commentReply']) {
|
||||
$header .= "<script type=\"text/javascript\">
|
||||
if ('' != $allows['commentReply']) {
|
||||
if (1 == $allows['commentReply']) {
|
||||
$header .= "<script type=\"text/javascript\">
|
||||
//<![CDATA[
|
||||
var TypechoComment = {
|
||||
dom : function (id) {
|
||||
@ -1606,8 +1607,9 @@ var TypechoComment = {
|
||||
}
|
||||
//]]>
|
||||
</script>";
|
||||
} else {
|
||||
$header .= '<script src="' . $allows['commentReply'] . '" type="text/javascript"></script>';
|
||||
} else {
|
||||
$header .= '<script src="' . $allows['commentReply'] . '" type="text/javascript"></script>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user