Friendly confirmation message in remove_orphaned_pages

This commit is contained in:
Alexey Verkhovsky 2005-02-05 14:06:50 +00:00
parent 5334fe626a
commit 5cb21ff619

View file

@ -91,6 +91,7 @@ class WikiController < ApplicationController
def remove_orphaned_pages
if wiki.authenticate(@params['system_password'])
wiki.remove_orphaned_pages(@web_name)
flash[:info] = 'Orphaned pages removed'
redirect_to :action => 'list'
else
flash[:error] = password_error(@params['system_password'])