Skip to content

Commit

Permalink
Replace Container->hasParameter() with Container->getParameterBag()->…
Browse files Browse the repository at this point in the history
…has() in ExceptionFormatter
  • Loading branch information
ornicar authored and fabpot committed Jul 9, 2010
1 parent 3eec6b9 commit 4375594
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -152,7 +152,7 @@ protected function formatFile($file, $line, $format = 'html', $text = null)
$text = $file;
}

$linkFormat = $this->container->hasParameter('debug.file_link_format') ? $this->container->getParameter('debug.file_link_format') : ini_get('xdebug.file_link_format');
$linkFormat = $this->container->getParameterBag()->has('debug.file_link_format') ? $this->container->getParameter('debug.file_link_format') : ini_get('xdebug.file_link_format');
if ('html' === $format && $file && $line && $linkFormat) {
$link = strtr($linkFormat, array('%f' => $file, '%l' => $line));
$text = sprintf('<a href="%s" title="Click to open this file" class="file_link">%s</a>', $link, $text);
Expand Down

0 comments on commit 4375594

Please sign in to comment.