Skip to content

Commit ca608de

Browse files
author
byends
committed
兼容低版本
1 parent 1b0fb84 commit ca608de

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public function editTheme($file)
365365
$this->init();
366366
$path = $this->_dir . '/' . $file;
367367

368-
if (file_exists($path) && is_writeable($path) && !Typecho_Common::isAppEngine()) {
368+
if (file_exists($path) && is_writeable($path)) {
369369
$handle = fopen($path, 'wb');
370370
if ($handle && fwrite($handle, $this->request->content)) {
371371
fclose($handle);

Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function currentContent()
8080
*/
8181
public function currentIsWriteable()
8282
{
83-
return is_writeable($this->_dir . '/' . $this->_currentFile) && !Typecho_Common::isAppEngine();
83+
return is_writeable($this->_dir . '/' . $this->_currentFile);
8484
}
8585

8686
/**

guest.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<div style="margin: 16px 40px; background-color: #eef2fa; border: 1px solid #d8e3e8; padding: 0 15px; -moz-border-radius:5px; -webkit-border-radius:5px; -khtml-border-radius:5px; border-radius:5px;">
2-
<p>{author_p}:<a target="_blank" href="{permalink}">{title}</a>&nbsp;有新的回复</p>
3-
<p><strong>{author}</strong>&nbsp;回复说:{text}</p>
4-
<p>你的评论:{text_p}</p>
5-
<p>时间:{time}</p>
6-
<p>本邮件为{siteTitle}自动发送,请勿直接回复,如有疑问,<a href="mailto:{contactme}" target="_blank">联系我</a></p>
1+
<div style="margin: 16px 40px; background-color: #eef2fa; border: 1px solid #d8e3e8; padding: 0 15px; -moz-border-radius:5px; -webkit-border-radius:5px; -khtml-border-radius:5px; border-radius:5px;">
2+
<p>{author_p}:<a target="_blank" href="{permalink}">{title}</a>&nbsp;有新的回复</p>
3+
<p><strong>{author}</strong>&nbsp;回复说:{text}</p>
4+
<p>你的评论:{text_p}</p>
5+
<p>时间:{time}</p>
6+
<p>本邮件为{siteTitle}自动发送,请勿直接回复,如有疑问,<a href="mailto:{contactme}" target="_blank">联系我</a></p>
77
</div>

owner.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<div style="margin: 16px 40px; background-color: #eef2fa; border: 1px solid #d8e3e8; padding: 0 15px; -moz-border-radius:5px; -webkit-border-radius:5px; -khtml-border-radius:5px; border-radius:5px;">
2-
<p>{siteTitle}:<a target="_blank" href="{permalink}">{title}</a></strong>&nbsp;有新的评论</p>
3-
<p><strong>{author}</strong>&nbsp;评论说:{text}</p>
4-
<p>时间:{time}<br />IP:{ip}<br />邮箱:{mail}<br />状态:{status} [<a href='{manage}' target='_blank'>管理评论</a>]<br /></p>
1+
<div style="margin: 16px 40px; background-color: #eef2fa; border: 1px solid #d8e3e8; padding: 0 15px; -moz-border-radius:5px; -webkit-border-radius:5px; -khtml-border-radius:5px; border-radius:5px;">
2+
<p>{siteTitle}:<a target="_blank" href="{permalink}">{title}</a></strong>&nbsp;有新的评论</p>
3+
<p><strong>{author}</strong>&nbsp;评论说:{text}</p>
4+
<p>时间:{time}<br />IP:{ip}<br />邮箱:{mail}<br />状态:{status} [<a href='{manage}' target='_blank'>管理评论</a>]<br /></p>
55
</div>

0 commit comments

Comments
 (0)