summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-10-23 17:31:04 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-10-23 17:31:04 +0000
commit94da4a33f5d9353d4b8228163462d5711721285f (patch)
treec48b62d5140c95995f224d78cab85f0669cf0c20 /app/controllers
parent5e17a276a8ca06b8337f0f71081267b292271a6c (diff)
downloadredmine-94da4a33f5d9353d4b8228163462d5711721285f.tar.gz
redmine-94da4a33f5d9353d4b8228163462d5711721285f.zip
Revert r22368.
git-svn-id: https://svn.redmine.org/redmine/trunk@22369 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/wikis_controller.rb4
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