Commit 8b9ff4fe authored by Marc Egger's avatar 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
...@@ -78,14 +78,7 @@ class Logger { ...@@ -78,14 +78,7 @@ class Logger {
* @return string * @return string
*/ */
private static function relativeToT3Dir($filename) { 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