2011-07-24 22:22:13 +02:00
|
|
|
class InternalController < ApplicationController
|
|
|
|
|
|
|
|
theme :theme_resolver
|
|
|
|
layout "simple"
|
|
|
|
|
|
|
|
def error
|
2011-07-27 20:34:30 +02:00
|
|
|
@title = params[:title] || t(:general_error)
|
2011-07-24 22:22:13 +02:00
|
|
|
@error = params[:error] || t(:unspecified_error)
|
2011-07-27 20:34:30 +02:00
|
|
|
logger.error "!!! InternalControllerError: " + @error
|
|
|
|
end
|
|
|
|
|
|
|
|
def imaperror
|
|
|
|
@title = t(:imap_error)
|
|
|
|
@error = params[:error] || t(:unspecified_error)
|
|
|
|
logger.error "!!! InternalControllerImapError: " + @error
|
|
|
|
render 'error'
|
2011-07-24 22:22:13 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|