Commit 604746da by Scott

Add site language to HTML tag

parent 9c979c92
......@@ -493,11 +493,14 @@
$lastcategoryid=count($categoryids) ? end($categoryids) : null;
$charset = 'utf-8';
$language = qa_opt('site_language');
$language = empty($language) ? 'en' : qa_html($language);
$qa_content=array(
'content_type' => 'text/html; charset='.$charset,
'charset' => $charset,
'language' => $language,
'direction' => qa_opt('site_text_direction'),
'site_title' => qa_html(qa_opt('site_title')),
......
......@@ -222,7 +222,7 @@ class qa_html_theme_base
{
$attribution = '<!-- Powered by Question2Answer - http://www.question2answer.org/ -->';
$this->output(
'<html>',
'<html lang="'.$this->content['language'].'">',
$attribution
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment