website: fixed social icons and don't take lang from session for demo
This commit is contained in:
parent
ed19666e1b
commit
891ff09ac1
@ -253,6 +253,9 @@ def get_outer_env(page_name, args):
|
|||||||
if k in settings.fields:
|
if k in settings.fields:
|
||||||
args[k] = settings.fields.get(k)
|
args[k] = settings.fields.get(k)
|
||||||
|
|
||||||
|
for k in ["facebook_share", "google_plus_one", "twitter_share", "linked_in_share"]:
|
||||||
|
args[k] = int(args.get(k) or 0)
|
||||||
|
|
||||||
if not args.brand_html:
|
if not args.brand_html:
|
||||||
args.brand_html = "ERPNext"
|
args.brand_html = "ERPNext"
|
||||||
if not args.top_bar_background:
|
if not args.top_bar_background:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user