diff --git a/themes/tajian/controller/SiteController.php b/themes/tajian/controller/SiteController.php index 495b646..9c93fa7 100644 --- a/themes/tajian/controller/SiteController.php +++ b/themes/tajian/controller/SiteController.php @@ -29,6 +29,8 @@ Class SiteController extends Controller { //显示当前用户收藏的视频 protected function renderFavVideos() { + $loginedUser = Common::getUserFromSession(); + //获取数据 $menus = array(); //菜单,一级目录 $htmlReadme = ''; //Readme.md 内容,底部网站详细介绍 @@ -84,7 +86,7 @@ Class SiteController extends Controller { $viewName = 'myindex'; $params = compact( 'cateId', 'dirTree', 'scanResults', 'menus', 'htmlReadme', 'tags', - 'nickname' + 'nickname', 'loginedUser' ); return $this->render($viewName, $params, $pageTitle); } diff --git a/themes/tajian/views/site/login.php b/themes/tajian/views/site/login.php index 66d15b4..87cb16e 100644 --- a/themes/tajian/views/site/login.php +++ b/themes/tajian/views/site/login.php @@ -2,11 +2,11 @@