enhanced password checking behavior in remove_orphaned_pages;

extracted password error to application
This commit is contained in:
Alexey Verkhovsky 2005-02-05 13:34:12 +00:00
parent 8b21b8286f
commit bc97b8d4f7
3 changed files with 14 additions and 8 deletions

View file

@ -93,7 +93,8 @@ class WikiController < ApplicationController
wiki.remove_orphaned_pages(@web_name)
redirect_to :action => 'list'
else
redirect_show 'HomePage'
flash[:error] = password_error(@params['system_password'])
return_to_last_remembered
end
end