diff --git a/src/View/Debugbar/AntlersProfiler/PerformanceCollector.php b/src/View/Debugbar/AntlersProfiler/PerformanceCollector.php index 14136b296c..edb91643e4 100644 --- a/src/View/Debugbar/AntlersProfiler/PerformanceCollector.php +++ b/src/View/Debugbar/AntlersProfiler/PerformanceCollector.php @@ -75,6 +75,10 @@ protected function getEditorHref($filePath, $line) */ protected function replaceSitesPath($filePath) { + if (! config('debugbar.remote_sites_path')) { + return $filePath; + } + return str_replace(config('debugbar.remote_sites_path'), config('debugbar.local_sites_path'), $filePath); }