chiark / gitweb /
Pass $dbh down through the stack, for better lifetime
[ypp-sc-tools.web-live.git] / yarrg / web / routetrade
index d0d4a76624c99a5d89e2c844926b04d826f03563..1c5a3e49db2b184ac019b4a8177cb8838df59040 100644 (file)
@@ -1,4 +1,5 @@
 <%args>
+$dbh
 @islandids
 @archipelagoes
 </%args>
@@ -14,7 +15,7 @@ Route is as follows:
 %   $islandid= '<undef>' unless defined $islandid;
 %   $archipelago= '<undef>' unless defined $archipelago;
 %
-  islandid=<% $islandid %>  archipelago=<% $archipelago %>
+  islandid=<% $islandid |h %>  archipelago=<% $archipelago |h %>
 %
 % }
 
@@ -22,6 +23,4 @@ Route is as follows:
 
 <%init>
 use CommodsWeb;
-db_setocean('Midnight');
-db_connect();
 </%init>