X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/6b3b1dd0cad8c4342008f139922e1ed26924bf2a..884d958d4c76bed1625460b591c599094f7690c8:/src/Album.php?ds=sidebyside diff --git a/src/Album.php b/src/Album.php index 5cb8c8d..7ec9ca0 100644 --- a/src/Album.php +++ b/src/Album.php @@ -28,8 +28,6 @@ // $Id$ // -require_once 'PEAR.php'; -require_once 'Util.php'; require_once 'Image/Transform.php'; require_once 'HTML/Template/Sigma.php'; @@ -40,9 +38,9 @@ require_once 'HTML/Template/Sigma.php'; * * @package Hooks * @subpackage Album + * @author Leandro Lucarella * @author Harpo Maxx * @author Groucho Marx - * @author Leandro Lucarella * @version $Rev$ * @since rev 130 * @access public @@ -145,7 +143,7 @@ class Hook_Album { 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, @@ -176,7 +174,7 @@ class Hook_Album { $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)) {