Skip to content

Commit

Permalink
Update OpenGraph.php
Browse files Browse the repository at this point in the history
Change event type
  • Loading branch information
fgh151 authored Jul 20, 2021
1 parent 7d69969 commit a1e4157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(){
$this->locale = str_replace('-','_',Yii::$app->language);
$this->image = null;

Yii::$app->getView()->on(View::EVENT_BEGIN_PAGE, [$this, 'addTags']);
Yii::$app->getView()->on(View::EVENT_BEFORE_RENDER, [$this, 'addTags']);
}

/**
Expand Down

0 comments on commit a1e4157

Please sign in to comment.