这是由于判断类型的bug造成的草稿没有被识别,如果还有问题,直接删除页面然后重建
This commit is contained in:
joyqi
2013-11-01 12:11:31 +08:00
parent f0fb9c405f
commit 1cd85e5010
3 changed files with 14 additions and 10 deletions
+4 -4
View File
@@ -63,13 +63,13 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<a href="<?php $options->adminUrl('write-page.php?cid=' . $pages->cid); ?>"><?php $pages->title(); ?></a>
<?php
if ($pages->hasSaved || 'page_draft' == $pages->type) {
echo '<em>(' . _t('草稿') . ')</em>';
echo '<em class="status">' . _t('草稿') . '</em>';
} else if ('waiting' == $pages->status) {
echo '<em>(' . _t('待审核') . ')</em>';
echo '<em class="status">' . _t('待审核') . '</em>';
} else if ('private' == $pages->status) {
echo '<em>(' . _t('私密') . ')</em>';
echo '<em class="status">' . _t('私密') . '</em>';
} else if ($pages->password) {
echo '<em>(' . _t('密码保护') . ')</em>';
echo '<em class="status">' . _t('密码保护') . '</em>';
}
?>
<?php if ('page_draft' != $pages->type): ?>