mirror of
https://github.com/filp/whoops.git
synced 2026-08-30 12:07:25 +00:00
Merge pull request #270 from staabm/hellip
fixed ellipsis for non-utf8 apps
This commit is contained in:
@@ -58,7 +58,7 @@ class Frame implements Serializable
|
||||
if ($shortened && is_string($file)) {
|
||||
// Replace the part of the path that all frames have in common, and add 'soft hyphens' for smoother line-breaks.
|
||||
$dirname = dirname(dirname(dirname(dirname(dirname(dirname(__DIR__))))));
|
||||
$file = str_replace($dirname, "…", $file);
|
||||
$file = str_replace($dirname, "…", $file);
|
||||
$file = str_replace("/", "/­", $file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user