Friendly confirmation message in remove_orphaned_pages
This commit is contained in:
parent
5334fe626a
commit
5cb21ff619
|
@ -91,6 +91,7 @@ class WikiController < ApplicationController
|
||||||
def remove_orphaned_pages
|
def remove_orphaned_pages
|
||||||
if wiki.authenticate(@params['system_password'])
|
if wiki.authenticate(@params['system_password'])
|
||||||
wiki.remove_orphaned_pages(@web_name)
|
wiki.remove_orphaned_pages(@web_name)
|
||||||
|
flash[:info] = 'Orphaned pages removed'
|
||||||
redirect_to :action => 'list'
|
redirect_to :action => 'list'
|
||||||
else
|
else
|
||||||
flash[:error] = password_error(@params['system_password'])
|
flash[:error] = password_error(@params['system_password'])
|
||||||
|
|
Loading…
Reference in a new issue