Revision ac6651c9
Added by Jim Pingle over 14 years ago
usr/local/www/head.inc | ||
---|---|---|
7 | 7 |
* if user has selected a custom template, use it. |
8 | 8 |
* otherwise default to pfsense tempalte |
9 | 9 |
*/ |
10 |
if($config['theme'] <> "") |
|
10 |
if($config['theme'] <> "" && (is_dir($g["www_path"].'/themes/'.$config['theme']))
|
|
11 | 11 |
$g['theme'] = $config['theme']; |
12 | 12 |
else |
13 | 13 |
$g['theme'] = "pfsense"; |
Also available in: Unified diff
Make sure a theme directory actually exists before blindly using it.