X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=run.php;h=dac7bc4d6fb95ec96d48e860c0fcfab1421548b9;hb=a679272cb862dd647da227cc720cd4d4853887c0;hp=f44901507fabdddfac48f47017b57b5fe9e68a2a;hpb=3fe51eb4200cbdf74db551f31582d6b80881eef7;p=wfpl.git diff --git a/run.php b/run.php index f449015..dac7bc4 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('css_link', "$basename.css"); + $tem->sub('css_links'); + } + $GLOBALS['wfpl_template'] = $tem; }