devel
This commit is contained in:
parent
cf56c7555a
commit
0ec83db287
|
@ -89,16 +89,8 @@ class WebmailController < ApplicationController
|
|||
@pages = Paginator.new self, 0, get_mail_prefs.wm_rows, @page
|
||||
@messages = folder.messages_search([@search_field, @search_value], sort_query + (reverse_sort ? ' desc' : ' asc'))
|
||||
else
|
||||
|
||||
logger.info "total #{folder.total}"
|
||||
logger.info "prews #{get_mail_prefs.wm_rows}"
|
||||
logger.info "@page #{@page.inspect}"
|
||||
logger.info "========================folder #{folder.messages.count}"
|
||||
|
||||
@pages = Paginator.new self, folder.total, get_mail_prefs.wm_rows, @page
|
||||
@messages = folder.messages(@pages.current.first_item - 1, get_mail_prefs.wm_rows, sort_query + (reverse_sort ? ' desc' : ' asc'))
|
||||
logger.info "========================folder after #{folder.messages.count}"
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -2,10 +2,9 @@
|
|||
|
||||
# Uncomment below to force Rails into production mode
|
||||
# (Use only when you can't set environment variables through your web/app server)
|
||||
# ENV['RAILS_ENV'] = 'production'
|
||||
|
||||
ENV['RAILS_ENV'] = 'production'
|
||||
|
||||
#RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
|
||||
#RAILS_GEM_VERSION = '2.3.3' unless defined? RAILS_GEM_VERSION
|
||||
|
||||
# Bootstrap the Rails environment, frameworks, and default configuration
|
||||
require File.join(File.dirname(__FILE__), 'boot')
|
||||
|
@ -35,7 +34,7 @@ Rails::Initializer.run do |config|
|
|||
# Make Active Record use UTC-base instead of local time
|
||||
config.active_record.default_timezone = :utc
|
||||
|
||||
#config.i18n.default_locale = "en"
|
||||
config.i18n.default_locale = "en"
|
||||
|
||||
# Use Active Record's schema dumper instead of SQL when creating the test database
|
||||
# (enables use of different database adapters for development and test environments)
|
||||
|
|
|
@ -45,7 +45,7 @@ pl-PL:
|
|||
add_filter: Dodaj filtr
|
||||
cc: Cc
|
||||
bcc: Bcc
|
||||
send: Wyslij
|
||||
send: Wyślij
|
||||
choose_address: Wybierz adres z kontaktów
|
||||
compose_txt: Utwórz nową wiadomość
|
||||
attachment: Załącznik
|
||||
|
|
Loading…
Reference in a new issue