diff options
author | jim-p <jimp@pfsense.org> | 2011-04-08 14:15:50 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-04-08 14:15:50 -0400 |
commit | ac6651c9458a7e86d33535932f89b43568a05b91 (patch) | |
tree | a2b36b3c22870eaab4e14bde763391d4eff9202d /usr/local/www/head.inc | |
parent | edf99ce40cf56c804e02b54a22f11e212b556c6a (diff) | |
download | pfsense-ac6651c9458a7e86d33535932f89b43568a05b91.zip pfsense-ac6651c9458a7e86d33535932f89b43568a05b91.tar.gz |
Make sure a theme directory actually exists before blindly using it.
Diffstat (limited to 'usr/local/www/head.inc')
-rwxr-xr-x | usr/local/www/head.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc index 97c7111..84ad1e3 100755 --- a/usr/local/www/head.inc +++ b/usr/local/www/head.inc @@ -7,7 +7,7 @@ * if user has selected a custom template, use it. * otherwise default to pfsense tempalte */ -if($config['theme'] <> "") +if($config['theme'] <> "" && (is_dir($g["www_path"].'/themes/'.$config['theme'])) $g['theme'] = $config['theme']; else $g['theme'] = "pfsense"; |