fix: access to private property
This commit is contained in:
parent
bcaa1f2277
commit
e7893e8de2
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
||||||
namespace wishthis;
|
namespace wishthis;
|
||||||
|
|
||||||
$wishlist = Wishlist::getFromHash($_GET['hash']);
|
$wishlist = Wishlist::getFromHash($_GET['hash']);
|
||||||
$wishlist_user = User::getFromID($wishlist->user);
|
$wishlist_user = User::getFromID($wishlist->getUserId());
|
||||||
$page = new Page(__FILE__, $wishlist->getTitle());
|
$page = new Page(__FILE__, $wishlist->getTitle());
|
||||||
$page->stylesheets['wish'] = 'src/assets/css/wish.css';
|
$page->stylesheets['wish'] = 'src/assets/css/wish.css';
|
||||||
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
|
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
|
||||||
|
@ -35,7 +35,7 @@ $user = User::getCurrent();
|
||||||
<div class="ui stackable grid">
|
<div class="ui stackable grid">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
|
||||||
<?php if ($user->isLoggedIn() && $user->getId() !== $wishlist->user) { ?>
|
<?php if ($user->isLoggedIn() && $user->getId() !== $wishlist->getUserId()) { ?>
|
||||||
<button class="ui white small basic labeled icon button save disabled loading">
|
<button class="ui white small basic labeled icon button save disabled loading">
|
||||||
<i class="heart icon"></i>
|
<i class="heart icon"></i>
|
||||||
<span><?= __('Remember list') ?></span>
|
<span><?= __('Remember list') ?></span>
|
||||||
|
@ -49,7 +49,7 @@ $user = User::getCurrent();
|
||||||
/**
|
/**
|
||||||
* Warn the wishlist creator
|
* Warn the wishlist creator
|
||||||
*/
|
*/
|
||||||
if ($user->isLoggedIn() && $user->getId() === $wishlist->user) { ?>
|
if ($user->isLoggedIn() && $user->getId() === $wishlist->getUserId()) { ?>
|
||||||
<div class="ui icon warning message wishlist-own">
|
<div class="ui icon warning message wishlist-own">
|
||||||
<i class="exclamation triangle icon"></i>
|
<i class="exclamation triangle icon"></i>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
Loading…
Reference in a new issue