Commit dfe8e7d3 authored by Marc Egger's avatar Marc Egger
Browse files

Revert "Logger.php: replace relative path with absolute. More general solution."

This reverts commit 8b9ff4fe
parent 813c6bf6
Pipeline #1180 passed with stage
in 2 minutes and 14 seconds
......@@ -78,7 +78,14 @@ class Logger {
* @return string
*/
private static function relativeToT3Dir($filename) {
return substr(getcwd(), 0, strpos(getcwd(), '/qfq')) . '/qfq/' . $filename;
if (isset($filename[0]) && $filename[0] != '/') {
if (strpos(getcwd(), 'qfq/' . API_DIR_EXT) !== false) {
return ('../../../../../' . $filename);
}
}
return $filename;
}
/**
......
Supports Markdown
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