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
make tem_set() default value to true
[wfpl.git]
/
template.php
diff --git
a/template.php
b/template.php
index
90a2533
..
5643502
100644
(file)
--- a/
template.php
+++ b/
template.php
@@
-405,7
+405,7
@@
class tem {
$this->data = array();
}
$this->data = array();
}
- function set($key, $value) {
+ function set($key, $value = true) {
$this->data[$key] = $value;
}
$this->data[$key] = $value;
}
@@
-524,7
+524,7
@@
function tem_prepend($key, $value) {
$GLOBALS['wfpl_template']->prepend($key, $value);
}
$GLOBALS['wfpl_template']->prepend($key, $value);
}
-function tem_set($key, $value) {
+function tem_set($key, $value = true) {
tem_init();
$GLOBALS['wfpl_template']->set($key, $value);
}
tem_init();
$GLOBALS['wfpl_template']->set($key, $value);
}