Completed
Push — master ( ad8ca9...261cfe )
by Xu
142:54 queued 102:57
created
src/admin/controllers/AttachmentController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.