X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fapp%2Fdata%2Fmodules%2Fshare%2Fmw_data_images.php;h=8c59b999970826b9c9d7de90910a7bdd4ba354d9;hb=HEAD;hp=c540972855e99010e9425167bb6c46eb6a5b74fa;hpb=36ed114046cbe3d72a3589230e9f306a54fcc79d;p=mtweb diff --git a/mw/app/data/modules/share/mw_data_images.php b/mw/app/data/modules/share/mw_data_images.php index c540972..8c59b99 100644 --- a/mw/app/data/modules/share/mw_data_images.php +++ b/mw/app/data/modules/share/mw_data_images.php @@ -2,8 +2,8 @@ class mw_data_images extends mw_data{ - function img_size($file, $max_width, $max_height){ - $img_infos = getimagesize($file); + public function img_size($file, $max_width, $max_height){ + $img_infos = @getimagesize($file); $img_size = array(); if($img_infos){ if($img_infos[0] > $max_width || $img_infos[1] > $max_height){ @@ -23,5 +23,3 @@ } } - -?> \ No newline at end of file