Skip to content

Commit 06c509c

Browse files
committed
allow to set site property
1 parent 8df7402 commit 06c509c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

View.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,15 @@ public function init()
127127
$this->site_name = Yii::$app->name;
128128
$this->site = Yii::$app->name;
129129
}
130+
131+
if($this->site == null){
132+
$this->site = $this->site_name;
133+
}
134+
130135
if ($this->url == null) {
131136
$this->url = Yii::$app->request->absoluteUrl;
132137
}
138+
133139
if ($this->date == null){
134140
$this->date = Yii::$app->formatter->asDatetime(time());
135141
}

0 commit comments

Comments
 (0)