]> git.pld-linux.org Git - packages/perl-Template-Toolkit.git/commitdiff
- fixes one broken test. It's not the most important patch in the world I guess...
authormigo <migo@pld-linux.org>
Mon, 30 Jun 2003 18:23:40 +0000 (18:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Template-Toolkit-image.patch -> 1.1

perl-Template-Toolkit-image.patch [new file with mode: 0644]

diff --git a/perl-Template-Toolkit-image.patch b/perl-Template-Toolkit-image.patch
new file mode 100644 (file)
index 0000000..abdaa41
--- /dev/null
@@ -0,0 +1,17 @@
+diff -uNr Template-Toolkit-2.09-org/lib/Template/Plugin/Image.pm Template-Toolkit-2.09/lib/Template/Plugin/Image.pm
+--- Template-Toolkit-2.09-org/lib/Template/Plugin/Image.pm     Wed Apr 23 14:58:29 2003
++++ Template-Toolkit-2.09/lib/Template/Plugin/Image.pm Mon Jun 30 16:28:12 2003
+@@ -43,7 +43,12 @@
+             my @stuff = Image::Size::imgsize($file);
+             return { "width"  => $stuff[0],
+                      "height" => $stuff[1],
+-                     "error"  => $stuff[2]
++                     "error"  =>
++                        # imgsize returns either a three letter file type
++                        # or an error message as third value
++                        (defined($stuff[2]) && length($stuff[2]) > 3
++                            ? $stuff[2]
++                            : undef),
+                    };
+         }
+     }
This page took 0.179467 seconds and 4 git commands to generate.