JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform codegen: use tem_auto_unset()
[wfpl.git] / metaform.php
index d134f92..fdd1ad3 100644 (file)
@@ -83,12 +83,9 @@ function tem_set_globals(&$tem) {
                'opt_pass');
        foreach($bools as $bool) {
                if(format_bool($GLOBALS[$bool])) {
-                       $tem->set($bool, 1);
-               } else {
-                       $tem->set($bool . '_else', 1);
+                       $tem->set($bool);
                }
        }
-
 }
 
 function metaform() {