diff --git a/usr/themes/default/functions.php b/usr/themes/default/functions.php index d4d13225..0e63bb92 100644 --- a/usr/themes/default/functions.php +++ b/usr/themes/default/functions.php @@ -15,7 +15,11 @@ function themeConfig($form) { $form->addInput($sidebarBlock->multiMode()); } + +/* function themeFields($layout) { $logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点LOGO地址'), _t('在这里填入一个图片URL地址, 以在网站标题前加上一个LOGO')); $layout->addItem($logoUrl); } +*/ + diff --git a/var/Widget/Archive.php b/var/Widget/Archive.php index 5483219f..583f5489 100644 --- a/var/Widget/Archive.php +++ b/var/Widget/Archive.php @@ -1239,7 +1239,7 @@ class Widget_Archive extends Widget_Abstract_Contents (table.contents.status = ? AND table.contents.authorId = ?)', 'publish', 'hidden', 'private', $this->user->uid); } else { - $select = $this->select()->where('table.contents.status = ? OR table.contents.status', + $select = $this->select()->where('table.contents.status = ? OR table.contents.status = ?', 'publish', 'hidden'); } } else {