Skip to content
Browse files

fixed urls on messasge delete

  • Loading branch information...
1 parent 37a7af0 commit e8d8e45e656a5b627c6da2b73af4a4e65b4c5c83 Ivan Dragun committed Nov 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 controllers/DeleteController.php
View
4 controllers/DeleteController.php
@@ -27,12 +27,12 @@ public function actionDelete($id = null) {
throw new CHttpException(404, MessageModule::t('Message not found'));
}
- $folder = $message->receiver_id == Yii::app()->user->getId() ? 'inbox' : 'sent';
+ $folder = $message->receiver_id == Yii::app()->user->getId() ? 'inbox/' : 'sent/';
if ($message->deleteByUser(Yii::app()->user->getId())) {
Yii::app()->user->setFlash('messageModule', MessageModule::t('Message has been deleted'));
}
- $this->redirect($this->createUrl('/message/' . $folder));
+ $this->redirect($this->createUrl($folder));
}
}
}

0 comments on commit e8d8e45

Please sign in to comment.
Something went wrong with that request. Please try again.