maj version dans config.xml
[mtweb] / mw / app / data / modules / share / mw_data_images.php
index c540972..8c59b99 100644 (file)
@@ -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