chiark / gitweb /
mason/dhandler (.image): Compare references rather than filenames.
[tgal] / mason / dhandler
index 91a513bc3eeaca58efea5f88e6c58bcf3a6e6f73..d36722b5d7b880ec21c0b7cde67efe17e47f8a0c 100755 (executable)
@@ -207,7 +207,7 @@ Failed to find &lsquo;<% $path |h %>&rsquo;.
 %   for my $f (@$ff) {
   <& .thumbnail, target => $f->name, img => $img{$f}, size => $size,
                 caption => $m->interp->apply_escapes($f->name, "h"),
-                focus => $f->name eq "$base$ext" &>\
+                focus => $f eq $this &>\
 %   }
 </div>
 % }