Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4bc48b
)
tem_show() fails quietly when the template section is missing
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 4 Nov 2009 00:41:13 +0000
(19:41 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 4 Nov 2009 00:41:13 +0000
(19:41 -0500)
template.php
patch
|
blob
|
history
diff --git
a/template.php
b/template.php
index
4480391
..
1667cde
100644
(file)
--- a/
template.php
+++ b/
template.php
@@
-349,6
+349,7
@@
function &tem_is_old_sub($name, &$template) {
if($tem) return $tem;
}
}
+ return false;
}
class tem {
@@
-382,7
+383,9
@@
class tem {
function show($name) {
$tem = tem_is_old_sub($name, $this->template);
- $this->data[$name] .= fill_template($tem, $this->data);
+ if($tem) {
+ $this->data[$name] .= fill_template($tem, $this->data);
+ }
}
function show_separated($name) {