aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/portkart.pl
diff options
context:
space:
mode:
Diffstat (limited to 'web/nms.gathering.org/portkart.pl')
-rwxr-xr-xweb/nms.gathering.org/portkart.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/nms.gathering.org/portkart.pl b/web/nms.gathering.org/portkart.pl
index a7cafef..455278e 100755
--- a/web/nms.gathering.org/portkart.pl
+++ b/web/nms.gathering.org/portkart.pl
@@ -4,12 +4,14 @@ use GD;
use DBI;
use lib '../../include';
use nms;
+use File::Basename;
my $cgi = CGI->new;
+my $cwd = dirname($0);
my $dbh = nms::db_connect();
GD::Image->trueColor(1);
-$img = GD::Image->new('tg14-salkart.png');
+$img = GD::Image->new($cwd.'/tg14-salkart.png');
my $blk = $img->colorResolve(0, 0, 0);