取消目录树在作者归档的显示

This commit is contained in:
HongWeipeng 2016-04-05 23:55:21 +08:00
parent cc8f2a9a91
commit 7e4dc62acd

View File

@ -162,7 +162,7 @@ class MenuTree_Plugin implements Typecho_Plugin_Interface {
static $is_content = null;
if($is_content === null) {
$widget = Typecho_Widget::widget('Widget_Archive');
$is_content = !($widget->is('index') || $widget->is('search') || $widget->is('date') || $widget->is('category'));
$is_content = !($widget->is('index') || $widget->is('search') || $widget->is('date') || $widget->is('category') || $widget->is('author'));
}
return $is_content;
}