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\db\migration\data\v310;
use phpbb\json_sanitizer;
use phpbb\json\sanitizer;
class style_update_p1 extends \phpbb\db\migration\migration
{
@@ -85,7 +85,7 @@ class style_update_p1 extends \phpbb\db\migration\migration
else if (file_exists($fileinfo->getPathname() . '/composer.json'))
{
$json = file_get_contents($fileinfo->getPathname() . '/composer.json');
$style_data = json_sanitizer::decode($json);
$style_data = sanitizer::decode($json);
if (isset($style_data['extra']['phpbb-version']) && version_compare($style_data['extra']['phpbb-version'], '3.3.0-dev', '>='))
{
// 3.3 style