소스 검색

[Templating] Fix for getting the file link format from XDebug settings

Victor Berchet 14 년 전
부모
커밋
170375a946
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Templating/Helper/CodeHelper.php

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Templating/Helper/CodeHelper.php

@@ -31,7 +31,7 @@ class CodeHelper extends Helper
      */
      */
     public function __construct($fileLinkFormat, $rootDir)
     public function __construct($fileLinkFormat, $rootDir)
     {
     {
-        $this->fileLinkFormat = null !== $fileLinkFormat ? $fileLinkFormat : ini_get('xdebug.file_link_format');
+        $this->fileLinkFormat = empty($fileLinkFormat) ? ini_get('xdebug.file_link_format') : $fileLinkFormat;
         $this->rootDir = str_replace('\\', '/', $rootDir).'/';
         $this->rootDir = str_replace('\\', '/', $rootDir).'/';
     }
     }