瀏覽代碼

Merge branch 'v7.2.0-beta' into develop

version-14
Rushabh Mehta 8 年之前
父節點
當前提交
f2cad09a3b
共有 1 個檔案被更改,包括 6 行新增5 行删除
  1. +6
    -5
      frappe/website/context.py

+ 6
- 5
frappe/website/context.py 查看文件

@@ -106,11 +106,12 @@ def build_context(context):
context.no_cache = 1
add_sidebar_data(context)
else:
sidebar_json_path = os.path.join(context.basepath, '_sidebar.json')
if os.path.exists(sidebar_json_path):
with open(sidebar_json_path, 'r') as sidebarfile:
context.sidebar_items = json.loads(sidebarfile.read())
context.show_sidebar = 1
if context.basepath:
sidebar_json_path = os.path.join(context.basepath, '_sidebar.json')
if os.path.exists(sidebar_json_path):
with open(sidebar_json_path, 'r') as sidebarfile:
context.sidebar_items = json.loads(sidebarfile.read())
context.show_sidebar = 1


# determine templates to be used


Loading…
取消
儲存