// $Id$
//
-require_once 'PEAR.php';
-require_once 'Util.php';
require_once 'Image/Transform.php';
require_once 'HTML/Template/Sigma.php';
*
* @package Hooks
* @subpackage Album
+ * @author Leandro Lucarella <luca@lugmen.org.ar>
* @author Harpo Maxx <harpo@lugmen.org.ar>
* @author Groucho Marx <groucho@lugmen.org.ar>
- * @author Leandro Lucarella <luca@lugmen.org.ar>
* @version $Rev$
* @since rev 130
* @access public
function photo($photo) {
list($path, $name, $ext) = File_Util::splitFilename($photo);
$tpl =& new HTML_Template_Sigma('.');
- $tpl->loadTemplateFile('photo.html');
+ $tpl->loadTemplateFile('bife_album_photo.html');
$tpl->setVariable(
array(
'DESC' => $name,
$img->load($photo);
// If image is larger than the maximum size, we resize it.
if ($img->img_x > $size or $img->img_y > $size ) {
- if (!is_dir($path) and !mkdir($path)) {
+ if (!@is_dir($path) and !@mkdir($path)) {
return false;
}
if (PEAR::isError($img)) {