Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
604746da
Commit
604746da
authored
8 years ago
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add site language to HTML tag
parent
9c979c92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
qa-page.php
qa-include/qa-page.php
+3
-0
qa-theme-base.php
qa-include/qa-theme-base.php
+1
-1
No files found.
qa-include/qa-page.php
View file @
604746da
...
...
@@ -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'
)),
...
...
This diff is collapsed.
Click to expand it.
qa-include/qa-theme-base.php
View file @
604746da
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment