Browse files

Tweak the static_url method to give a full url

  • Loading branch information...
1 parent 1947122 commit 394b7607fd3c26d8633daaecb52d66a0777f2e5a @rayners rayners committed May 26, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Smolder/Control.pm
View
5 lib/Smolder/Control.pm
@@ -292,10 +292,11 @@ sub static_url {
my ($self, $url) = @_;
# TODO - fix this after the switch to CGI::Application::Server
- return $url;
+ #return $url;
$url =~ s/^\///;
- return catfile('', $Smolder::VERSION, $url);
+ return 'http://' . HostName . ( Port == 80 ? '' : ':' . Port ) . '/' . $url;
+ #return catfile('', $Smolder::VERSION, $url);
}
=head2 add_message

0 comments on commit 394b760

Please sign in to comment.