Skip to content

Commit

Permalink
Update CuratorPanel.php
Browse files Browse the repository at this point in the history
Update deprecated `utf8_encode` function to `mb_convert_encoding`
  • Loading branch information
iRaziul authored Dec 17, 2023
1 parent 9db968c commit 888e8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Modals/CuratorPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function addFilesAction(): Action
if (!empty($item['exif'])) {
array_walk_recursive($item['exif'], function (&$entry) {
if (!mb_detect_encoding($entry, 'utf-8', true)) {
$entry = utf8_encode($entry);
$entry = mb_convert_encoding($entry, 'utf-8');
}
});
}
Expand Down

0 comments on commit 888e8f0

Please sign in to comment.