bug fixes

This commit is contained in:
JT Smith 2009-09-25 22:50:59 -05:00
parent ccff9c7014
commit ebb6134c2d
27 changed files with 84 additions and 214 deletions

View file

@ -180,9 +180,9 @@ sub www_viewStatistics {
my $i18n = WebGUI::International->new($session);
my $url = "http://update.webgui.org/latest-version.txt";
my $cache = $session->cache;
my $version = $cache->get($url);
my $version = eval{$cache->get($url)};
if (not defined $version) {
$version = $cache->setByHttp($url, $url, 43200);
$version = eval{$cache->setByHttp($url, $url, 43200)};
}
chomp $version;
$output .= '<table>';