tags 308114 + patch pending thanks * Martin Michlmayr <[EMAIL PROTECTED]> [2005-05-08 00:38]: > bins starts converting all images it finds and then generates the > templates. While this is logical, it's strange that the images are > converted even though bins later fails because the templates aren't > available. It would be nice if bins would check if the templates > exist before converting the images, or at least fall back to the > default style if the specified style doesn't exist.
Below is a patch for this. > 696:[EMAIL PROTECTED]: ~] bins -s dsdasdas a b > ... > Martin's photo gallery > > Martin's photo gallery > London > > Image dscf0001.jpg > Image dscf0006.jpg > Error: cannot find HTML template details.html --- /usr/bin/bins 2005-10-15 16:02:07.000000000 +0100 +++ bins 2005-11-04 18:04:45.000000000 +0000 @@ -1092,6 +1092,11 @@ exit 1; } + if (! scalar templateDirs($configHash)) { + print "Cannot find template style '", $configHash->{templateStyle}, "'\n"; + exit 1; + } + $picdir = $ARGV[0]; $albumdir = $ARGV[1]; -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]