[Jifty-commit] r506 - jifty/trunk/share/web/templates

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Jan 14 14:05:17 EST 2006


Author: jesse
Date: Sat Jan 14 14:05:17 2006
New Revision: 506

Modified:
   /   (props changed)
   jifty/trunk/share/web/static/favicon.ico
   jifty/trunk/share/web/templates/dhandler

Log:
 r22405 at truegrounds:  jesse | 2006-01-14 14:02:59 -0500
 * Pass at an icon


Modified: jifty/trunk/share/web/static/favicon.ico
==============================================================================
Binary files. No diff available.

Modified: jifty/trunk/share/web/templates/dhandler
==============================================================================
--- jifty/trunk/share/web/templates/dhandler	(original)
+++ jifty/trunk/share/web/templates/dhandler	Sat Jan 14 14:05:17 2006
@@ -18,6 +18,7 @@
 # XXX TODO: move into a library
 # This code loads up any static file and displays it if it would 404 from dynamic content. Failing that, actually 404
 my $file = $m->dhandler_arg;
+warn $file;
 my $type = "application/octet-stream";
 if ( $file =~ /\.(gif|png|jpe?g)$/i ) {
     $type = "image/$1";
@@ -26,6 +27,8 @@
     $type = 'text/css';
 } elsif ( $file =~ /\.js$/i ) {
     $type = 'application/x-javascript';
+} elsif ($file =~ /\.ico$/i){ 
+    $type = 'image/x-icon';
 }
 
 my @options = (


More information about the Jifty-commit mailing list