merged branch merk/patch-4 (PR #5738)
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #5738). Commits ------- 894377f Fix incorrect variable in FileProfilerStorage Discussion ---------- [HttpKernel] [Profiler] Fix incorrect variable use in FileProfilerStorage Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: ~ Todo: ~ License of the code: MIT Documentation PR: ~ --------------------------------------------------------------------------- by pborreli at 2012-10-13T06:58:57Z 👍 --------------------------------------------------------------------------- by sstok at 2012-10-13T09:20:33Z This should be done 2.1 as the bug also existing there.
This commit is contained in:
commit
e5ac5fb11a
@ -34,7 +34,7 @@ class FileProfilerStorage implements ProfilerStorageInterface
|
||||
public function __construct($dsn)
|
||||
{
|
||||
if (0 !== strpos($dsn, 'file:')) {
|
||||
throw new \RuntimeException(sprintf('Please check your configuration. You are trying to use FileStorage with an invalid dsn "%s". The expected format is "file:/path/to/the/storage/folder".', $this->dsn));
|
||||
throw new \RuntimeException(sprintf('Please check your configuration. You are trying to use FileStorage with an invalid dsn "%s". The expected format is "file:/path/to/the/storage/folder".', $dsn));
|
||||
}
|
||||
$this->folder = substr($dsn, 5);
|
||||
|
||||
|
Reference in New Issue
Block a user