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
metaform e-mails default to from: noreply@[thisdomain]
[wfpl.git]
/
run2.php
diff --git
a/run2.php
b/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
#
# 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
# 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) {
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");
}
} elseif($html_exists) {
$template = parse_template_file("$html_file");