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
run.php css thing uses 'css_link' instead of 'basename' as template tag
[wfpl.git]
/
run.php
diff --git
a/run.php
b/run.php
index
f449015
..
dac7bc4
100644
(file)
--- a/
run.php
+++ b/
run.php
@@
-109,6
+109,12
@@
function run_php($basename = false) {
if($sections) foreach($sections as $name => $val) {
$tem->set($name, $val);
}
+
+ if(file_exists("$basename.css")) {
+ $tem->set('css_link', "$basename.css");
+ $tem->sub('css_links');
+ }
+
$GLOBALS['wfpl_template'] = $tem;
}