# Let Apache serve icons without us modifying the request
if ($r->uri =~ m/^\/icons/i) {
- return $::MP2 ? Apache2::Const::DECLINED() : Apache::Constants::DECLINED();
+ if ($r->uri =~ m/^\/icons\/gallery\/([^\/]+$)/i) {
+ $filename = "/usr/share/libapache-gallery-perl/icons/$filename";
+ $r->filename($filename);
+ }
+ return $::MP2 ? Apache2::Const::DECLINED() : Apache::Constants::DECLINED();
}
# Lookup the file in the cache and scale the image if the cached
# image does not exist