aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@frank.tg14.gathering.org>2014-04-16 12:48:17 +0200
committerroot <root@frank.tg14.gathering.org>2014-04-16 12:48:17 +0200
commite5d73fc859d3d57aad0f4f41d0838262476606b3 (patch)
treec10839ceaaf9ef9d283714db85cda4b15207e214
parent708178ffef895bffa7bc9f8b6f885f44fac5dd67 (diff)
fix initialization of background image in uplinktrafikkart.pl.
-rwxr-xr-xweb/nms.gathering.org/uplinktrafikkart.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/nms.gathering.org/uplinktrafikkart.pl b/web/nms.gathering.org/uplinktrafikkart.pl
index b8be724..0f242e0 100755
--- a/web/nms.gathering.org/uplinktrafikkart.pl
+++ b/web/nms.gathering.org/uplinktrafikkart.pl
@@ -6,7 +6,9 @@ use lib '../../include';
use nms;
use strict;
use warnings;
+use File::Basename;
my $cgi = CGI->new;
+my $cwd = dirname($0);
#my $greentimeout = 7200;
my $greentimeout = 15*60;
@@ -15,7 +17,7 @@ my $maxtimeout = $greentimeout*9;
my $dbh = nms::db_connect();
GD::Image->trueColor(1);
-my $img = GD::Image->new('tg14-salkart.png');
+my $img = GD::Image->new($cwd.'/tg14-salkart.png');
my $blk = $img->colorResolve(0, 0, 0);