@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | public function actionDelete($id) |
84 | 84 | { |
85 | 85 | $this->findModel($id)->delete(); |
86 | - Yii::$app->getSession()->setFlash('success', Yii::t('yuncms','Delete success.')); |
|
86 | + Yii::$app->getSession()->setFlash('success', Yii::t('yuncms', 'Delete success.')); |
|
87 | 87 | return $this->redirect(['index']); |
88 | 88 | } |
89 | 89 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if (($model = Attachment::findOne($id)) !== null) { |
120 | 120 | return $model; |
121 | 121 | } else { |
122 | - throw new NotFoundHttpException (Yii::t('yuncms', 'The requested page does not exist.')); |
|
122 | + throw new NotFoundHttpException(Yii::t('yuncms', 'The requested page does not exist.')); |
|
123 | 123 | } |
124 | 124 | } |
125 | 125 | } |