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
4a5c9aab
Commit
4a5c9aab
authored
Nov 03, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move text direction to $qa_content array
parent
f6f9c07d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
format.php
qa-include/app/format.php
+1
-1
qa-page.php
qa-include/qa-page.php
+2
-1
qa-theme-base.php
qa-include/qa-theme-base.php
+5
-4
No files found.
qa-include/app/format.php
View file @
4a5c9aab
...
...
@@ -1806,7 +1806,7 @@
// Finally, instantiate the object
$themeclass
=
new
$classname
(
$template
,
$content
,
$themeroothtml
,
$request
,
qa_opt
(
'site_text_direction'
)
);
$themeclass
=
new
$classname
(
$template
,
$content
,
$themeroothtml
,
$request
);
return
$themeclass
;
}
...
...
qa-include/qa-page.php
View file @
4a5c9aab
...
...
@@ -479,9 +479,10 @@
$qa_content
=
array
(
'content_type'
=>
'text/html; charset='
.
$charset
,
'charset'
=>
$charset
,
'direction'
=>
qa_opt
(
'site_text_direction'
),
'site_title'
=>
qa_html
(
qa_opt
(
'site_title'
)),
'head_lines'
=>
array
(),
...
...
qa-include/qa-theme-base.php
View file @
4a5c9aab
...
...
@@ -53,7 +53,7 @@
protected
$ranking_block_layout
=
false
;
public
function
__construct
(
$template
,
$content
,
$rooturl
,
$request
,
$textdir
=
'ltr'
)
public
function
__construct
(
$template
,
$content
,
$rooturl
,
$request
)
/*
Initialize the object and assign local variables
*/
...
...
@@ -62,16 +62,17 @@
$this
->
content
=
$content
;
$this
->
rooturl
=
$rooturl
;
$this
->
request
=
$request
;
$this
->
isRTL
=
$textdir
===
'rtl'
;
$this
->
isRTL
=
isset
(
$content
[
'direction'
])
&&
$content
[
'direction'
]
===
'rtl'
;
}
/**
* @deprecated PHP4-style constructor deprecated from 1.7; please use proper `__construct`
* function instead.
*/
public
function
qa_html_theme_base
(
$template
,
$content
,
$rooturl
,
$request
,
$textdir
=
'ltr'
)
public
function
qa_html_theme_base
(
$template
,
$content
,
$rooturl
,
$request
)
{
self
::
__construct
(
$template
,
$content
,
$rooturl
,
$request
,
$textdir
);
self
::
__construct
(
$template
,
$content
,
$rooturl
,
$request
);
}
...
...
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