JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
run.php tem_set('basename') in template.html
authorJason <jason@parth.(none)>
Fri, 4 Jul 2008 02:38:35 +0000 (22:38 -0400)
committerJason <jason@parth.(none)>
Fri, 4 Jul 2008 02:38:35 +0000 (22:38 -0400)
run.php

diff --git a/run.php b/run.php
index 2407202..e861bb2 100644 (file)
--- a/run.php
+++ b/run.php
@@ -131,6 +131,7 @@ function run_php($basename = false) {
                if(file_exists('template.html')) {
                        $tem = new tem();
                        $tem->load("template.html");
+                       $tem->set('basename', $basename);
                        if($cms_content) foreach($cms_content as $name => $val) {
                                $tem->append($name, $val);
                        }