X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvalidations%2Fphotos.inc.php;h=41a29b4ace0293ef7b63bed00f5fac02b1edfbc3;hb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;hp=3c7c149057a1cf6a8bca5af83f0a9edfa26fd018;hpb=42a50827dc2ac2b13ddaf77ea16c0989cd8b960d;p=platal.git diff --git a/include/validations/photos.inc.php b/include/validations/photos.inc.php index 3c7c149..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'); } // }}}