Remove deprecated Patchwork\Utf8

pull/3768/head
Julio 4 years ago
parent 83e8814360
commit d30294da07
  1. 5
      composer.json
  2. 3
      public/main/inc/global.inc.php
  3. 1
      public/main/inc/lib/internationalization.lib.php
  4. 3
      public/main/install/index.php

@ -87,8 +87,8 @@
"laminas/laminas-filter": "~2.9", "laminas/laminas-filter": "~2.9",
"laminas/laminas-permissions-acl": "~2.7", "laminas/laminas-permissions-acl": "~2.7",
"league/csv": "^9.1", "league/csv": "^9.1",
"league/glide-symfony": "^1.0",
"league/flysystem-ziparchive": "*", "league/flysystem-ziparchive": "*",
"league/glide-symfony": "^1.0",
"maennchen/zipstream-php": "^2.0", "maennchen/zipstream-php": "^2.0",
"masterminds/html5": "^2.0", "masterminds/html5": "^2.0",
"michelf/php-markdown": "~1.8", "michelf/php-markdown": "~1.8",
@ -98,7 +98,6 @@
"oneup/uploader-bundle": "~3.0", "oneup/uploader-bundle": "~3.0",
"pagerfanta/pagerfanta": "~2.0", "pagerfanta/pagerfanta": "~2.0",
"paragonie/random-lib": "~2.0", "paragonie/random-lib": "~2.0",
"patchwork/utf8": "~1.3",
"php-ffmpeg/php-ffmpeg": "~0.14", "php-ffmpeg/php-ffmpeg": "~0.14",
"phpoffice/phpspreadsheet": "~1.9", "phpoffice/phpspreadsheet": "~1.9",
"phpoffice/phpword": "~0.16", "phpoffice/phpword": "~0.16",
@ -136,7 +135,7 @@
"symfony/web-link": "^5.0", "symfony/web-link": "^5.0",
"symfony/webpack-encore-bundle": "^1.7", "symfony/webpack-encore-bundle": "^1.7",
"symfony/yaml": "^5.0", "symfony/yaml": "^5.0",
"symfonycasts/reset-password-bundle": "^1.1", "symfonycasts/reset-password-bundle": "^1.3",
"szymach/c-pchart": "^3.0", "szymach/c-pchart": "^3.0",
"tgalopin/html-sanitizer-bundle": "^1.1", "tgalopin/html-sanitizer-bundle": "^1.1",
"twig/intl-extra": "^3.0", "twig/intl-extra": "^3.0",

@ -3,7 +3,6 @@
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
use Chamilo\CoreBundle\Framework\Container; use Chamilo\CoreBundle\Framework\Container;
use Patchwork\Utf8\Bootup;
use Symfony\Component\Dotenv\Dotenv; use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\ErrorHandler\Debug; use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
@ -97,8 +96,6 @@ try {
// src/CoreBundle/EventListener/LegacyListener.php // src/CoreBundle/EventListener/LegacyListener.php
// This is called when when doing the $kernel->handle // This is called when when doing the $kernel->handle
$charset = 'UTF-8'; $charset = 'UTF-8';
// Enables the portability layer and configures PHP for UTF-8
Bootup::initAll();
ini_set('log_errors', '1'); ini_set('log_errors', '1');
$this_section = SECTION_GLOBAL; $this_section = SECTION_GLOBAL;
//Default quota for the course documents folder //Default quota for the course documents folder

@ -4,7 +4,6 @@
use Chamilo\CoreBundle\Framework\Container; use Chamilo\CoreBundle\Framework\Container;
use ChamiloSession as Session; use ChamiloSession as Session;
use Patchwork\Utf8;
use Westsworld\TimeAgo; use Westsworld\TimeAgo;
/** /**

@ -130,9 +130,6 @@ $session_lifetime = 360000;
$installLanguage = ''; $installLanguage = '';
$installationGuideLink = '../../documentation/installation_guide.html'; $installationGuideLink = '../../documentation/installation_guide.html';
// Enables the portability layer and configures PHP for UTF-8
\Patchwork\Utf8\Bootup::initAll();
// Setting the error reporting levels. // Setting the error reporting levels.
error_reporting(E_ALL); error_reporting(E_ALL);

Loading…
Cancel
Save