diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 969de977..8b970e02 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -76,4 +76,15 @@ class AdminController < ApplicationController end end + def remove_orphaned_pages + if wiki.authenticate(@params['system_password_orphaned']) + wiki.remove_orphaned_pages(@web_name) + flash[:info] = 'Orphaned pages removed' + redirect_to :action => 'list' + else + flash[:error] = password_error(@params['system_password']) + return_to_last_remembered + end + end + end diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 9c221329..65098210 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -88,17 +88,6 @@ class WikiController < ApplicationController @pages_by_revision = @pages_in_category.by_revision end - def remove_orphaned_pages - if wiki.authenticate(@params['system_password_orphaned']) - wiki.remove_orphaned_pages(@web_name) - flash[:info] = 'Orphaned pages removed' - redirect_to :action => 'list' - else - flash[:error] = password_error(@params['system_password']) - return_to_last_remembered - end - end - def rss_with_content render_rss end diff --git a/app/views/admin/edit_web.rhtml b/app/views/admin/edit_web.rhtml index 468c4310..6b4e0a5f 100644 --- a/app/views/admin/edit_web.rhtml +++ b/app/views/admin/edit_web.rhtml @@ -1,5 +1,7 @@ <% @title = "Edit Web" %> +
<%= @wiki.system[:password] %>
+