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:
e8eec56
)
make tem_set() default value to true
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 25 Oct 2010 05:39:09 +0000
(
01:39
-0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 25 Oct 2010 05:47:53 +0000
(
01:47
-0400)
So now that show('section') is depricated, we can use set('section')
template.php
patch
|
blob
|
history
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();
}
- function set($key, $value) {
+ function set($key, $value = true) {
$this->data[$key] = $value;
}
@@
-524,7
+524,7
@@
function tem_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);
}