use common message instead of msg
authorAdrian Oldham <adriann@visualthought.com.au>
Sun, 10 Apr 2011 05:29:56 +0000 (15:29 +1000)
committerAdrian Oldham <adriann@visualthought.com.au>
Sun, 10 Apr 2011 05:29:56 +0000 (15:29 +1000)
use common error template

site/cgi-bin/interest.pl
site/templates/interest/askagain_base.tmpl
site/templates/interest/error_base.tmpl [deleted file]

index ac82cd2..39f314d 100755 (executable)
@@ -65,15 +65,15 @@ $mailer->send(to=>$sendto, from=>$SHOP_FROM, subject=>$subject,
 BSE::Template->show_page('interest/confirm', $cfg, \%acts);
 
 sub error_page {
-  my ($id, $msg, $template) = @_;
+  my ($id, $error, $template) = @_;
 
-  $msg = $cfg->entry(messages=>$id, $msg) if $id;
-  $template ||= 'interest/error';
+  $error = $cfg->entry(messages=>$id, $error) if $id;
+  $template ||= 'error';
   my %acts;
   %acts =
     (
      BSE::Util::Tags->basic(\%acts, $cgi, $cfg),
-     msg => sub { CGI::escapeHTML($msg) },
+     error => sub { CGI::escapeHTML($error) },
     );
   BSE::Template->show_page($template, $cfg, \%acts);
   exit;
index f58c090..fa072c9 100644 (file)
@@ -6,7 +6,7 @@
     <table width="350">
       <tr> 
       <th colspan="2" align="center"> 
-        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b><:msg:></b></font></p>
+        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b><:message:></b></font></p>
       </th>
     </tr>
     <tr>
diff --git a/site/templates/interest/error_base.tmpl b/site/templates/interest/error_base.tmpl
deleted file mode 100644 (file)
index a923262..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<:wrap base.tmpl:>
-<div align=center>
-  <table width="350">
-    <tr> 
-      <th colspan="2" align="center"> 
-        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Error</b></font></p>
-      </th>
-    </tr>
-    <tr> 
-      <td colspan="2"> 
-        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">There was 
-          an error when registering your interest:</font></p>
-        <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><:msg:></font></p>
-      </td>
-    </tr>
-  </table>
-</div>
\ No newline at end of file