mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02: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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user