From: Jason Woofenden Date: Sun, 14 Jun 2009 16:38:06 +0000 (-0400) Subject: metaform: fixed bug with listing but no display page (some links got an extra _edit... X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=85176c05d844a9b3c693e3436d358cc1bf30b1eb metaform: fixed bug with listing but no display page (some links got an extra _edit in them) --- diff --git a/metaform.php b/metaform.php index ebd1f99..19e2168 100644 --- a/metaform.php +++ b/metaform.php @@ -268,9 +268,6 @@ function make_html($whole_file = true) { } if($GLOBALS['opt_listing'] == 'Yes') { - if($GLOBALS['opt_display'] != 'Yes') { - $tem->show('opt_display_a_else'); - } if(show_in_listing($type, $input, $format, $sql)) { if($format == 'bool' || $format == 'yesno') { $tem->set('listing_enc', 'yesno'); @@ -284,6 +281,10 @@ function make_html($whole_file = true) { $tem->set('listing_enc', 'html'); $tem->show('listing_value_enc'); } + + if($GLOBALS['opt_display'] != 'Yes') { + $tem->show('opt_display_a_else'); + } $tem->show('listing_head_col'); $tem->show('listing_row_col'); }