Skip to content

Commit dfbc0a8

Browse files
committed
Merge remote branch 'vicb/link_format'
* vicb/link_format: [Templating] Fix for getting the file link format from XDebug settings
2 parents 6daf09a + 170375a commit dfbc0a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Templating/Helper/CodeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CodeHelper extends Helper
3131
*/
3232
public function __construct($fileLinkFormat, $rootDir)
3333
{
34-
$this->fileLinkFormat = null !== $fileLinkFormat ? $fileLinkFormat : ini_get('xdebug.file_link_format');
34+
$this->fileLinkFormat = empty($fileLinkFormat) ? ini_get('xdebug.file_link_format') : $fileLinkFormat;
3535
$this->rootDir = str_replace('\\', '/', $rootDir).'/';
3636
}
3737

0 commit comments

Comments
 (0)