Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Apr 17, 2020
1 parent 9166021 commit dddf401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/CmsSearchPhrase.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public function rules()
['cms_site_id'],
'default',
'value' => function (self $model, $attribute) {
if (\Yii::$app->cms->site) {
return \Yii::$app->cms->site->id;
if (\Yii::$app->skeeks->site) {
return \Yii::$app->skeeks->site->id;
}

return null;
Expand Down

0 comments on commit dddf401

Please sign in to comment.