Extracted AdminController from WikiController
This commit is contained in:
parent
9bc9a29789
commit
88e52ab5a9
10 changed files with 223 additions and 191 deletions
|
@ -71,6 +71,11 @@ class ApplicationController < ActionController::Base
|
|||
not @web_name.nil?
|
||||
end
|
||||
|
||||
def redirect_show(page_name = @page_name, web = @web_name)
|
||||
redirect_to :web => web, :controller => 'wiki', :action => 'show',
|
||||
:id => CGI.escape(page_name || 'HomePage')
|
||||
end
|
||||
|
||||
@@REMEMBER_NOT = ['locked', 'save', 'back', 'file', 'pic', 'import']
|
||||
def remember_location
|
||||
if @response.headers['Status'] == '200 OK'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue