JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
* run.php: factor merge out to template.php (now supports both APIs).
[wfpl.git] / run.php
diff --git a/run.php b/run.php
index 8e7941e..197dc76 100644 (file)
--- a/run.php
+++ b/run.php
@@ -155,10 +155,7 @@ function run_php($dest = false) {
                        # site, copy all template sections that have been show()n to the
                        # site-wide template
                        if($GLOBALS['wfpl_template']) {
-                               $sections = tem_top_subs();
-                               if($sections) foreach($sections as $name => $val) {
-                                       $GLOBALS['wfpl_main_template']->append($name, $val);
-                               }
+                               $GLOBALS['wfpl_main_template']->merge($GLOBALS['wfpl_template']);
                        }
 
                        $GLOBALS['wfpl_template'] = $GLOBALS['wfpl_main_template'];