summaryrefslogtreecommitdiffstats
path: root/app/controllers/wiki_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-16 12:22:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-16 12:22:09 +0000
commit2b559e5d21a7500239ac0b597e38e96f6c45ab2e (patch)
tree342b5fd8b249b2576487b602644fe37a98211634 /app/controllers/wiki_controller.rb
parentf6cfc6812119576bf6902a2d61fa1edb5b4886a0 (diff)
downloadredmine-2b559e5d21a7500239ac0b597e38e96f6c45ab2e.tar.gz
redmine-2b559e5d21a7500239ac0b597e38e96f6c45ab2e.zip
remove spaces inside {} of WikiController
git-svn-id: http://svn.redmine.org/redmine/trunk@20394 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r--app/controllers/wiki_controller.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index 782763713..69af6f437 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -74,8 +74,8 @@ class WikiController < ApplicationController
if @page.errors[:title].blank?
path = project_wiki_page_path(@project, @page.title, :parent => params[:parent])
respond_to do |format|
- format.html { redirect_to path }
- format.js { render :js => "window.location = #{path.to_json}" }
+ format.html {redirect_to path}
+ format.js {render :js => "window.location = #{path.to_json}"}
end
end
end
@@ -181,7 +181,7 @@ class WikiController < ApplicationController
if @page.save_with_content(@content)
attachments = Attachment.attach_files(@page, params[:attachments] || (params[:wiki_page] && params[:wiki_page][:uploads]))
render_attachment_warning_if_needed(@page)
- call_hook(:controller_wiki_edit_after_save, { :params => params, :page => @page})
+ call_hook(:controller_wiki_edit_after_save, {:params => params, :page => @page})
respond_to do |format|
format.html do
@@ -198,8 +198,8 @@ class WikiController < ApplicationController
end
else
respond_to do |format|
- format.html { render :action => 'edit' }
- format.api { render_validation_errors(@content) }
+ format.html {render :action => 'edit'}
+ format.api {render_validation_errors(@content)}
end
end
@@ -210,7 +210,7 @@ class WikiController < ApplicationController
flash.now[:error] = l(:notice_locking_conflict)
render :action => 'edit'
end
- format.api { render_api_head :conflict }
+ format.api {render_api_head :conflict}
end
end
@@ -291,7 +291,7 @@ class WikiController < ApplicationController
flash[:notice] = l(:notice_successful_delete)
redirect_to project_wiki_index_path(@project)
end
- format.api { render_api_ok }
+ format.api {render_api_ok}
end
end