fix template delete method

This commit is contained in:
iIronside
2022-01-10 16:05:51 +03:00
parent 9cabf3e7f8
commit f077df791f
3 changed files with 164 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Template extends \yii\db\ActiveRecord
}
if (!empty($this->template_file_name)) {
$template_path = Yii::getAlias('@templates') . $this->template_file_name;
$template_path = Yii::getAlias('@templates') . '/' . $this->template_file_name;
if(file_exists($template_path)) {
unlink($template_path);