chiark / gitweb /
Pass $dbh down through the stack, for better lifetime
[ypp-sc-tools.main.git] / yarrg / web / routetrade
index 4475d27197915154c8cc4204556c10259dd355b2..1c5a3e49db2b184ac019b4a8177cb8838df59040 100644 (file)
@@ -1,4 +1,5 @@
 <%args>
+$dbh
 @islandids
 @archipelagoes
 </%args>
@@ -22,5 +23,4 @@ Route is as follows:
 
 <%init>
 use CommodsWeb;
-my $dbh= dbw_connect('Midnight');
 </%init>