<?php
/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
+ * Copyright (C) 2003-2007 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
function PhotoReq($_uid, $_data, $_stamp=0)
{
$this->Validate($_uid, true, 'photo', $_stamp);
- if (!$this->_get_image($_data)) {
- return ($this = null);
- }
+ $this->_get_image($_data);
}
// }}}
{
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']);
function get_request($uid)
{
- return parent::get_request($uid,'photo');
+ return parent::get_typed_request($uid,'photo');
}
// }}}