mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-16 23:00:51 +03:00
Исправление проблемы загрузки изображений в фотосет при включенной директиве "open_basedir" на хостинге.
http://livestreet.ru/blog/tips_and_tricks/16236.html
This commit is contained in:
parent
37f632232e
commit
fda89a9d1f
|
@ -270,7 +270,7 @@ class ActionPhotoset extends Action {
|
|||
/**
|
||||
* Максимальный размер фото
|
||||
*/
|
||||
if (filesize($_FILES['Filedata']['tmp_name']) > Config::Get('module.topic.photoset.photo_max_size')*1024) {
|
||||
if ($_FILES['Filedata']['size'] > Config::Get('module.topic.photoset.photo_max_size')*1024) {
|
||||
$this->Message_AddError($this->Lang_Get('topic_photoset_error_bad_filesize', array('MAX' => Config::Get('module.topic.photoset.photo_max_size'))), $this->Lang_Get('error'));
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue