Version Description
= [5.0] =
Please see the changelog for the complete list of changes in this release. Previous versions of The Events Calendar are not cross-compatible with 5.X add-ons. Remember to always make a backup of your database and files before updating!
Download this release
Release Info
Developer | bordoni |
Plugin | The Events Calendar |
Version | 5.3.2.1 |
Comparing to | |
See all releases |
Code changes from version 5.3.2 to 5.3.2.1
- common/vendor/autoload.php +1 -1
- common/vendor/autoload_52.php +1 -1
- common/vendor/composer/autoload_real.php +4 -4
- common/vendor/composer/autoload_real_52.php +3 -3
- common/vendor/composer/autoload_static.php +5 -5
- lang/the-events-calendar-ar.mo +0 -0
- lang/the-events-calendar-bg_BG.mo +0 -0
- lang/the-events-calendar-ca.mo +0 -0
- lang/the-events-calendar-cs_CZ.mo +0 -0
- lang/the-events-calendar-da_DK.mo +0 -0
- lang/the-events-calendar-de_CH.mo +0 -0
- lang/the-events-calendar-de_DE.mo +0 -0
- lang/the-events-calendar-el.mo +0 -0
- lang/the-events-calendar-en_AU.mo +0 -0
- lang/the-events-calendar-en_CA.mo +0 -0
- lang/the-events-calendar-en_GB.mo +0 -0
- lang/the-events-calendar-en_NZ.mo +0 -0
- lang/the-events-calendar-en_ZA.mo +0 -0
- lang/the-events-calendar-es_CO.mo +0 -0
- lang/the-events-calendar-es_EC.mo +0 -0
- lang/the-events-calendar-es_ES.mo +0 -0
- lang/the-events-calendar-es_MX.mo +0 -0
- lang/the-events-calendar-es_VE.mo +0 -0
- lang/the-events-calendar-eu.mo +0 -0
- lang/the-events-calendar-fi.mo +0 -0
- lang/the-events-calendar-fr_CA.mo +0 -0
- lang/the-events-calendar-fr_FR.mo +0 -0
- lang/the-events-calendar-gl_ES.mo +0 -0
- lang/the-events-calendar-he_IL.mo +0 -0
- lang/the-events-calendar-hu_HU.mo +0 -0
- lang/the-events-calendar-it_IT.mo +0 -0
- lang/the-events-calendar-ja.mo +0 -0
- lang/the-events-calendar-nb_NO.mo +0 -0
- lang/the-events-calendar-nl_NL.mo +0 -0
- lang/the-events-calendar-nn_NO.mo +0 -0
- lang/the-events-calendar-pl_PL.mo +0 -0
- lang/the-events-calendar-pt_BR.mo +0 -0
- lang/the-events-calendar-pt_PT.mo +0 -0
- lang/the-events-calendar-ro_RO.mo +0 -0
- lang/the-events-calendar-ru_RU.mo +0 -0
- lang/the-events-calendar-sk_SK.mo +0 -0
- lang/the-events-calendar-sl_SI.mo +0 -0
- lang/the-events-calendar-sv_SE.mo +0 -0
- lang/the-events-calendar-tr_TR.mo +0 -0
- lang/the-events-calendar-uk.mo +0 -0
- lang/the-events-calendar-zh_CN.mo +0 -0
- readme.txt +6 -1
- src/Tribe/Aggregator/Record/Queue_Realtime.php +0 -10
- src/Tribe/Main.php +1 -1
- the-events-calendar.php +2 -1
- vendor/ForceUTF8/Encoding.php +31 -33
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
common/vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit96957a52e6395cbaa48cb183bcd70608::getLoader();
|
common/vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitc600dc0a55c504a3f13b612c3076bf07::getLoader();
|
common/vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit45c81d59b39722d1cdc7e59edac36fcd
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit96957a52e6395cbaa48cb183bcd70608
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit96957a52e6395cbaa48cb183bcd70608', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit96957a52e6395cbaa48cb183bcd70608', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit96957a52e6395cbaa48cb183bcd70608::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
common/vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit657b115028802f3ba1e18e0babae37b9 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInitc600dc0a55c504a3f13b612c3076bf07 {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitc600dc0a55c504a3f13b612c3076bf07', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitc600dc0a55c504a3f13b612c3076bf07', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
common/vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
@@ -228,10 +228,10 @@ class ComposerStaticInit45c81d59b39722d1cdc7e59edac36fcd
|
|
228 |
public static function getInitializer(ClassLoader $loader)
|
229 |
{
|
230 |
return \Closure::bind(function () use ($loader) {
|
231 |
-
$loader->prefixLengthsPsr4 =
|
232 |
-
$loader->prefixDirsPsr4 =
|
233 |
-
$loader->prefixesPsr0 =
|
234 |
-
$loader->classMap =
|
235 |
|
236 |
}, null, ClassLoader::class);
|
237 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit96957a52e6395cbaa48cb183bcd70608
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
228 |
public static function getInitializer(ClassLoader $loader)
|
229 |
{
|
230 |
return \Closure::bind(function () use ($loader) {
|
231 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit96957a52e6395cbaa48cb183bcd70608::$prefixLengthsPsr4;
|
232 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit96957a52e6395cbaa48cb183bcd70608::$prefixDirsPsr4;
|
233 |
+
$loader->prefixesPsr0 = ComposerStaticInit96957a52e6395cbaa48cb183bcd70608::$prefixesPsr0;
|
234 |
+
$loader->classMap = ComposerStaticInit96957a52e6395cbaa48cb183bcd70608::$classMap;
|
235 |
|
236 |
}, null, ClassLoader::class);
|
237 |
}
|
lang/the-events-calendar-ar.mo
CHANGED
Binary file
|
lang/the-events-calendar-bg_BG.mo
CHANGED
Binary file
|
lang/the-events-calendar-ca.mo
CHANGED
Binary file
|
lang/the-events-calendar-cs_CZ.mo
CHANGED
Binary file
|
lang/the-events-calendar-da_DK.mo
CHANGED
Binary file
|
lang/the-events-calendar-de_CH.mo
CHANGED
Binary file
|
lang/the-events-calendar-de_DE.mo
CHANGED
Binary file
|
lang/the-events-calendar-el.mo
CHANGED
Binary file
|
lang/the-events-calendar-en_AU.mo
CHANGED
Binary file
|
lang/the-events-calendar-en_CA.mo
CHANGED
Binary file
|
lang/the-events-calendar-en_GB.mo
CHANGED
Binary file
|
lang/the-events-calendar-en_NZ.mo
CHANGED
Binary file
|
lang/the-events-calendar-en_ZA.mo
CHANGED
Binary file
|
lang/the-events-calendar-es_CO.mo
CHANGED
Binary file
|
lang/the-events-calendar-es_EC.mo
ADDED
Binary file
|
lang/the-events-calendar-es_ES.mo
CHANGED
Binary file
|
lang/the-events-calendar-es_MX.mo
CHANGED
Binary file
|
lang/the-events-calendar-es_VE.mo
CHANGED
Binary file
|
lang/the-events-calendar-eu.mo
CHANGED
Binary file
|
lang/the-events-calendar-fi.mo
CHANGED
Binary file
|
lang/the-events-calendar-fr_CA.mo
CHANGED
Binary file
|
lang/the-events-calendar-fr_FR.mo
CHANGED
Binary file
|
lang/the-events-calendar-gl_ES.mo
CHANGED
Binary file
|
lang/the-events-calendar-he_IL.mo
CHANGED
Binary file
|
lang/the-events-calendar-hu_HU.mo
CHANGED
Binary file
|
lang/the-events-calendar-it_IT.mo
CHANGED
Binary file
|
lang/the-events-calendar-ja.mo
CHANGED
Binary file
|
lang/the-events-calendar-nb_NO.mo
CHANGED
Binary file
|
lang/the-events-calendar-nl_NL.mo
CHANGED
Binary file
|
lang/the-events-calendar-nn_NO.mo
CHANGED
Binary file
|
lang/the-events-calendar-pl_PL.mo
CHANGED
Binary file
|
lang/the-events-calendar-pt_BR.mo
CHANGED
Binary file
|
lang/the-events-calendar-pt_PT.mo
CHANGED
Binary file
|
lang/the-events-calendar-ro_RO.mo
CHANGED
Binary file
|
lang/the-events-calendar-ru_RU.mo
CHANGED
Binary file
|
lang/the-events-calendar-sk_SK.mo
CHANGED
Binary file
|
lang/the-events-calendar-sl_SI.mo
CHANGED
Binary file
|
lang/the-events-calendar-sv_SE.mo
CHANGED
Binary file
|
lang/the-events-calendar-tr_TR.mo
CHANGED
Binary file
|
lang/the-events-calendar-uk.mo
CHANGED
Binary file
|
lang/the-events-calendar-zh_CN.mo
CHANGED
Binary file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: theeventscalendar, borkweb, bordoni, brianjessee, aguseo, camwynsp
|
|
4 |
Tags: events, calendar, event, schedule, organizer
|
5 |
Donate link: https://evnt.is/29
|
6 |
Requires at least: 4.9.14
|
7 |
-
Stable tag: 5.3.2
|
8 |
Tested up to: 5.6.1
|
9 |
Requires PHP: 5.6
|
10 |
License: GPLv2 or later
|
@@ -222,6 +222,11 @@ Remember to always make a backup of your database and files before updating!
|
|
222 |
|
223 |
== Changelog ==
|
224 |
|
|
|
|
|
|
|
|
|
|
|
225 |
= [5.3.2] 2021-01-28 =
|
226 |
|
227 |
* Feature - Add customizer support for custom location pins on single events when Views V2 is active. [TEC-3276]
|
4 |
Tags: events, calendar, event, schedule, organizer
|
5 |
Donate link: https://evnt.is/29
|
6 |
Requires at least: 4.9.14
|
7 |
+
Stable tag: 5.3.2.1
|
8 |
Tested up to: 5.6.1
|
9 |
Requires PHP: 5.6
|
10 |
License: GPLv2 or later
|
222 |
|
223 |
== Changelog ==
|
224 |
|
225 |
+
= [5.3.2.1] 2021-02-02 =
|
226 |
+
|
227 |
+
* Fix - Prevent Event Aggregator ASYNC requests from failing to import after 5 Events, Venues, RSVP, Tickets and/or Organizers. [TEC-3769]
|
228 |
+
* Fix - Update compatibility with PHP 7.4 for ForceUTF8 vendor module. [TEC-3769]
|
229 |
+
|
230 |
= [5.3.2] 2021-01-28 =
|
231 |
|
232 |
* Feature - Add customizer support for custom location pins on single events when Views V2 is active. [TEC-3276]
|
src/Tribe/Aggregator/Record/Queue_Realtime.php
CHANGED
@@ -122,16 +122,6 @@ class Tribe__Events__Aggregator__Record__Queue_Realtime {
|
|
122 |
* @return array<string, mixed> An array used to construct the heart beat response.
|
123 |
*/
|
124 |
public function receive_heartbeat( $response, $data ) {
|
125 |
-
// Makes sure we don't throw warnings when $response is not correct.
|
126 |
-
if ( empty( $response ) || ! is_array( $response ) ) {
|
127 |
-
return $response;
|
128 |
-
}
|
129 |
-
|
130 |
-
// Makes sure we don't throw warnings when $data is not correct.
|
131 |
-
if ( empty( $data ) || ! is_array( $data ) ) {
|
132 |
-
return $response;
|
133 |
-
}
|
134 |
-
|
135 |
if ( empty( $data['ea_record'] ) ) {
|
136 |
return $response;
|
137 |
}
|
122 |
* @return array<string, mixed> An array used to construct the heart beat response.
|
123 |
*/
|
124 |
public function receive_heartbeat( $response, $data ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
if ( empty( $data['ea_record'] ) ) {
|
126 |
return $response;
|
127 |
}
|
src/Tribe/Main.php
CHANGED
@@ -32,7 +32,7 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
32 |
const VENUE_POST_TYPE = 'tribe_venue';
|
33 |
const ORGANIZER_POST_TYPE = 'tribe_organizer';
|
34 |
|
35 |
-
const VERSION = '5.3.2';
|
36 |
|
37 |
/**
|
38 |
* Min Pro Addon
|
32 |
const VENUE_POST_TYPE = 'tribe_venue';
|
33 |
const ORGANIZER_POST_TYPE = 'tribe_organizer';
|
34 |
|
35 |
+
const VERSION = '5.3.2.1';
|
36 |
|
37 |
/**
|
38 |
* Min Pro Addon
|
the-events-calendar.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: The Events Calendar
|
4 |
* Description: The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.
|
5 |
-
* Version: 5.3.2
|
6 |
* Author: The Events Calendar
|
7 |
* Author URI: https://evnt.is/1x
|
8 |
* Text Domain: the-events-calendar
|
@@ -10,6 +10,7 @@
|
|
10 |
*
|
11 |
* @package TEC
|
12 |
*/
|
|
|
13 |
/**
|
14 |
* Copyright 2009-2012 by Modern Tribe Inc and the contributors
|
15 |
*
|
2 |
/**
|
3 |
* Plugin Name: The Events Calendar
|
4 |
* Description: The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.
|
5 |
+
* Version: 5.3.2.1
|
6 |
* Author: The Events Calendar
|
7 |
* Author URI: https://evnt.is/1x
|
8 |
* Text Domain: the-events-calendar
|
10 |
*
|
11 |
* @package TEC
|
12 |
*/
|
13 |
+
|
14 |
/**
|
15 |
* Copyright 2009-2012 by Modern Tribe Inc and the contributors
|
16 |
*
|
vendor/ForceUTF8/Encoding.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
Copyright (c) 2008
|
4 |
All rights reserved.
|
5 |
|
6 |
Redistribution and use in source and binary forms, with or without
|
@@ -29,7 +29,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
29 |
*/
|
30 |
|
31 |
/**
|
32 |
-
* @author "
|
33 |
* @package Encoding
|
34 |
* @version 2.0
|
35 |
* @link https://github.com/neitanod/forceutf8
|
@@ -137,34 +137,32 @@ class ForceUTF8__Encoding {
|
|
137 |
"\xc5\xb8" => "\x9f"
|
138 |
);
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
static function toUTF8( $text ) {
|
141 |
-
/**
|
142 |
-
* Function \ForceUTF8\Encoding::toUTF8
|
143 |
-
*
|
144 |
-
* This function leaves UTF8 characters alone, while converting almost all non-UTF8 to UTF8.
|
145 |
-
*
|
146 |
-
* It assumes that the encoding of the original string is either Windows-1252 or ISO 8859-1.
|
147 |
-
*
|
148 |
-
* It may fail to convert characters to UTF-8 if they fall into one of these scenarios:
|
149 |
-
*
|
150 |
-
* 1) when any of these characters: ��������������������������������
|
151 |
-
* are followed by any of these: ("group B")
|
152 |
-
* �������������������������������
|
153 |
-
* For example: %ABREPRESENT%C9%BB. �REPRESENTɻ
|
154 |
-
* The "�" (%AB) character will be converted, but the "�" followed by "�" (%C9%BB)
|
155 |
-
* is also a valid unicode character, and will be left unchanged.
|
156 |
-
*
|
157 |
-
* 2) when any of these: ���������������� are followed by TWO chars from group B,
|
158 |
-
* 3) when any of these: ���� are followed by THREE chars from group B.
|
159 |
-
*
|
160 |
-
* @name toUTF8
|
161 |
-
*
|
162 |
-
* @param string $text Any string.
|
163 |
-
*
|
164 |
-
* @return string The same string, UTF8 encoded
|
165 |
-
*
|
166 |
-
*/
|
167 |
-
|
168 |
if ( is_array( $text ) ) {
|
169 |
foreach ( $text as $k => $v ) {
|
170 |
$text[ $k ] = self::toUTF8( $v );
|
@@ -181,11 +179,11 @@ class ForceUTF8__Encoding {
|
|
181 |
|
182 |
$buf = "";
|
183 |
for ( $i = 0; $i < $max; $i ++ ) {
|
184 |
-
$c1 = $text
|
185 |
if ( $c1 >= "\xc0" ) { //Should be converted to UTF8, if it's not UTF8 already
|
186 |
-
$c2 = $i + 1 >= $max ? "\x00" : $text
|
187 |
-
$c3 = $i + 2 >= $max ? "\x00" : $text
|
188 |
-
$c4 = $i + 3 >= $max ? "\x00" : $text
|
189 |
if ( $c1 >= "\xc0" & $c1 <= "\xdf" ) { //looks like 2 bytes UTF8
|
190 |
if ( $c2 >= "\x80" && $c2 <= "\xbf" ) { //yeah, almost sure it's UTF8 already
|
191 |
$buf .= $c1 . $c2;
|
1 |
<?php
|
2 |
/*
|
3 |
+
Copyright (c) 2008 Sebastián Grignoli
|
4 |
All rights reserved.
|
5 |
|
6 |
Redistribution and use in source and binary forms, with or without
|
29 |
*/
|
30 |
|
31 |
/**
|
32 |
+
* @author "Sebastián Grignoli" <grignoli@gmail.com>
|
33 |
* @package Encoding
|
34 |
* @version 2.0
|
35 |
* @link https://github.com/neitanod/forceutf8
|
137 |
"\xc5\xb8" => "\x9f"
|
138 |
);
|
139 |
|
140 |
+
/**
|
141 |
+
* Function \ForceUTF8\Encoding::toUTF8
|
142 |
+
*
|
143 |
+
* This function leaves UTF8 characters alone, while converting almost all non-UTF8 to UTF8.
|
144 |
+
*
|
145 |
+
* It assumes that the encoding of the original string is either Windows-1252 or ISO 8859-1.
|
146 |
+
*
|
147 |
+
* It may fail to convert characters to UTF-8 if they fall into one of these scenarios:\
|
148 |
+
*
|
149 |
+
* 1) when any of these characters: ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß
|
150 |
+
* are followed by any of these: ("group B")
|
151 |
+
* ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶•¸¹º»¼½¾¿
|
152 |
+
* For example: %ABREPRESENT%C9%BB. «REPRESENTÉ»
|
153 |
+
* The "«" (%AB) character will be converted, but the "É" followed by "»" (%C9%BB)
|
154 |
+
* is also a valid unicode character, and will be left unchanged.\
|
155 |
+
*
|
156 |
+
* 2) when any of these: àáâãäåæçèéêëìíîï are followed by TWO chars from group B,
|
157 |
+
* 3) when any of these: ðñòó are followed by THREE chars from group B.
|
158 |
+
*
|
159 |
+
* @name toUTF8
|
160 |
+
*
|
161 |
+
* @param string $text Any string.
|
162 |
+
*
|
163 |
+
* @return string The same string, UTF8 encoded
|
164 |
+
*/
|
165 |
static function toUTF8( $text ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
if ( is_array( $text ) ) {
|
167 |
foreach ( $text as $k => $v ) {
|
168 |
$text[ $k ] = self::toUTF8( $v );
|
179 |
|
180 |
$buf = "";
|
181 |
for ( $i = 0; $i < $max; $i ++ ) {
|
182 |
+
$c1 = $text[ $i ];
|
183 |
if ( $c1 >= "\xc0" ) { //Should be converted to UTF8, if it's not UTF8 already
|
184 |
+
$c2 = $i + 1 >= $max ? "\x00" : $text[ $i + 1 ];
|
185 |
+
$c3 = $i + 2 >= $max ? "\x00" : $text[ $i + 2 ];
|
186 |
+
$c4 = $i + 3 >= $max ? "\x00" : $text[ $i + 3 ];
|
187 |
if ( $c1 >= "\xc0" & $c1 <= "\xdf" ) { //looks like 2 bytes UTF8
|
188 |
if ( $c2 >= "\x80" && $c2 <= "\xbf" ) { //yeah, almost sure it's UTF8 already
|
189 |
$buf .= $c1 . $c2;
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit710a111204afa2a49c463b5af6f756c4::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit22574101eda770d04055aa18d08bcb02
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit710a111204afa2a49c463b5af6f756c4
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit710a111204afa2a49c463b5af6f756c4', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit710a111204afa2a49c463b5af6f756c4', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit710a111204afa2a49c463b5af6f756c4::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
@@ -96,9 +96,9 @@ class ComposerStaticInit22574101eda770d04055aa18d08bcb02
|
|
96 |
public static function getInitializer(ClassLoader $loader)
|
97 |
{
|
98 |
return \Closure::bind(function () use ($loader) {
|
99 |
-
$loader->prefixLengthsPsr4 =
|
100 |
-
$loader->prefixDirsPsr4 =
|
101 |
-
$loader->classMap =
|
102 |
|
103 |
}, null, ClassLoader::class);
|
104 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit710a111204afa2a49c463b5af6f756c4
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
96 |
public static function getInitializer(ClassLoader $loader)
|
97 |
{
|
98 |
return \Closure::bind(function () use ($loader) {
|
99 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit710a111204afa2a49c463b5af6f756c4::$prefixLengthsPsr4;
|
100 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit710a111204afa2a49c463b5af6f756c4::$prefixDirsPsr4;
|
101 |
+
$loader->classMap = ComposerStaticInit710a111204afa2a49c463b5af6f756c4::$classMap;
|
102 |
|
103 |
}, null, ClassLoader::class);
|
104 |
}
|