Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fe51eb
)
run.php inserts page-specific css link into global template.html
author
Jason Woofenden
<jason183@herkamire.com>
Thu, 3 May 2007 05:34:19 +0000
(
01:34
-0400)
committer
Jason Woofenden
<jason183@herkamire.com>
Thu, 3 May 2007 05:34:19 +0000
(
01:34
-0400)
run.php
patch
|
blob
|
history
diff --git
a/run.php
b/run.php
index
f449015
..
3d26e49
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('basename', $basename);
+ $tem->sub('css_links');
+ }
+
$GLOBALS['wfpl_template'] = $tem;
}