mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11949] Do not prepend leading backslash to cache class name
The container seems to prepend the leading \ itself, so we get an InvalidArgumentException with message '"'\\phpbb\\cache\\driver\\file'" is not a valid class name for the "cache.driver" service.' PHPBB3-11949
This commit is contained in:
parent
7344024b10
commit
31e60f0c8d
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class config extends Extension
|
||||||
{
|
{
|
||||||
if (preg_match('#^[a-z]+$#', $acm_type))
|
if (preg_match('#^[a-z]+$#', $acm_type))
|
||||||
{
|
{
|
||||||
return '\\phpbb\cache\driver\\'.$acm_type;
|
return 'phpbb\\cache\\driver\\' . $acm_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $acm_type;
|
return $acm_type;
|
||||||
|
|
Loading…
Add table
Reference in a new issue