Setting: Disable port if https

This commit is contained in:
Dmitriy Zaporozhets 2012-07-03 18:34:47 +03:00
parent abc360fea3
commit 00ef16a66c

View file

@ -19,8 +19,12 @@ class Settings < Settingslogic
end
def web_port
if web.https
nil
else
web['port'] ||= 80
end
end
def build_url
raw_url = self.web_protocol