fix template delete method
This commit is contained in:
1 parent
9cabf3e7f8
commit
f077df791f
3 files changed
+164
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user