Skip to content

Commit

Permalink
Merge pull request #1028 from SlovakNationalGallery/fix/mb-ucfirst
Browse files Browse the repository at this point in the history
Fix already defined function
  • Loading branch information
rastislav-chynoransky authored Nov 9, 2024
2 parents 20da583 + 421977f commit 1465aff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Helpers/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ function utrans($str)
return mb_ucfirst(trans($str));
}

function mb_ucfirst($str) {
$str = mb_strtoupper(mb_substr($str, 0, 1)) . mb_substr($str, 1);
return $str;
if (!function_exists('mb_ucfirst')) {
function mb_ucfirst($str) {
$str = mb_strtoupper(mb_substr($str, 0, 1)) . mb_substr($str, 1);
return $str;
}
}

function isValidURL($url)
Expand Down

0 comments on commit 1465aff

Please sign in to comment.