use HTTP::BrowserDetect for browser detection

This commit is contained in:
Graham Knop 2010-09-11 03:09:27 -05:00
parent 5e75631f6b
commit 6fa07671cd
7 changed files with 31 additions and 58 deletions

View file

@ -90,7 +90,7 @@ sub process {
# Fix box size
my $boxSize = $param[0];
$boxSize = 12 unless ($boxSize);
if (index(lc($session->request->user_agent),"msie") < 0) {
if ($session->request->browser->ie) {
$boxSize = int($boxSize=$boxSize*2/3);
}