mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Issue #2078
This commit is contained in:
@@ -1877,7 +1877,7 @@ class e_db_mysql
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check for the existence of a matching language table when multi-language tables are active.
|
* Check for the existence of a matching language table when multi-language tables are active.
|
||||||
* @param string $table Name of table, without the prefix. or an array of table names.
|
* @param string|array $table Name of table, without the prefix. or an array of table names.
|
||||||
* @access private
|
* @access private
|
||||||
* @return mixed the name of the language table (eg. lan_french_news) or an array of all matching language tables. (with mprefix)
|
* @return mixed the name of the language table (eg. lan_french_news) or an array of all matching language tables. (with mprefix)
|
||||||
*/
|
*/
|
||||||
|
@@ -105,7 +105,7 @@ class submitNews
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ==== Process File Upload ====
|
// ==== Process File Upload ====
|
||||||
if (FILE_UPLOADS && !empty($_FILES['file_userfile']) && vartrue($pref['subnews_attach']) && vartrue($pref['upload_enabled']) && check_class($pref['upload_class']))
|
if (FILE_UPLOADS && !empty($_FILES['file_userfile']['name'][0]) && vartrue($pref['subnews_attach']) && vartrue($pref['upload_enabled']) && check_class($pref['upload_class']))
|
||||||
{
|
{
|
||||||
$uploaded = e107::getFile()->getUploaded(e_UPLOAD, 'unique', array('file_mask' => 'jpg,gif,png', 'max_file_count' => 3));
|
$uploaded = e107::getFile()->getUploaded(e_UPLOAD, 'unique', array('file_mask' => 'jpg,gif,png', 'max_file_count' => 3));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user