This commit is contained in:
2020-07-10 12:01:40 +03:00
parent 468b00ac86
commit e97d460608
4 changed files with 12 additions and 24 deletions
fields
code
image_multi
image_single
functions

@@ -309,10 +309,12 @@
: '';
}
function getExtension($file)
{
$file = pathinfo($file);
return $file['extension'];
if (! function_exists('getExtension')) {
function getExtension($file)
{
$file = pathinfo($file);
return $file['extension'];
}
}
$valid_formats = array("jpg", "png", "gif", "bmp","jpeg");