Преглед изворни кода

Merge remote branch 'vicb/link_format'

* vicb/link_format:
  [Templating] Fix for getting the file link format from XDebug settings
Fabien Potencier пре 14 година
родитељ
комит
dfbc0a899d
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)
     {
-        $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).'/';
     }