diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-08-09 21:49:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-08-09 21:49:25 +0000 |
commit | 8d236bfb7ca12dc3062332b6a96716fb497f00c1 (patch) | |
tree | 730e9a7b8807d452ba781fec59c7e94a0e5acc0c /usr/local/www/head.inc | |
parent | 8ea4b40c9b004a88163a613fc4074099cb1a8f63 (diff) | |
download | pfsense-8d236bfb7ca12dc3062332b6a96716fb497f00c1.zip pfsense-8d236bfb7ca12dc3062332b6a96716fb497f00c1.tar.gz |
* Check if file exists
* Correct Javascript -> CSS incorrect assignment
* Restore inline functions
Diffstat (limited to 'usr/local/www/head.inc')
-rwxr-xr-x | usr/local/www/head.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc index 4a57991..57a6cf8 100755 --- a/usr/local/www/head.inc +++ b/usr/local/www/head.inc @@ -23,9 +23,14 @@ $pagetitle = gentitle( $pgtitle ); <?php else: ?> <link rel="stylesheet" href="/themes/<?php echo $g['theme']; ?>/all.css" media="all" /> <?php endif; ?> - <?php if(file_exists("niftycssCode.css")) outputCSSFileInline("niftycssCode.css"); ?> - <script type="text/javascript" src="niftycssprintCode.css"></script> - <?php outputJavaScriptFileInline("niftyjsCode.js"); ?> + <?php + if(file_exists("niftycssCode.css")) + outputCSSFileInline("niftycssCode.css"); + if(file_exists("niftycssprintCode.css")) + outputCSSFileInline("niftycssprintCode.css"); + if(file_exists("niftyjsCode.js")) + outputJavaScriptFileInline("niftyjsCode.js"); + ?> <script type="text/javascript"> var theme = "<?php echo $g['theme']; ?>"; </script> |