[Plugins][Components] Fixed issue where right panel form was rendered multiple times in actors plugin page. Actors page done.

This commit is contained in:
2021-09-17 21:51:55 +01:00
committed by Diogo Peralta Cordeiro
parent e4b650be46
commit 6c899b7b61
6 changed files with 35 additions and 37 deletions

View File

@@ -57,7 +57,7 @@ class Avatar extends Component
public function onStartTwigPopulateVars(array &$vars): bool
{
if (Common::user() != null) {
if (Common::user() !== null) {
$vars['user_avatar'] = self::getAvatarUrl();
}
return Event::next;

View File

@@ -53,7 +53,7 @@ class Posting extends Component
*/
public function onStartTwigPopulateVars(array &$vars): bool
{
if (($user = Common::user()) == null) {
if (($user = Common::user()) === null) {
return Event::next;
}

View File

@@ -21,10 +21,11 @@ namespace Component\Right;
use App\Core\Event;
use App\Core\Modules\Component;
use App\Util\Common;
class Right extends Component
{
public function onEndTwigPopulateVars(array &$vars)
public function onStartTwigPopulateVars(array &$vars)
{
return Event::next;
}