Backport 1168 and 1169
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 25 Nov 2006 23:34:21 +0000 (23:34 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 25 Nov 2006 23:34:21 +0000 (23:34 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1172 839d8a87-29fc-0310-9880-83ba4fa771e5

include/validations.inc.php
include/validations/photos.inc.php

index 6d42bc2..4003a56 100644 (file)
@@ -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
index fa0f4b3..a9d6028 100644 (file)
@@ -45,6 +45,7 @@ class PhotoReq extends Validate
     function PhotoReq($_uid, $_data, $_stamp=0)
     {
         $this->Validate($_uid, true, 'photo', $_stamp);
+        $this->_get_image($_data);
     }
 
     // }}}