From 35e4253b00be3446ee4ff00c28b1cf7240dbf334 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 3 May 2007 01:34:19 -0400 Subject: [PATCH] run.php inserts page-specific css link into global template.html --- run.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run.php b/run.php index f449015..3d26e49 100644 --- 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; } -- 1.7.10.4