@@ -60,13 +60,15 class MessagesController < ApplicationController | |||
|
60 | 60 | @message.locked = params[:message]['locked'] |
|
61 | 61 | @message.sticky = params[:message]['sticky'] |
|
62 | 62 | end |
|
63 |
if request.post? |
|
|
63 | if request.post? | |
|
64 | @message.save_attachments(params[:attachments]) | |
|
65 | if @message.save | |
|
64 | 66 | call_hook(:controller_messages_new_after_save, { :params => params, :message => @message}) |
|
65 | attachments = Attachment.attach_files(@message, params[:attachments]) | |
|
66 | 67 | render_attachment_warning_if_needed(@message) |
|
67 | 68 | redirect_to :action => 'show', :id => @message |
|
68 | 69 | end |
|
69 | 70 | end |
|
71 | end | |
|
70 | 72 | |
|
71 | 73 | # Reply to a topic |
|
72 | 74 | def reply |
General Comments 0
You need to be logged in to leave comments.
Login now