From: Jason Woofenden Date: Tue, 5 May 2009 16:59:39 +0000 (-0400) Subject: fixed metaform so the variables in the generated html template for the listing are... X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=f22b600c925131bb767db73d77dc595f18a1406a;p=wfpl.git fixed metaform so the variables in the generated html template for the listing are encoded properly --- diff --git a/metaform.php b/metaform.php index a556f1a..b2d3c21 100644 --- a/metaform.php +++ b/metaform.php @@ -272,6 +272,8 @@ function make_html($whole_file = true) { $tem->set('listing_enc', 'yesno'); } elseif($input == 'date') { $tem->set('listing_enc', 'mmddyyyy'); + } else { + $tem->set('listing_enc', 'html'); } $tem->show('listing_head_col'); $tem->show('listing_row_col'); diff --git a/metaform/template.html b/metaform/template.html index 3dd3abb..68dac08 100644 --- a/metaform/template.html +++ b/metaform/template.html @@ -85,7 +85,7 @@

[Add a new ~singular~]

- +
~caption~~caption~ 
~~~name~.~listing_enc~~~ [delete this ~singular~]