diff --git a/webapp_about.py b/webapp_about.py index ae8a87d31..e410a33eb 100644 --- a/webapp_about.py +++ b/webapp_about.py @@ -30,36 +30,36 @@ def html_about(css_cache: {}, base_dir: str, http_prefix: str, copyfile(base_dir + '/accounts/login-background-custom.jpg', base_dir + '/accounts/login-background.jpg') - aboutText = 'Information about this instance goes here.' + about_text = 'Information about this instance goes here.' if os.path.isfile(base_dir + '/accounts/about.md'): - with open(base_dir + '/accounts/about.md', 'r') as aboutFile: - aboutText = markdown_to_html(aboutFile.read()) + with open(base_dir + '/accounts/about.md', 'r') as fp_about: + about_text = markdown_to_html(fp_about.read()) - aboutForm = '' + about_form = '' css_filename = base_dir + '/epicyon-profile.css' if os.path.isfile(base_dir + '/epicyon.css'): css_filename = base_dir + '/epicyon.css' - instanceTitle = \ + instance_title = \ get_config_param(base_dir, 'instanceTitle') - aboutForm = \ - html_header_with_website_markup(css_filename, instanceTitle, + about_form = \ + html_header_with_website_markup(css_filename, instance_title, http_prefix, domain_full, system_language) - aboutForm += '
' + \ 'http://' + onion_domain + '
\n' + \ translate['Administered by'] + ' ' + admin_nickname + '. ' + \ + admin_actor + '">' + admin_nickname + '. ' + \ translate['Version'] + ' ' + __version__ + \ '
\n