JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
* run.php, run2.php: doc fixes.
[wfpl.git] / run2.php
index c67c27e..333ba75 100644 (file)
--- a/run2.php
+++ b/run2.php
@@ -1,8 +1,8 @@
-<?php
+<?php  # For new template API
 
 #  2006 Public Domain
 #
-#  This file was placed into the public domain on November 16th, 2008 by it's
+#  This file was placed into the public domain on November 16th, 2008 by its
 #  sole author Jason Woofenden
 
 # This file facilitates making a site with mixed PHP and html files. All URLs
@@ -136,8 +136,8 @@ function run_php($dest = false) {
        if(file_exists("template.html")) {
                $template = parse_template_file("template.html");
                if($html_exists) {
-                       $subs = parse_template_file($html_file);
-                       $template = merge_templates($template, $subs);
+                       $page_template = parse_template_file($html_file);
+                       $template = merge_templates($template, $page_template);
                }
        } elseif($html_exists) {
                $template = parse_template_file("$html_file");