Revert "fix(setup_global_help): allow utf-8 in filename (#6132)"

This reverts commit a19525e695.
This commit is contained in:
Ameya Shenoy 2018-09-25 16:49:11 +05:30 committed by GitHub
parent a19525e695
commit 4e4429f169

View file

@ -245,7 +245,7 @@ class HelpDatabase(object):
links_html = "<ol class='index-links'>"
for line in files:
fpath = os.path.join(os.path.dirname(frappe.safe_decode(original_path)), frappe.safe_decode(line))
fpath = os.path.join(os.path.dirname(original_path), line)
title = self.db.sql('select title from help where path like %s',
os.path.join(fpath, 'index') + '%')