mirror of
https://github.com/avecms/AVE.cms.git
synced 2025-09-18 20:49:32 +00:00
Fixes
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user