mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Remove some references to deprecated functions/methods.
This commit is contained in:
@@ -55,7 +55,7 @@ if (isset($_POST['submitnews_submit']) && $_POST['submitnews_title'] && $_POST['
|
||||
}
|
||||
|
||||
// ==== Process File Upload ====
|
||||
if (FILE_UPLOADS && $_FILES['file_userfile'] && varsettrue($pref['subnews_attach']) && varsettrue($pref['upload_enabled']) && check_class($pref['upload_class']))
|
||||
if (FILE_UPLOADS && $_FILES['file_userfile'] && vartrue($pref['subnews_attach']) && vartrue($pref['upload_enabled']) && check_class($pref['upload_class']))
|
||||
{
|
||||
require_once(e_HANDLER.'upload_handler.php');
|
||||
$uploaded = process_uploaded_files(e_UPLOAD, FALSE, array('file_mask' => 'jpg,gif,png', 'max_file_count' => 1));
|
||||
|
Reference in New Issue
Block a user