mirror of
https://github.com/typecho/typecho.git
synced 2025-03-24 20:09:47 +01:00
修整 commentReply 为空时也输出空的 script 标签
This commit is contained in:
parent
7f629296da
commit
5af1e3c183
@ -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