Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* template.php (tem->merge): only append expansions for show()n templates.
[wfpl.git]
/
run.php
diff --git
a/run.php
b/run.php
index
8e7941e
..
7f8abd8
100644
(file)
--- a/
run.php
+++ b/
run.php
@@
-1,4
+1,4
@@
-<?php
+<?php # Transitional; supports both template APIs
# 2006 Public Domain
#
# 2006 Public Domain
#
@@
-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']) {
# 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'];
}
$GLOBALS['wfpl_template'] = $GLOBALS['wfpl_main_template'];