X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=run.php;fp=run.php;h=197dc76ed1325d59de9b772d1a6dc122324574db;hb=8caa06f2e35edfe1d923fc8fcfe732e425b6b475;hp=8e7941ea7fb0efd2db75d1aa3fdc50e422794a21;hpb=3faf64c6a1e0cbd4f880da951775c41fb8a6f0ab;p=wfpl.git diff --git a/run.php b/run.php index 8e7941e..197dc76 100644 --- 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'];