A new hook to include head parts. A new hook to overload thumb function
[bizou.git] / functions.php
index 7c67db7..630be00 100644 (file)
@@ -32,6 +32,7 @@ function getImageLink($imageSimplePath)
 }
 }
 
+if (! function_exists('getPreview')) {
 function getPreview($imgFile, $maxSize = THUMB_SIZE)
 {
        # example: data/myalbum/100.mypic.jpg
@@ -91,6 +92,7 @@ function getPreview($imgFile, $maxSize = THUMB_SIZE)
 
        return $newImgFile;
 }
+}
 
 function getAlbumPreview($dir)
 {