X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fphotos.inc.php;h=41a29b4ace0293ef7b63bed00f5fac02b1edfbc3;hb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;hp=6d8fcc3edb1a3fa9ba908de12f567a306d4ca665;hpb=5af85e819a8602f6720dff9e2efa6aa02d257d48;p=platal.git diff --git a/include/validations/photos.inc.php b/include/validations/photos.inc.php index 6d8fcc3..41a29b4 100644 --- a/include/validations/photos.inc.php +++ b/include/validations/photos.inc.php @@ -1,6 +1,6 @@ Validate($_uid, true, 'photo', $_stamp); - if (!$this->_get_image($_data)) { - return ($this = null); - } + $this->_get_image($_data); } // }}} @@ -57,8 +55,9 @@ class PhotoReq extends Validate { global $page; + VarStream::init(); + // calcul de la taille de l'image - require_once dirname(__FILE__).'/../../classes/VarStream.php'; $GLOBALS['photoreq'] = $_data; $image_infos = getimagesize('var://photoreq'); unset ($GLOBALS['photoreq']); @@ -116,7 +115,7 @@ class PhotoReq extends Validate function get_request($uid) { - return parent::get_request($uid,'photo'); + return parent::get_typed_request($uid,'photo'); } // }}}