From: x2003bruneau Date: Sat, 25 Nov 2006 23:34:21 +0000 (+0000) Subject: Backport 1168 and 1169 X-Git-Tag: xorg/0.9.13~269 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fdc77a174d34654165068a763cebcb515cd371c2;p=platal.git Backport 1168 and 1169 git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1172 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/validations.inc.php b/include/validations.inc.php index 6d42bc2..4003a56 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -21,7 +21,7 @@ define('SIZE_MAX', 32768); -__autoload('XDB'); +require_once dirname(__FILE__) . '/../classes/xdb.php'; /** * Iterator class, that lists objects through the database diff --git a/include/validations/photos.inc.php b/include/validations/photos.inc.php index fa0f4b3..a9d6028 100644 --- a/include/validations/photos.inc.php +++ b/include/validations/photos.inc.php @@ -45,6 +45,7 @@ class PhotoReq extends Validate function PhotoReq($_uid, $_data, $_stamp=0) { $this->Validate($_uid, true, 'photo', $_stamp); + $this->_get_image($_data); } // }}}