[fix] [minor] [website]

This commit is contained in:
Anand Doshi
2013-09-17 15:28:58 +05:30
parent 619ed5e949
commit 2840620070
7 changed files with 52 additions and 15 deletions

View File

@@ -40,14 +40,3 @@ def get_monthly_bulk_mail_limit():
return 999999
else:
return 500
def get_url():
from webnotes.utils import get_request_site_address
url = get_request_site_address()
if not url or "localhost" in url:
subdomain = webnotes.conn.get_value("Website Settings", "Website Settings",
"subdomain")
if subdomain:
if "http" not in subdomain:
url = "http://" + subdomain
return url