Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
8b9ff4fe
Commit
8b9ff4fe
authored
Dec 18, 2018
by
Marc Egger
Browse files
Logger.php: replace relative path with absolute. More general solution.
parent
85c48915
Pipeline
#1173
passed with stage
in 1 minute and 31 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
extension/Source/core/helper/Logger.php
View file @
8b9ff4fe
...
...
@@ -78,14 +78,7 @@ class Logger {
* @return string
*/
private
static
function
relativeToT3Dir
(
$filename
)
{
if
(
isset
(
$filename
[
0
])
&&
$filename
[
0
]
!=
'/'
)
{
if
(
strpos
(
getcwd
(),
'qfq/'
.
API_DIR_EXT
)
!==
false
)
{
return
(
'../../../../../'
.
$filename
);
}
}
return
$filename
;
return
substr
(
getcwd
(),
0
,
strpos
(
getcwd
(),
'/qfq'
))
.
'/qfq/'
.
$filename
;
}
/**
...
...
Marc Egger
@megger
mentioned in commit
dfe8e7d3
·
Dec 18, 2018
mentioned in commit
dfe8e7d3
mentioned in commit dfe8e7d313362bb5210eba66ff14f02d0905c717
Toggle commit list
Write
Preview
Supports
Markdown
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