give render module to pull usemap from
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 22 Oct 2010 22:09:02 +0000 (00:09 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 22 Oct 2010 22:09:02 +0000 (00:09 +0200)
server.pl

index 7ad6c7d..7cc545f 100755 (executable)
--- a/server.pl
+++ b/server.pl
@@ -165,12 +165,10 @@ use Data::Dump qw(dump);
 use COBISS;
 
 sub render {
-    my $this       = shift;
+    my ($this,$from) = @_;
 
 print "render ", dump($this);
 
-my $from = 'COBISS';
-
 my $usemap = eval '$' . $from . '::usemap';
 die $@ if $@;
 warn "# $from usermap ",dump($usemap);