- $file = strip_tags($this->style('', $file));
- if ($fileLinkFormat) {
- $link = strtr(strip_tags($this->style('', $fileLinkFormat)), array('%f' => $file, '%l' => (int) $line));
- $name = sprintf('<a href="%s" title="%s">'.$s.'</a>', $link, $file, $name);
+ if ($fmt && $link = is_string($fmt) ? strtr($fmt, array('%f' => $file, '%l' => $line)) : $fmt->format($file, $line)) {
+ $name = sprintf('<a href="%s" title="%s">'.$s.'</a>', strip_tags($this->style('', $link)), $f, $name);