Whenever I try to upload an image I get the follwing error:
Notice: Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' in /mnt/webu/c3/36/54636236/htdocs/admin/controller/common/filemanager.php on line 37Warning: glob() expects parameter 2 to be long, string given in /mnt/webu/c3/36/54636236/htdocs/admin/controller/common/filemanager.php on line 37
Hope anyone can help thanks in advance
The GLOB_BRACE flag is not available on some non GNU systems, like Solaris or AIX.
The code
should probably be replaced with something like
The code
Code: Select all
$files = glob($directory . '/' . $filter_name . '*.{jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF}', GLOB_BRACE);
Code: Select all
$files = array_merge(
glob($directory . '/' . $filter_name . '*.jpg'),
glob($directory . '/' . $filter_name . '*.jpeg'),
glob($directory . '/' . $filter_name . '*.png'),
glob($directory . '/' . $filter_name . '*.gif'),
glob($directory . '/' . $filter_name . '*.JPG'),
glob($directory . '/' . $filter_name . '*.JPEG'),
glob($directory . '/' . $filter_name . '*.PNG'),
glob($directory . '/' . $filter_name . '*.GIF')
);
Who is online
Users browsing this forum: No registered users and 73 guests