Clean Deletions
Deleting a page removes all revisions of that page. Deleting a Web removes all pages (and all revisions thereof) and all wiki_files belonging to that Web.
This commit is contained in:
parent
c3c33b68dd
commit
397859ba8a
3 changed files with 3 additions and 4 deletions
|
@ -112,7 +112,6 @@ class AdminController < ApplicationController
|
|||
def delete_web
|
||||
return unless is_post
|
||||
if wiki.authenticate(params['system_password_delete_web'])
|
||||
@web.remove_pages(@web.select_all)
|
||||
wiki.delete_web(@web_name)
|
||||
flash[:info] = "Web \"#{@web_name}\" has been deleted."
|
||||
redirect_to :controller => 'wiki', :action => 'web_list'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue