1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/10824] Switch to new namespace for json sanitizer

PHPBB3-10824
This commit is contained in:
Marc Alexander
2020-01-20 20:09:10 +01:00
parent 27c69c2740
commit 93949d1be4
6 changed files with 26 additions and 25 deletions

View File

@@ -13,7 +13,7 @@
namespace phpbb\language;
use phpbb\json_sanitizer;
use phpbb\json\sanitizer;
use Symfony\Component\Finder\Finder;
/**
@@ -55,7 +55,7 @@ class language_file_helper
foreach ($finder as $file)
{
$json = $file->getContents();
$data = json_sanitizer::decode($json);
$data = sanitizer::decode($json);
$available_languages[] = $this->get_language_data_from_json($data);
}
@@ -72,7 +72,7 @@ class language_file_helper
public function get_language_data_from_composer_file($path)
{
$json_data = file_get_contents($path);
return $this->get_language_data_from_json(json_sanitizer::decode($json_data));
return $this->get_language_data_from_json(sanitizer::decode($json_data));
}
/**