summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-10-23 17:23:37 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-10-23 17:23:37 +0000
commit5e17a276a8ca06b8337f0f71081267b292271a6c (patch)
treee958bf1f2b6aa7664e929b894b15448da446d030 /app/controllers
parentc0bc2136c57eb8c2311c1349d3d9604bcf0ceb14 (diff)
downloadredmine-5e17a276a8ca06b8337f0f71081267b292271a6c.tar.gz
redmine-5e17a276a8ca06b8337f0f71081267b292271a6c.zip
Traditional Chinese translation update (#39221).
Patch by ChunChang (Nagaharu) Lo. git-svn-id: https://svn.redmine.org/redmine/trunk@22368 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/wikis_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb
index 4469e3627..5b753b13b 100644
--- a/app/controllers/wikis_controller.rb
+++ b/app/controllers/wikis_controller.rb
@@ -24,7 +24,9 @@ class WikisController < ApplicationController
# Delete a project's wiki
def destroy
if request.post? && params[:confirm] && @project.wiki
- @project.wiki.destroy
+ if @project.wiki.destroy
+ Wiki.create_default(@project) unless @wiki
+ end
redirect_to project_path(@project)
end
end