Skip to content

Commit

Permalink
fix(layout): missing avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksleo committed Dec 1, 2018
1 parent b2e3ed8 commit 4019644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/layouts/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.sidebar-menu>li.bg-success>a{background-color: rgb(0, 166, 90) !important; color: rgb(255, 255, 255) !important;}
CSS;
$this->registerCss($css);
$avatar = Yii::$app->user->isGuest ? '/images/avatar/png' : $avatar;
$avatar = Yii::$app->user->isGuest ? '/images/avatar.png' : Yii::$app->user->identity->getImageUrl();
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
Expand Down

0 comments on commit 4019644

Please sign in to comment.