if (-e "$config{destdir}/$imglink" ||
gen_image($code, $height, $digest, $teximgdir)) {
return qq{<img src="$imgurl" alt="}
- .(exists $params{alt} ? $params{alt} : encode_entities($code))
+ .(exists $params->{alt} ? $params->{alt} : encode_entities($code))
.qq{" class="teximg" />};
}
else {