1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-15 21:24:03 +02:00

[ticket/10824] Add missing imports and adjust json sanitizer imports

This way the imports will also be a bit more explicit to the fact
that this is only a json sanitizer.

PHPBB3-10824
This commit is contained in:
Marc Alexander
2021-01-18 21:06:58 +01:00
parent cf8f79356d
commit c93da86f83
5 changed files with 12 additions and 10 deletions

View File

@@ -13,7 +13,7 @@
namespace phpbb\cache;
use phpbb\json\sanitizer;
use phpbb\json\sanitizer as json_sanitizer;
/**
* Class for grabbing/handling cached entries
@@ -357,7 +357,7 @@ class service
{
// Re-parse cfg file
$json = file_get_contents($filename);
$parsed_array = sanitizer::decode($json);
$parsed_array = json_sanitizer::decode($json);
$parsed_array['filetime'] = @filemtime($filename);
$this->driver->put('_cfg_' . $style['style_path'], $parsed_array);