JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
make tem_set() default value to true
authorJason Woofenden <jason@jasonwoof.com>
Mon, 25 Oct 2010 05:39:09 +0000 (01:39 -0400)
committerJason 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

index 90a2533..5643502 100644 (file)
@@ -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);
 }