diff --git a/core/class/autoload.php b/core/class/autoload.php index 12f275ae..6dc44a2c 100644 --- a/core/class/autoload.php +++ b/core/class/autoload.php @@ -12,6 +12,5 @@ class autoload { require_once 'core/class/phpmailer/SMTP.class.php'; require_once 'core/class/jsondb/Dot.class.php'; require_once 'core/class/jsondb/JsonDb.class.php'; - require_once 'core/class/strftime/php-8.1-strftime.class.php'; } } \ No newline at end of file diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 8156bd4c..134c9583 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -39,6 +39,7 @@ class helper */ public static function dateUTF8($format, $date) { + require_once 'core/class/strftime/php-8.1-strftime.class.php'; return mb_detect_encoding(\PHP81_BC\strftime($format, $date), 'UTF-8', true) ? \PHP81_BC\strftime($format, $date) : utf8_encode(\PHP81_BC\strftime($format, $date)); diff --git a/core/core.php b/core/core.php index 2d929dae..9c2aef60 100644 --- a/core/core.php +++ b/core/core.php @@ -1024,7 +1024,7 @@ class common case 'gif': $source_image = imagecreatefromgif($src); break; - case 'webp' : + case 'webp': $source_image = imagecreatefromwebp($src); break; } @@ -1049,7 +1049,7 @@ class common case 'image/gif': return (imagegif($virtual_image, $dest)); break; - case 'webp' : + case 'webp': $source_image = imagecreatefromwebp($src); break; } @@ -1260,7 +1260,7 @@ class common ) { $item .= '