diff options
Diffstat (limited to 'app/controllers/wikis_controller.rb')
-rw-r--r-- | app/controllers/wikis_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb index 5b753b13b..4469e3627 100644 --- a/app/controllers/wikis_controller.rb +++ b/app/controllers/wikis_controller.rb @@ -24,9 +24,7 @@ class WikisController < ApplicationController # Delete a project's wiki def destroy if request.post? && params[:confirm] && @project.wiki - if @project.wiki.destroy - Wiki.create_default(@project) unless @wiki - end + @project.wiki.destroy redirect_to project_path(@project) end end |